[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineInstr.h
Evan Cheng
evan.cheng at apple.com
Tue Feb 27 13:07:13 PST 2007
Changes in directory llvm/include/llvm/CodeGen:
MachineInstr.h updated: 1.213 -> 1.214
---
Log message:
Pass IsImp, IsKill, and IsDead to ChangeToRegister.
---
Diffs of the changes: (+5 -4)
MachineInstr.h | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
Index: llvm/include/llvm/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.213 llvm/include/llvm/CodeGen/MachineInstr.h:1.214
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.213 Thu Feb 22 19:03:39 2007
+++ llvm/include/llvm/CodeGen/MachineInstr.h Tue Feb 27 15:06:57 2007
@@ -280,13 +280,14 @@
/// ChangeToRegister - Replace this operand with a new register operand of
/// the specified value. If an operand is known to be an register already,
/// the setReg method should be used.
- void ChangeToRegister(unsigned Reg, bool isDef) {
+ void ChangeToRegister(unsigned Reg, bool isDef, bool isImp = false,
+ bool isKill = false, bool isDead = false) {
opType = MO_Register;
contents.RegNo = Reg;
IsDef = isDef;
- IsImp = false;
- IsKill = false;
- IsDead = false;
+ IsImp = isImp;
+ IsKill = isKill;
+ IsDead = isDead;
}
friend std::ostream& operator<<(std::ostream& os, const MachineOperand& mop) {
More information about the llvm-commits
mailing list