[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcRegInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 28 13:33:01 PST 2002
Changes in directory llvm/lib/Target/Sparc:
SparcRegInfo.cpp updated: 1.77 -> 1.78
---
Log message:
Fixes to work with updated RegAlloc
---
Diffs of the changes:
Index: llvm/lib/Target/Sparc/SparcRegInfo.cpp
diff -u llvm/lib/Target/Sparc/SparcRegInfo.cpp:1.77 llvm/lib/Target/Sparc/SparcRegInfo.cpp:1.78
--- llvm/lib/Target/Sparc/SparcRegInfo.cpp:1.77 Sun Oct 27 22:45:29 2002
+++ llvm/lib/Target/Sparc/SparcRegInfo.cpp Mon Oct 28 13:32:07 2002
@@ -683,7 +683,7 @@
else {
// Copy UniLRReg to the stack to pass the arg on stack.
const MachineFrameInfo& frameInfo = target.getFrameInfo();
- int argOffset = frameInfo.getOutgoingArgOffset(PRA.mcInfo, argNo);
+ int argOffset = frameInfo.getOutgoingArgOffset(PRA.MF, argNo);
cpReg2MemMI(CallAI->InstrnsBefore,
UniLRReg, getStackPointer(), argOffset, regType);
}
@@ -705,10 +705,10 @@
// Use TmpOff to save TReg, since that may have a live value.
//
int TReg = PRA.getUniRegNotUsedByThisInst( LR->getRegClass(), CallMI );
- int TmpOff = PRA.mcInfo.pushTempValue(target,
- getSpilledRegSize(getRegType(LR)));
+ int TmpOff = PRA.MF.pushTempValue(target,
+ getSpilledRegSize(getRegType(LR)));
const MachineFrameInfo& frameInfo = target.getFrameInfo();
- int argOffset = frameInfo.getOutgoingArgOffset(PRA.mcInfo, argNo);
+ int argOffset = frameInfo.getOutgoingArgOffset(PRA.MF, argNo);
MachineInstr *Ad1, *Ad2, *Ad3, *Ad4;
@@ -1413,8 +1413,8 @@
// and add them to InstrnsBefore and InstrnsAfter of the
// call instruction
//
- int StackOff = PRA.mcInfo.pushTempValue(target,
- getSpilledRegSize(RegType));
+ int StackOff = PRA.MF.pushTempValue(target,
+ getSpilledRegSize(RegType));
vector<MachineInstr*> AdIBef, AdIAft;
@@ -1709,12 +1709,12 @@
// Now we are processing %ox of 1.
// We have to
- const int UReg = DefOp.getMachineRegNum();
- const int RegType = getRegType(UReg);
+ int UReg = DefOp.getMachineRegNum();
+ int RegType = getRegType(UReg);
MachineInstr *AdIBef, *AdIAft;
- const int StackOff = PRA.mcInfo.pushTempValue(target,
- getSpilledRegSize(RegType));
+ const int StackOff = PRA.MF.pushTempValue(target,
+ getSpilledRegSize(RegType));
// Save the UReg (%ox) on stack before it's destroyed
vector<MachineInstr*> mvec;
More information about the llvm-commits
mailing list