mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 17:31:50 +00:00
Use the class definition for useSoftFloat.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274720 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f32cbbe71f
commit
761e40a2ca
@ -80,7 +80,7 @@ PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM,
|
||||
|
||||
// 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::LowerFormalArguments_32SVR4(
|
||||
// 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::LowerFormalArguments_32SVR4(
|
||||
};
|
||||
unsigned NumFPArgRegs = array_lengthof(FPArgRegs);
|
||||
|
||||
if (Subtarget.useSoftFloat())
|
||||
if (useSoftFloat())
|
||||
NumFPArgRegs = 0;
|
||||
|
||||
FuncInfo->setVarArgsNumGPR(CCInfo.getFirstUnallocated(GPArgRegs));
|
||||
@ -4692,7 +4692,7 @@ SDValue PPCTargetLowering::LowerCall_32SVR4(
|
||||
// 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user