Lines Matching refs:MBBI

261   MachineBasicBlock::iterator MBBI = MI;  in RemoveVRSaveCode()  local
262 ++MBBI; in RemoveVRSaveCode()
263 assert(MBBI != Entry->end() && MBBI->getOpcode() == PPC::MTVRSAVE); in RemoveVRSaveCode()
264 MBBI->eraseFromParent(); in RemoveVRSaveCode()
273 for (MBBI = I->end(); MBBI != I->begin(); ) { in RemoveVRSaveCode()
274 --MBBI; in RemoveVRSaveCode()
275 if (MBBI->getOpcode() == PPC::MTVRSAVE) { in RemoveVRSaveCode()
276 MBBI->eraseFromParent(); // remove it. in RemoveVRSaveCode()
288 MBBI = MI; in RemoveVRSaveCode()
289 assert(MBBI != Entry->begin() && "UPDATE_VRSAVE is first instr in block?"); in RemoveVRSaveCode()
290 --MBBI; in RemoveVRSaveCode()
291 assert(MBBI->getOpcode() == PPC::MFVRSAVE && "VRSAVE instrs wandered?"); in RemoveVRSaveCode()
292 MBBI->eraseFromParent(); in RemoveVRSaveCode()
531 for (MachineBasicBlock::iterator MBBI = BI->end(); MBBI != BI->begin(); ) { in replaceFPWithRealFP() local
532 --MBBI; in replaceFPWithRealFP()
533 for (unsigned I = 0, E = MBBI->getNumOperands(); I != E; ++I) { in replaceFPWithRealFP()
534 MachineOperand &MO = MBBI->getOperand(I); in replaceFPWithRealFP()
603 MachineBasicBlock::iterator MBBI = MBB->getFirstTerminator(); in findScratchRegister() local
605 if (MBBI == MBB->end()) in findScratchRegister()
606 MBBI = std::prev(MBBI); in findScratchRegister()
608 if (MBBI != MBB->begin()) in findScratchRegister()
609 RS.forward(MBBI); in findScratchRegister()
695 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
719 for (unsigned i = 0; MBBI != MBB.end(); ++i, ++MBBI) { in emitPrologue()
720 if (MBBI->getOpcode() == PPC::UPDATE_VRSAVE) { in emitPrologue()
721 HandleVRSaveUpdate(MBBI, TII); in emitPrologue()
727 MBBI = MBB.begin(); in emitPrologue()
850 BuildMI(MBB, MBBI, dl, TII.get(MfcrOpcode), TempReg); in emitPrologue()
853 BuildMI(MBB, MBBI, dl, TII.get(PPC::STW8)) in emitPrologue()
860 BuildMI(MBB, MBBI, dl, MFLRInst, ScratchReg); in emitPrologue()
875 BuildMI(MBB, MBBI, dl, TII.get(MfcrOpcode), TempReg); in emitPrologue()
882 BuildMI(MBB, MBBI, dl, StoreInst) in emitPrologue()
889 BuildMI(MBB, MBBI, dl, StoreInst) in emitPrologue()
896 BuildMI(MBB, MBBI, dl, StoreInst) in emitPrologue()
903 BuildMI(MBB, MBBI, dl, StoreInst) in emitPrologue()
910 BuildMI(MBB, MBBI, dl, TII.get(PPC::STW8)) in emitPrologue()
923 BuildMI(MBB, MBBI, dl, OrInst, BPReg) in emitPrologue()
931 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLDICL), ScratchReg) in emitPrologue()
936 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLWINM), ScratchReg) in emitPrologue()
942 BuildMI(MBB, MBBI, dl, SubtractImmCarryingInst, ScratchReg) in emitPrologue()
947 BuildMI(MBB, MBBI, dl, LoadImmShiftedInst, TempReg) in emitPrologue()
949 BuildMI(MBB, MBBI, dl, OrImmInst, TempReg) in emitPrologue()
952 BuildMI(MBB, MBBI, dl, SubtractCarryingInst, ScratchReg) in emitPrologue()
956 BuildMI(MBB, MBBI, dl, StoreUpdtIdxInst, SPReg) in emitPrologue()
962 BuildMI(MBB, MBBI, dl, StoreUpdtInst, SPReg) in emitPrologue()
968 BuildMI(MBB, MBBI, dl, LoadImmShiftedInst, ScratchReg) in emitPrologue()
970 BuildMI(MBB, MBBI, dl, OrImmInst, ScratchReg) in emitPrologue()
973 BuildMI(MBB, MBBI, dl, StoreUpdtIdxInst, SPReg) in emitPrologue()
996 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
1004 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
1013 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
1022 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
1031 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
1038 BuildMI(MBB, MBBI, dl, OrInst, FPReg) in emitPrologue()
1049 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
1082 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
1090 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
1098 MachineBasicBlock::iterator MBBI = MBB.getFirstTerminator(); in emitEpilogue() local
1101 if (MBBI != MBB.end()) in emitEpilogue()
1102 dl = MBBI->getDebugLoc(); in emitEpilogue()
1190 bool IsReturnBlock = (MBBI != MBB.end() && MBBI->isReturn()); in emitEpilogue()
1193 unsigned RetOpcode = MBBI->getOpcode(); in emitEpilogue()
1203 MachineOperand &StackAdjust = MBBI->getOperand(1); in emitEpilogue()
1231 BuildMI(MBB, MBBI, dl, AddImmInst, SPReg) in emitEpilogue()
1234 BuildMI(MBB, MBBI, dl, LoadImmShiftedInst, ScratchReg) in emitEpilogue()
1236 BuildMI(MBB, MBBI, dl, OrImmInst, ScratchReg) in emitEpilogue()
1239 BuildMI(MBB, MBBI, dl, AddInst) in emitEpilogue()
1245 BuildMI(MBB, MBBI, dl, AddImmInst, SPReg) in emitEpilogue()
1249 BuildMI(MBB, MBBI, dl, LoadInst, SPReg) in emitEpilogue()
1261 BuildMI(MBB, MBBI, dl, TII.get(PPC::LWZ8), TempReg) in emitEpilogue()
1265 BuildMI(MBB, MBBI, dl, TII.get(PPC::MTOCRF8), MustSaveCRs[i]) in emitEpilogue()
1270 BuildMI(MBB, MBBI, dl, LoadInst, ScratchReg) in emitEpilogue()
1276 BuildMI(MBB, MBBI, dl, TII.get(PPC::LWZ8), TempReg) in emitEpilogue()
1281 BuildMI(MBB, MBBI, dl, LoadInst, FPReg) in emitEpilogue()
1287 BuildMI(MBB, MBBI, dl, LoadInst) in emitEpilogue()
1293 BuildMI(MBB, MBBI, dl, LoadInst, BPReg) in emitEpilogue()
1300 BuildMI(MBB, MBBI, dl, TII.get(PPC::MTOCRF8), MustSaveCRs[i]) in emitEpilogue()
1304 BuildMI(MBB, MBBI, dl, MTLRInst).addReg(ScratchReg); in emitEpilogue()
1309 unsigned RetOpcode = MBBI->getOpcode(); in emitEpilogue()
1317 BuildMI(MBB, MBBI, dl, AddImmInst, SPReg) in emitEpilogue()
1320 BuildMI(MBB, MBBI, dl, LoadImmShiftedInst, ScratchReg) in emitEpilogue()
1322 BuildMI(MBB, MBBI, dl, OrImmInst, ScratchReg) in emitEpilogue()
1325 BuildMI(MBB, MBBI, dl, AddInst) in emitEpilogue()
1337 MachineBasicBlock::iterator MBBI = MBB.getFirstTerminator(); in createTailCallBranchInstr() local
1340 if (MBBI != MBB.end()) in createTailCallBranchInstr()
1341 dl = MBBI->getDebugLoc(); in createTailCallBranchInstr()
1347 unsigned RetOpcode = MBBI->getOpcode(); in createTailCallBranchInstr()
1349 MBBI = MBB.getLastNonDebugInstr(); in createTailCallBranchInstr()
1350 MachineOperand &JumpTarget = MBBI->getOperand(0); in createTailCallBranchInstr()
1351 BuildMI(MBB, MBBI, dl, TII.get(PPC::TAILB)). in createTailCallBranchInstr()
1354 MBBI = MBB.getLastNonDebugInstr(); in createTailCallBranchInstr()
1355 assert(MBBI->getOperand(0).isReg() && "Expecting register operand."); in createTailCallBranchInstr()
1356 BuildMI(MBB, MBBI, dl, TII.get(PPC::TAILBCTR)); in createTailCallBranchInstr()
1358 MBBI = MBB.getLastNonDebugInstr(); in createTailCallBranchInstr()
1359 MachineOperand &JumpTarget = MBBI->getOperand(0); in createTailCallBranchInstr()
1360 BuildMI(MBB, MBBI, dl, TII.get(PPC::TAILBA)).addImm(JumpTarget.getImm()); in createTailCallBranchInstr()
1362 MBBI = MBB.getLastNonDebugInstr(); in createTailCallBranchInstr()
1363 MachineOperand &JumpTarget = MBBI->getOperand(0); in createTailCallBranchInstr()
1364 BuildMI(MBB, MBBI, dl, TII.get(PPC::TAILB8)). in createTailCallBranchInstr()
1367 MBBI = MBB.getLastNonDebugInstr(); in createTailCallBranchInstr()
1368 assert(MBBI->getOperand(0).isReg() && "Expecting register operand."); in createTailCallBranchInstr()
1369 BuildMI(MBB, MBBI, dl, TII.get(PPC::TAILBCTR8)); in createTailCallBranchInstr()
1371 MBBI = MBB.getLastNonDebugInstr(); in createTailCallBranchInstr()
1372 MachineOperand &JumpTarget = MBBI->getOperand(0); in createTailCallBranchInstr()
1373 BuildMI(MBB, MBBI, dl, TII.get(PPC::TAILBA8)).addImm(JumpTarget.getImm()); in createTailCallBranchInstr()
1838 MachineBasicBlock::iterator MBBI = I; in eliminateCallFramePseudoInstr() local
1839 BuildMI(MBB, MBBI, dl, TII.get(LISInstr), TmpReg) in eliminateCallFramePseudoInstr()
1841 BuildMI(MBB, MBBI, dl, TII.get(ORIInstr), TmpReg) in eliminateCallFramePseudoInstr()
1844 BuildMI(MBB, MBBI, dl, TII.get(ADDInstr), StackReg) in eliminateCallFramePseudoInstr()