18 const char *
const LibCalls[] = {
19 "__addtf3",
"__divtf3",
"__eqtf2",
"__extenddftf2",
20 "__extendsftf2",
"__fixtfdi",
"__fixtfsi",
"__fixtfti",
21 "__fixunstfdi",
"__fixunstfsi",
"__fixunstfti",
"__floatditf",
22 "__floatsitf",
"__floattitf",
"__floatunditf",
"__floatunsitf",
23 "__floatuntitf",
"__getf2",
"__gttf2",
"__letf2",
24 "__lttf2",
"__multf3",
"__netf2",
"__powitf2",
25 "__subtf3",
"__trunctfdf2",
"__trunctfsf2",
"__unordtf2",
26 "ceill",
"copysignl",
"cosl",
"exp2l",
27 "expl",
"floorl",
"fmal",
"fmodl",
28 "log10l",
"log2l",
"logl",
"nearbyintl",
29 "powl",
"rintl",
"roundl",
"sinl",
33 auto Comp = [](
const char *S1,
const char *S2) {
return strcmp(S1, S2) < 0; };
76 dyn_cast<const GlobalAddressSDNode>(Callee)) {
78 Function *
F =
G->getGlobal()->getParent()->getFunction(Sym);
84 return SpecialCallingConv;
87 void MipsCCState::PreAnalyzeCallResultForF128(
89 const Type *RetTy,
const char *Call) {
90 for (
unsigned i = 0; i < Ins.
size(); ++i) {
99 void MipsCCState::PreAnalyzeReturnForF128(
102 for (
unsigned i = 0; i < Outs.
size(); ++i) {
112 void MipsCCState::PreAnalyzeCallResultForVectorFloat(
114 for (
unsigned i = 0; i < Ins.
size(); ++i) {
121 void MipsCCState::PreAnalyzeReturnForVectorFloat(
123 for (
unsigned i = 0; i < Outs.
size(); ++i) {
132 void MipsCCState::PreAnalyzeCallOperands(
134 std::vector<TargetLowering::ArgListEntry> &FuncArgs,
136 for (
unsigned i = 0; i < Outs.
size(); ++i) {
137 TargetLowering::ArgListEntry FuncArg = FuncArgs[Outs[i].OrigArgIndex];
140 OriginalArgWasFloat.
push_back(FuncArg.Ty->isFloatingPointTy());
141 OriginalArgWasFloatVector.
push_back(FuncArg.Ty->isVectorTy());
142 CallOperandIsFixed.
push_back(Outs[i].IsFixed);
148 void MipsCCState::PreAnalyzeFormalArgumentsForF128(
151 for (
unsigned i = 0; i < Ins.
size(); ++i) {
157 if (Ins[i].
Flags.isSRet()) {
160 OriginalArgWasFloatVector.
push_back(
false);
165 std::advance(FuncArg, Ins[i].getOrigArgIndex());
void push_back(const T &Elt)
const_iterator end(StringRef path)
Get end iterator over path.
This class represents an incoming formal argument to a Function.
const_iterator begin(StringRef path, Style style=Style::native)
Get begin iterator over path.
unsigned getStructNumElements() const
const Function * getFunction() const
getFunction - Return the LLVM function that this machine code represents
bool isVector() const
Return true if this is a vector value type.
bool inMips16HardFloat() const
OutputArg - This struct carries flags and a value for a single outgoing (actual) argument or outgoing...
EVT getVectorElementType() const
Given a vector type, return the type of each element.
MachineFunction & getMachineFunction() const
static bool originalEVTTypeIsVectorFloat(EVT Ty)
Return true if the original type was vXfXX.
Type * getStructElementType(unsigned N) const
static SpecialCallingConvType getSpecialCallingConvForCallee(const SDNode *Callee, const MipsSubtarget &Subtarget)
Determine the SpecialCallingConvType for the given callee.
bool isFloatingPointTy() const
Return true if this is one of the six floating-point types.
static bool isF128SoftLibCall(const char *CallSym)
This function returns true if CallSym is a long double emulation routine.
Type * getReturnType() const
Returns the type of the ret val.
The instances of the Type class are immutable: once they are created, they are never changed...
bool isVectorTy() const
True if this is an instance of VectorType.
bool isFP128Ty() const
Return true if this is 'fp128'.
bool isFPOrFPVectorTy() const
Return true if this is a FP type or a vector of FP.
Module.h This file contains the declarations for the Module class.
Type * getType() const
All values are typed, get the type of this value.
Represents one node in the SelectionDAG.
bool isIntegerTy() const
True if this is an instance of IntegerType.
bool isStructTy() const
True if this is an instance of StructType.
static std::vector< std::string > Flags
bool hasFnAttribute(Attribute::AttrKind Kind) const
Return true if the function has the attribute.
LLVM_ATTRIBUTE_ALWAYS_INLINE size_type size() const
bool isFloatingPoint() const
Return true if this is a FP or a vector FP type.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
static bool originalTypeIsVectorFloat(const Type *Ty)
Return true if the original type was vXfXX / vXfXX.
StringRef - Represent a constant reference to a string, i.e.
static bool originalTypeIsF128(const Type *Ty, const char *Func)
This function returns true if Ty is fp128, {f128} or i128 which was originally a fp128.