[llvm-commits] CVS: llvm/lib/Target/IA64/IA64RegisterInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu May 4 10:52:42 PDT 2006
Changes in directory llvm/lib/Target/IA64:
IA64RegisterInfo.cpp updated: 1.18 -> 1.19
---
Log message:
Move some methods out of MachineInstr into MachineOperand
---
Diffs of the changes: (+3 -3)
IA64RegisterInfo.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/IA64/IA64RegisterInfo.cpp
diff -u llvm/lib/Target/IA64/IA64RegisterInfo.cpp:1.18 llvm/lib/Target/IA64/IA64RegisterInfo.cpp:1.19
--- llvm/lib/Target/IA64/IA64RegisterInfo.cpp:1.18 Thu May 4 12:21:19 2006
+++ llvm/lib/Target/IA64/IA64RegisterInfo.cpp Thu May 4 12:52:23 2006
@@ -155,7 +155,7 @@
// choose a base register: ( hasFP? framepointer : stack pointer )
unsigned BaseRegister = FP ? IA64::r5 : IA64::r12;
// Add the base register
- MI.SetMachineOperandReg(i, BaseRegister);
+ MI.getOperand(i).ChangeToRegister(BaseRegister);
// Now add the frame object offset to the offset from r1.
int Offset = MF.getFrameInfo()->getObjectOffset(FrameIndex);
@@ -168,7 +168,7 @@
// XXX: we use 'r22' as another hack+slash temporary register here :(
if ( Offset <= 8191 && Offset >= -8192) { // smallish offset
//fix up the old:
- MI.SetMachineOperandReg(i, IA64::r22);
+ MI.getOperand(i).ChangeToRegister(IA64::r22);
MI.getOperand(i).setUse(); // mark r22 as being used
// (the bundler wants to know this)
//insert the new
@@ -177,7 +177,7 @@
MBB.insert(II, nMI);
} else { // it's big
//fix up the old:
- MI.SetMachineOperandReg(i, IA64::r22);
+ MI.getOperand(i).ChangeToRegister(IA64::r22);
MI.getOperand(i).setUse(); // mark r22 as being used
// (the bundler wants to know this)
MachineInstr* nMI;
More information about the llvm-commits
mailing list