blob: 7295c287576dac02ebea04403ebf7382d222c3d2 [file] [log] [blame]
Reed Kotler4cdaa7d2014-02-14 19:16:39 +00001//===---- Mips16HardFloatInfo.h for Mips16 Hard Float --------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file defines some data structures relevant to the implementation of
11// Mips16 hard float.
12//
13//
14//===----------------------------------------------------------------------===//
15
Benjamin Kramera7c40ef2014-08-13 16:26:38 +000016#ifndef LLVM_LIB_TARGET_MIPS_MIPS16HARDFLOATINFO_H
17#define LLVM_LIB_TARGET_MIPS_MIPS16HARDFLOATINFO_H
Reed Kotler4cdaa7d2014-02-14 19:16:39 +000018
19namespace llvm {
20
21namespace Mips16HardFloatInfo {
22
23// Return types that matter for hard float are:
24// float, double, complex float, and complex double
25//
26enum FPReturnVariant { FRet, DRet, CFRet, CDRet, NoFPRet };
27
28//
29// Parameter type that matter are float, (float, float), (float, double),
30// double, (double, double), (double, float)
31//
32enum FPParamVariant { FSig, FFSig, FDSig, DSig, DDSig, DFSig, NoSig };
33
34struct FuncSignature {
35 FPParamVariant ParamSig;
36 FPReturnVariant RetSig;
37};
38
39struct FuncNameSignature {
40 const char *Name;
41 FuncSignature Signature;
42};
43
44extern const FuncNameSignature PredefinedFuncs[];
45
46extern FuncSignature const *findFuncSignature(const char *name);
47}
48}
49
50#endif