[llvm-commits] CVS: llvm/lib/CodeGen/MachineInstr.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu May 4 10:03:04 PDT 2006
Changes in directory llvm/lib/CodeGen:
MachineInstr.cpp updated: 1.115 -> 1.116
---
Log message:
Change "value" in MachineOperand to be a GlobalValue, as that is the only
thing that can be in it. Remove a dead method.
---
Diffs of the changes: (+3 -14)
MachineInstr.cpp | 17 +++--------------
1 files changed, 3 insertions(+), 14 deletions(-)
Index: llvm/lib/CodeGen/MachineInstr.cpp
diff -u llvm/lib/CodeGen/MachineInstr.cpp:1.115 llvm/lib/CodeGen/MachineInstr.cpp:1.116
--- llvm/lib/CodeGen/MachineInstr.cpp:1.115 Wed May 3 20:26:39 2006
+++ llvm/lib/CodeGen/MachineInstr.cpp Thu May 4 12:02:51 2006
@@ -107,33 +107,22 @@
return false;
}
-void MachineInstr::SetMachineOperandVal(unsigned i,
- MachineOperand::MachineOperandType opTy,
- Value* V) {
- assert(i < operands.size()); // may be explicit or implicit op
- operands[i].opType = opTy;
- operands[i].contents.value = V;
- operands[i].extra.regNum = -1;
-}
-
void
MachineInstr::SetMachineOperandConst(unsigned i,
MachineOperand::MachineOperandType opTy,
int intValue) {
- assert(i < getNumOperands()); // must be explicit op
-
+ assert(i < getNumOperands());
operands[i].opType = opTy;
- operands[i].contents.value = NULL;
operands[i].contents.immedVal = intValue;
operands[i].extra.regNum = -1;
operands[i].flags = 0;
}
void MachineInstr::SetMachineOperandReg(unsigned i, int regNum) {
- assert(i < getNumOperands()); // must be explicit op
+ assert(i < getNumOperands());
operands[i].opType = MachineOperand::MO_VirtualRegister;
- operands[i].contents.value = NULL;
+ operands[i].contents.GV = NULL;
operands[i].extra.regNum = regNum;
}
More information about the llvm-commits
mailing list