[llvm-commits] CVS: llvm/lib/Target/X86/X86InstrBuilder.h
Misha Brukman
brukman at cs.uiuc.edu
Fri Nov 22 16:43:01 PST 2002
Changes in directory llvm/lib/Target/X86:
X86InstrBuilder.h updated: 1.1 -> 1.2
---
Log message:
Add a simple way to add memory locations of format [reg+offset]
---
Diffs of the changes:
Index: llvm/lib/Target/X86/X86InstrBuilder.h
diff -u llvm/lib/Target/X86/X86InstrBuilder.h:1.1 llvm/lib/Target/X86/X86InstrBuilder.h:1.2
--- llvm/lib/Target/X86/X86InstrBuilder.h:1.1 Sun Nov 17 15:03:35 2002
+++ llvm/lib/Target/X86/X86InstrBuilder.h Fri Nov 22 16:42:12 2002
@@ -25,4 +25,13 @@
return MIB.addReg(Reg).addZImm(1).addMReg(0).addSImm(0);
}
+
+/// addRegOffset -
+///
+///
+inline const MachineInstrBuilder &addRegOffset(const MachineInstrBuilder &MIB,
+ unsigned Reg, unsigned Offset) {
+ return MIB.addReg(Reg).addZImm(1).addMReg(0).addSImm(Offset);
+}
+
#endif
More information about the llvm-commits
mailing list