Lines Matching refs:DestReg
63 const DebugLoc &dl, unsigned DestReg,
76 .addReg(DestReg, getDefRegState(true), SubIdx)
83 const DebugLoc &dl, unsigned DestReg,
95 .addReg(DestReg, getDefRegState(true), SubIdx)
105 const DebugLoc &dl, Register DestReg, unsigned SubIdx, int Val,
110 assert((isARMLowRegister(DestReg) || DestReg.isVirtual()) &&
112 return emitThumb1LoadConstPool(MBB, MBBI, dl, DestReg, SubIdx, Val, Pred,
115 return emitThumb2LoadConstPool(MBB, MBBI, dl, DestReg, SubIdx, Val, Pred,
126 const DebugLoc &dl, Register DestReg, Register BaseReg, int NumBytes,
134 (DestReg.isVirtual() || isARMLowRegister(DestReg)) && NumBytes >= 0 &&
136 BuildMI(MBB, MBBI, dl, TII.get(ARM::tADDrSPi), DestReg)
144 bool isHigh = !isARMLowRegister(DestReg) ||
155 Register LdReg = DestReg;
156 if (DestReg == ARM::SP)
158 if (!isARMLowRegister(DestReg) && !DestReg.isVirtual())
237 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, dl, TII.get(Opc), DestReg);
240 if (DestReg == ARM::SP || isSub)
253 const DebugLoc &dl, Register DestReg,
274 // DestReg and BaseReg are low, high or the stack pointer.
275 // * CopyOpc - DestReg = BaseReg + imm
276 // This will be emitted once if DestReg != BaseReg, and never if
277 // DestReg == BaseReg.
278 // * ExtraOpc - DestReg = DestReg + imm
284 if (DestReg == ARM::SP) {
296 } else if (isARMLowRegister(DestReg)) {
303 } else if (DestReg == BaseReg) {
319 } else /* DestReg is high */ {
320 if (DestReg == BaseReg) {
362 unsigned Threshold = (DestReg == ARM::SP) ? 3 : 2;
367 DestReg, BaseReg, NumBytes, true,
377 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, dl, TII.get(CopyOpc), DestReg);
386 BaseReg = DestReg;
394 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, dl, TII.get(ExtraOpc), DestReg);
441 Register DestReg = MI.getOperand(0).getReg();
443 emitThumbRegPlusImmediate(MBB, II, dl, DestReg, FrameReg, Offset, TII,
466 Register DestReg = FrameReg;
471 DestReg = MF.getRegInfo().createVirtualRegister(&ARM::tGPRRegClass);
472 BuildMI(MBB, II, dl, TII.get(ARM::tMOVr), DestReg)
477 MI.getOperand(FrameRegIdx).ChangeToRegister(DestReg, false);