Lines Matching refs:ScratchReg
650 Register ScratchReg; in emitPrologue() local
684 &MBB, false, twoUniqueScratchRegsRequired(&MBB), &ScratchReg, &TempReg); in emitPrologue()
688 SingleScratchReg = ScratchReg == TempReg; in emitPrologue()
796 BuildMI(MBB, MBBI, dl, MFLRInst, ScratchReg); in emitPrologue()
821 .addReg(ScratchReg, getKillRegState(true)) in emitPrologue()
861 .addDef(ScratchReg) in emitPrologue()
868 BuildMI(MBB, MBBI, dl, TII.get(PPC::SUBF), ScratchReg) in emitPrologue()
877 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLDICL), ScratchReg) in emitPrologue()
882 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLWINM), ScratchReg) in emitPrologue()
888 BuildMI(MBB, MBBI, dl, SubtractImmCarryingInst, ScratchReg) in emitPrologue()
889 .addReg(ScratchReg, RegState::Kill) in emitPrologue()
898 BuildMI(MBB, MBBI, dl, SubtractCarryingInst, ScratchReg) in emitPrologue()
899 .addReg(ScratchReg, RegState::Kill) in emitPrologue()
906 .addReg(ScratchReg); in emitPrologue()
916 BuildMI(MBB, MBBI, dl, LoadImmShiftedInst, ScratchReg) in emitPrologue()
918 BuildMI(MBB, MBBI, dl, OrImmInst, ScratchReg) in emitPrologue()
919 .addReg(ScratchReg, RegState::Kill) in emitPrologue()
924 .addReg(ScratchReg); in emitPrologue()
952 BuildMI(MBB, MBBI, dl, TII.get(PPC::SUBF), ScratchReg) in emitPrologue()
953 .addReg(ScratchReg, RegState::Kill) in emitPrologue()
956 if (ScratchReg == PPC::R0) { in emitPrologue()
963 BuildMI(MBB, MBBI, dl, TII.get(PPC::ADDIC), ScratchReg) in emitPrologue()
964 .addReg(ScratchReg) in emitPrologue()
971 .addReg(ScratchReg); // This will be the index (R0 is ok here). in emitPrologue()
975 BuildMI(MBB, MBBI, dl, TII.get(PPC::ADDIC), ScratchReg) in emitPrologue()
976 .addReg(ScratchReg) in emitPrologue()
982 .addReg(ScratchReg); // This will be the index (R0 is ok here). in emitPrologue()
986 BuildMI(MBB, MBBI, dl, TII.get(PPC::ADDIC), ScratchReg) in emitPrologue()
987 .addReg(ScratchReg) in emitPrologue()
993 .addReg(ScratchReg); // This will be the index (R0 is ok here). in emitPrologue()
996 .addReg(ScratchReg, RegState::Kill) in emitPrologue()
1009 .addReg(ScratchReg); in emitPrologue()
1014 .addReg(ScratchReg); in emitPrologue()
1019 .addReg(ScratchReg); in emitPrologue()
1021 .addReg(ScratchReg, RegState::Kill) in emitPrologue()
1022 .addReg(ScratchReg); in emitPrologue()
1215 Register ScratchReg = MI.getOperand(0).getReg(); in inlineStackProbe() local
1286 MachineBasicBlock::iterator MBBI, Register ScratchReg, in inlineStackProbe()
1291 BuildMI(MBB, MBBI, DL, TII.get(PPC::RLDICL), ScratchReg) in inlineStackProbe()
1297 .addReg(ScratchReg) in inlineStackProbe()
1300 BuildMI(MBB, MBBI, DL, TII.get(PPC::RLDICL), ScratchReg) in inlineStackProbe()
1301 .addReg(ScratchReg) in inlineStackProbe()
1338 BuildMI(&MBB, DL, TII.get(PPC::CMPDI), CRReg).addReg(ScratchReg).addImm(0); in inlineStackProbe()
1346 BuildMI(ProbeResidualMBB, DL, TII.get(PPC::NEG8), ScratchReg) in inlineStackProbe()
1347 .addReg(ScratchReg); in inlineStackProbe()
1348 allocateAndProbe(*ProbeResidualMBB, ProbeResidualMBB->end(), 0, ScratchReg, in inlineStackProbe()
1353 NegProbeSize, ScratchReg); in inlineStackProbe()
1364 allocateAndProbe(*ProbeLoopBodyMBB, ProbeLoopBodyMBB->end(), 0, ScratchReg, in inlineStackProbe()
1394 CurrentMBB = dynamicProbe(*CurrentMBB, {MI}, ScratchReg, TempReg); in inlineStackProbe()
1407 BuildMI(*CurrentMBB, {MI}, DL, TII.get(PPC::RLWINM), ScratchReg) in inlineStackProbe()
1413 .addReg(ScratchReg) in inlineStackProbe()
1427 MaterializeImm(*CurrentMBB, {MI}, NegResidualSize, ScratchReg); in inlineStackProbe()
1428 allocateAndProbe(*CurrentMBB, {MI}, NegResidualSize, ScratchReg, in inlineStackProbe()
1435 MaterializeImm(*CurrentMBB, {MI}, NegProbeSize, ScratchReg); in inlineStackProbe()
1437 allocateAndProbe(*CurrentMBB, {MI}, NegProbeSize, ScratchReg, UseDForm, in inlineStackProbe()
1448 MaterializeImm(*CurrentMBB, {MI}, NumBlocks, ScratchReg); in inlineStackProbe()
1450 .addReg(ScratchReg, RegState::Kill); in inlineStackProbe()
1452 MaterializeImm(*CurrentMBB, {MI}, NegProbeSize, ScratchReg); in inlineStackProbe()
1461 allocateAndProbe(*LoopMBB, LoopMBB->end(), NegProbeSize, ScratchReg, in inlineStackProbe()
1518 Register ScratchReg; in emitEpilogue() local
1543 bool SingleScratchReg = findScratchRegister(&MBB, true, false, &ScratchReg, in emitEpilogue()
1548 SingleScratchReg = ScratchReg == TempReg; in emitEpilogue()
1658 BuildMI(MBB, MBBI, dl, LoadImmShiftedInst, ScratchReg) in emitEpilogue()
1660 BuildMI(MBB, MBBI, dl, OrImmInst, ScratchReg) in emitEpilogue()
1661 .addReg(ScratchReg, RegState::Kill) in emitEpilogue()
1666 .addReg(ScratchReg); in emitEpilogue()
1689 BuildMI(MBB, MBBI, dl, OrInst, ScratchReg) in emitEpilogue()
1699 assert(RBReg != ScratchReg && "Should have avoided ScratchReg"); in emitEpilogue()
1724 BuildMI(MBB, StackUpdateLoc, dl, LoadInst, ScratchReg) in emitEpilogue()
1745 BuildMI(MBB, MBBI, dl, LoadInst, ScratchReg) in emitEpilogue()
1774 assert(RBReg != ScratchReg && "Should be using FP or SP as base register"); in emitEpilogue()
1777 .addReg(ScratchReg) in emitEpilogue()
1778 .addReg(ScratchReg); in emitEpilogue()
1782 BuildMI(MBB, MBBI, dl, LoadInst, ScratchReg) in emitEpilogue()
1794 BuildMI(MBB, StackUpdateLoc, dl, MTLRInst).addReg(ScratchReg); in emitEpilogue()
1810 BuildMI(MBB, MBBI, dl, LoadImmShiftedInst, ScratchReg) in emitEpilogue()
1812 BuildMI(MBB, MBBI, dl, OrImmInst, ScratchReg) in emitEpilogue()
1813 .addReg(ScratchReg, RegState::Kill) in emitEpilogue()
1818 .addReg(ScratchReg); in emitEpilogue()