llvm.org GIT mirror llvm / faf0b8c
Add a simple way to add memory locations of format [reg+offset] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4825 91177308-0d34-0410-b5e6-96231b3b80d8 Misha Brukman 17 years ago
1 changed file(s) with 9 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2424 return MIB.addReg(Reg).addZImm(1).addMReg(0).addSImm(0);
2525 }
2626
27
28 /// addRegOffset -
29 ///
30 ///
31 inline const MachineInstrBuilder &addRegOffset(const MachineInstrBuilder &MIB,
32 unsigned Reg, unsigned Offset) {
33 return MIB.addReg(Reg).addZImm(1).addMReg(0).addSImm(Offset);
34 }
35
2736 #endif