llvm.org GIT mirror llvm / 2e68037
Add a helper to create an addressing mode given all of the pieces. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11818 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
1 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
4848 return MIB.addReg(Reg).addZImm(1).addReg(0).addSImm(Offset);
4949 }
5050
51 inline const MachineInstrBuilder &addFullAddress(const MachineInstrBuilder &MIB,
52 unsigned BaseReg,
53 unsigned Scale,
54 unsigned IndexReg,
55 unsigned Disp) {
56 return MIB.addReg(BaseReg).addZImm(Scale).addReg(IndexReg).addSImm(Disp);
57 }
58
5159 /// addFrameReference - This function is used to add a reference to the base of
5260 /// an abstract object on the stack frame of the current function. This
5361 /// reference has base register as the FrameIndex offset until it is resolved.