[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineInstr.h MachineInstrBuilder.h
Evan Cheng
evan.cheng at apple.com
Sat Nov 11 02:19:17 PST 2006
Changes in directory llvm/include/llvm/CodeGen:
MachineInstr.h updated: 1.194 -> 1.195
MachineInstrBuilder.h updated: 1.38 -> 1.39
---
Log message:
Add methods to add implicit def use operands to a MI.
---
Diffs of the changes: (+9 -0)
MachineInstr.h | 4 ++++
MachineInstrBuilder.h | 5 +++++
2 files changed, 9 insertions(+)
Index: llvm/include/llvm/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.194 llvm/include/llvm/CodeGen/MachineInstr.h:1.195
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.194 Fri Nov 10 08:44:12 2006
+++ llvm/include/llvm/CodeGen/MachineInstr.h Sat Nov 11 04:19:03 2006
@@ -413,6 +413,10 @@
Op.offset = 0;
}
+ /// addImplicitDefUseOperands - Add all implicit def and use operands to
+ /// this instruction.
+ void addImplicitDefUseOperands();
+
//===--------------------------------------------------------------------===//
// Accessors used to modify instructions in place.
//
Index: llvm/include/llvm/CodeGen/MachineInstrBuilder.h
diff -u llvm/include/llvm/CodeGen/MachineInstrBuilder.h:1.38 llvm/include/llvm/CodeGen/MachineInstrBuilder.h:1.39
--- llvm/include/llvm/CodeGen/MachineInstrBuilder.h:1.38 Fri Nov 10 02:32:14 2006
+++ llvm/include/llvm/CodeGen/MachineInstrBuilder.h Sat Nov 11 04:19:03 2006
@@ -77,6 +77,11 @@
MI->addExternalSymbolOperand(FnName);
return *this;
}
+
+ const MachineInstrBuilder &addImplicitDefsUses() const {
+ MI->addImplicitDefUseOperands();
+ return *this;
+ }
};
/// BuildMI - Builder interface. Specify how to create the initial instruction
More information about the llvm-commits
mailing list