[llvm] r274720 - Use the class definition for useSoftFloat.
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 6 18:49:58 PDT 2016
Author: echristo
Date: Wed Jul 6 20:49:57 2016
New Revision: 274720
URL: http://llvm.org/viewvc/llvm-project?rev=274720&view=rev
Log:
Use the class definition for useSoftFloat.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp?rev=274720&r1=274719&r2=274720&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp Wed Jul 6 20:49:57 2016
@@ -80,7 +80,7 @@ PPCTargetLowering::PPCTargetLowering(con
// Set up the register classes.
addRegisterClass(MVT::i32, &PPC::GPRCRegClass);
- if (!Subtarget.useSoftFloat()) {
+ if (!useSoftFloat()) {
addRegisterClass(MVT::f32, &PPC::F4RCRegClass);
addRegisterClass(MVT::f64, &PPC::F8RCRegClass);
}
@@ -2837,7 +2837,7 @@ SDValue PPCTargetLowering::LowerFormalAr
// Reserve space for the linkage area on the stack.
unsigned LinkageSize = Subtarget.getFrameLowering()->getLinkageSize();
CCInfo.AllocateStack(LinkageSize, PtrByteSize);
- if (Subtarget.useSoftFloat())
+ if (useSoftFloat())
CCInfo.PreAnalyzeFormalArguments(Ins);
CCInfo.AnalyzeFormalArguments(Ins, CC_PPC32_SVR4);
@@ -2956,7 +2956,7 @@ SDValue PPCTargetLowering::LowerFormalAr
};
unsigned NumFPArgRegs = array_lengthof(FPArgRegs);
- if (Subtarget.useSoftFloat())
+ if (useSoftFloat())
NumFPArgRegs = 0;
FuncInfo->setVarArgsNumGPR(CCInfo.getFirstUnallocated(GPArgRegs));
@@ -4692,7 +4692,7 @@ SDValue PPCTargetLowering::LowerCall_32S
// Reserve space for the linkage area on the stack.
CCInfo.AllocateStack(Subtarget.getFrameLowering()->getLinkageSize(),
PtrByteSize);
- if (Subtarget.useSoftFloat())
+ if (useSoftFloat())
CCInfo.PreAnalyzeCallOperands(Outs);
if (isVarArg) {
More information about the llvm-commits
mailing list