Lines Matching full:basereg
120 /// a destreg = basereg + immediate in Thumb code. Materialize the immediate
127 unsigned DestReg, unsigned BaseReg,
134 (BaseReg != 0 && !isARMLowRegister(BaseReg));
146 assert(BaseReg == ARM::SP && "Unexpected!");
170 MIB.addReg(BaseReg).addReg(LdReg, RegState::Kill);
172 MIB.addReg(LdReg).addReg(BaseReg, RegState::Kill);
177 /// a destreg = basereg + immediate in Thumb code. Tries a series of ADDs or
183 unsigned DestReg, unsigned BaseReg,
203 // DestReg and BaseReg are low, high or the stack pointer.
204 // * CopyOpc - DestReg = BaseReg + imm
205 // This will be emitted once if DestReg != BaseReg, and never if
206 // DestReg == BaseReg.
214 if (BaseReg == ARM::SP) {
226 if (BaseReg == ARM::SP) {
232 } else if (DestReg == BaseReg) {
235 } else if (isARMLowRegister(BaseReg)) {
249 if (DestReg == BaseReg) {
296 DestReg, BaseReg, NumBytes, true,
309 MIB.addReg(BaseReg, RegState::Kill);
315 BaseReg = DestReg;
326 MIB.addReg(BaseReg).addImm(ExtraImm);
423 void ThumbRegisterInfo::resolveFrameIndex(MachineInstr &MI, unsigned BaseReg,
428 return ARMBaseRegisterInfo::resolveFrameIndex(MI, BaseReg, Offset);
438 bool Done = rewriteFrameIndex(MI, i, BaseReg, Off, TII);