Path: blob/main/contrib/llvm-project/llvm/lib/Target/Mips/Mips16HardFloatInfo.h
35269 views
//===---- Mips16HardFloatInfo.h for Mips16 Hard Float --------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file defines some data structures relevant to the implementation of9// Mips16 hard float.10//11//12//===----------------------------------------------------------------------===//1314#ifndef LLVM_LIB_TARGET_MIPS_MIPS16HARDFLOATINFO_H15#define LLVM_LIB_TARGET_MIPS_MIPS16HARDFLOATINFO_H1617namespace llvm {1819namespace Mips16HardFloatInfo {2021// Return types that matter for hard float are:22// float, double, complex float, and complex double23//24enum FPReturnVariant { FRet, DRet, CFRet, CDRet, NoFPRet };2526//27// Parameter type that matter are float, (float, float), (float, double),28// double, (double, double), (double, float)29//30enum FPParamVariant { FSig, FFSig, FDSig, DSig, DDSig, DFSig, NoSig };3132struct FuncSignature {33FPParamVariant ParamSig;34FPReturnVariant RetSig;35};3637struct FuncNameSignature {38const char *Name;39FuncSignature Signature;40};4142extern const FuncNameSignature PredefinedFuncs[];4344extern FuncSignature const *findFuncSignature(const char *name);45}46}4748#endif495051