[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineInstrBuilder.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Jan 15 11:19:01 PST 2003
Changes in directory llvm/include/llvm/CodeGen:
MachineInstrBuilder.h updated: 1.11 -> 1.12
---
Log message:
Add new helper method addRegDef
---
Diffs of the changes:
Index: llvm/include/llvm/CodeGen/MachineInstrBuilder.h
diff -u llvm/include/llvm/CodeGen/MachineInstrBuilder.h:1.11 llvm/include/llvm/CodeGen/MachineInstrBuilder.h:1.12
--- llvm/include/llvm/CodeGen/MachineInstrBuilder.h:1.11 Sun Jan 12 18:18:44 2003
+++ llvm/include/llvm/CodeGen/MachineInstrBuilder.h Wed Jan 15 11:18:22 2003
@@ -43,13 +43,11 @@
return *this;
}
- /// addClobber - Assert that this MI is going to clobber a specific
- /// register. Useful for instructions that always clobber certain hard regs.
- /// (Same as addReg(RegNo, true) but shorter and more obvious).
+ /// addRegDef - Add an LLVM value that is to be defined as a register... this
+ /// is the same as addReg(V, MOTy::Def).
///
- const MachineInstrBuilder &addClobber(int RegNo) const {
- MI->addRegOperand(RegNo, MOTy::Def);
- return *this;
+ const MachineInstrBuilder &addRegDef(Value *V) const {
+ return addReg(V, MOTy::Def);
}
/// addPCDisp - Add an LLVM value to be treated as a PC relative
More information about the llvm-commits
mailing list