Fix uninitialized variable
[llvm-core.git] / lib / Target / Mips / Mips16HardFloatInfo.h
blob7295c287576dac02ebea04403ebf7382d222c3d2
1 //===---- 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.
14 //===----------------------------------------------------------------------===//
16 #ifndef LLVM_LIB_TARGET_MIPS_MIPS16HARDFLOATINFO_H
17 #define LLVM_LIB_TARGET_MIPS_MIPS16HARDFLOATINFO_H
19 namespace llvm {
21 namespace Mips16HardFloatInfo {
23 // Return types that matter for hard float are:
24 // float, double, complex float, and complex double
26 enum FPReturnVariant { FRet, DRet, CFRet, CDRet, NoFPRet };
29 // Parameter type that matter are float, (float, float), (float, double),
30 // double, (double, double), (double, float)
32 enum FPParamVariant { FSig, FFSig, FDSig, DSig, DDSig, DFSig, NoSig };
34 struct FuncSignature {
35 FPParamVariant ParamSig;
36 FPReturnVariant RetSig;
39 struct FuncNameSignature {
40 const char *Name;
41 FuncSignature Signature;
44 extern const FuncNameSignature PredefinedFuncs[];
46 extern FuncSignature const *findFuncSignature(const char *name);
50 #endif