mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-02 09:58:06 +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.
|
// Set up the register classes.
|
||||||
addRegisterClass(MVT::i32, &PPC::GPRCRegClass);
|
addRegisterClass(MVT::i32, &PPC::GPRCRegClass);
|
||||||
if (!Subtarget.useSoftFloat()) {
|
if (!useSoftFloat()) {
|
||||||
addRegisterClass(MVT::f32, &PPC::F4RCRegClass);
|
addRegisterClass(MVT::f32, &PPC::F4RCRegClass);
|
||||||
addRegisterClass(MVT::f64, &PPC::F8RCRegClass);
|
addRegisterClass(MVT::f64, &PPC::F8RCRegClass);
|
||||||
}
|
}
|
||||||
@ -2837,7 +2837,7 @@ SDValue PPCTargetLowering::LowerFormalArguments_32SVR4(
|
|||||||
// Reserve space for the linkage area on the stack.
|
// Reserve space for the linkage area on the stack.
|
||||||
unsigned LinkageSize = Subtarget.getFrameLowering()->getLinkageSize();
|
unsigned LinkageSize = Subtarget.getFrameLowering()->getLinkageSize();
|
||||||
CCInfo.AllocateStack(LinkageSize, PtrByteSize);
|
CCInfo.AllocateStack(LinkageSize, PtrByteSize);
|
||||||
if (Subtarget.useSoftFloat())
|
if (useSoftFloat())
|
||||||
CCInfo.PreAnalyzeFormalArguments(Ins);
|
CCInfo.PreAnalyzeFormalArguments(Ins);
|
||||||
|
|
||||||
CCInfo.AnalyzeFormalArguments(Ins, CC_PPC32_SVR4);
|
CCInfo.AnalyzeFormalArguments(Ins, CC_PPC32_SVR4);
|
||||||
@ -2956,7 +2956,7 @@ SDValue PPCTargetLowering::LowerFormalArguments_32SVR4(
|
|||||||
};
|
};
|
||||||
unsigned NumFPArgRegs = array_lengthof(FPArgRegs);
|
unsigned NumFPArgRegs = array_lengthof(FPArgRegs);
|
||||||
|
|
||||||
if (Subtarget.useSoftFloat())
|
if (useSoftFloat())
|
||||||
NumFPArgRegs = 0;
|
NumFPArgRegs = 0;
|
||||||
|
|
||||||
FuncInfo->setVarArgsNumGPR(CCInfo.getFirstUnallocated(GPArgRegs));
|
FuncInfo->setVarArgsNumGPR(CCInfo.getFirstUnallocated(GPArgRegs));
|
||||||
@ -4692,7 +4692,7 @@ SDValue PPCTargetLowering::LowerCall_32SVR4(
|
|||||||
// Reserve space for the linkage area on the stack.
|
// Reserve space for the linkage area on the stack.
|
||||||
CCInfo.AllocateStack(Subtarget.getFrameLowering()->getLinkageSize(),
|
CCInfo.AllocateStack(Subtarget.getFrameLowering()->getLinkageSize(),
|
||||||
PtrByteSize);
|
PtrByteSize);
|
||||||
if (Subtarget.useSoftFloat())
|
if (useSoftFloat())
|
||||||
CCInfo.PreAnalyzeCallOperands(Outs);
|
CCInfo.PreAnalyzeCallOperands(Outs);
|
||||||
|
|
||||||
if (isVarArg) {
|
if (isVarArg) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user