Lines Matching refs:ScratchReg
86 // Emit instructions to add delta to D/P register. ScratchReg must be of the
92 unsigned ScratchReg,
103 // We must load delta into ScratchReg and add that.
104 loadConstant(MBB, I, DL, ScratchReg, delta);
106 assert(BF::PRegClass.contains(ScratchReg) &&
107 "ScratchReg must be a P register");
110 .addReg(ScratchReg, RegState::Kill);
113 assert(BF::DRegClass.contains(ScratchReg) &&
114 "ScratchReg must be a D register");
117 .addReg(ScratchReg, RegState::Kill);
267 unsigned ScratchReg = findScratchRegister(II, RS, &BF::PRegClass, SPAdj);
268 assert(ScratchReg && "Could not scavenge register");
269 loadConstant(MBB, II, DL, ScratchReg, Offset);
270 BuildMI(MBB, II, DL, TII.get(BF::ADDpp), ScratchReg)
271 .addReg(ScratchReg, RegState::Kill)
274 MI.getOperand(1).ChangeToRegister(ScratchReg, false, false, true);
282 unsigned ScratchReg = findScratchRegister(II, RS, &BF::DRegClass, SPAdj);
283 assert(ScratchReg && "Could not scavenge register");
285 BuildMI(MBB, II, DL, TII.get(BF::MOVENCC_z), ScratchReg)
287 BuildMI(MBB, II, DL, TII.get(BF::BITTGL), ScratchReg)
288 .addReg(ScratchReg).addImm(0);
290 BuildMI(MBB, II, DL, TII.get(BF::MOVECC_zext), ScratchReg)
295 MI.getOperand(0).ChangeToRegister(ScratchReg, false, false, true);
304 unsigned ScratchReg = findScratchRegister(II, RS, &BF::DRegClass, SPAdj);
305 assert(ScratchReg && "Could not scavenge register");
307 MI.getOperand(0).ChangeToRegister(ScratchReg, true);
314 .addReg(ScratchReg, RegState::Kill);
318 .addReg(ScratchReg, RegState::Kill)