blob: b8c485b7e2e347bcef06ed001a379bec88217330 [file] [log] [blame]
Reed Kotler4cdaa7d2014-02-14 19:16:39 +00001//===---- Mips16HardFloatInfo.h for Mips16 Hard Float --------===//
2//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Reed Kotler4cdaa7d2014-02-14 19:16:39 +00006//
7//===----------------------------------------------------------------------===//
8//
9// This file defines some data structures relevant to the implementation of
10// Mips16 hard float.
11//
12//
13//===----------------------------------------------------------------------===//
14
Benjamin Kramera7c40ef2014-08-13 16:26:38 +000015#ifndef LLVM_LIB_TARGET_MIPS_MIPS16HARDFLOATINFO_H
16#define LLVM_LIB_TARGET_MIPS_MIPS16HARDFLOATINFO_H
Reed Kotler4cdaa7d2014-02-14 19:16:39 +000017
18namespace llvm {
19
20namespace Mips16HardFloatInfo {
21
22// Return types that matter for hard float are:
23// float, double, complex float, and complex double
24//
25enum FPReturnVariant { FRet, DRet, CFRet, CDRet, NoFPRet };
26
27//
28// Parameter type that matter are float, (float, float), (float, double),
29// double, (double, double), (double, float)
30//
31enum FPParamVariant { FSig, FFSig, FDSig, DSig, DDSig, DFSig, NoSig };
32
33struct FuncSignature {
34 FPParamVariant ParamSig;
35 FPReturnVariant RetSig;
36};
37
38struct FuncNameSignature {
39 const char *Name;
40 FuncSignature Signature;
41};
42
43extern const FuncNameSignature PredefinedFuncs[];
44
45extern FuncSignature const *findFuncSignature(const char *name);
Alexander Kornienkof00654e2015-06-23 09:49:53 +000046}
47}
Reed Kotler4cdaa7d2014-02-14 19:16:39 +000048
49#endif