Lines Matching refs:MBBI
263 MachineBasicBlock::iterator MBBI = MI; in RemoveVRSaveCode() local
264 ++MBBI; in RemoveVRSaveCode()
265 assert(MBBI != Entry->end() && MBBI->getOpcode() == PPC::MTVRSAVE); in RemoveVRSaveCode()
266 MBBI->eraseFromParent(); in RemoveVRSaveCode()
275 for (MBBI = I->end(); MBBI != I->begin(); ) { in RemoveVRSaveCode()
276 --MBBI; in RemoveVRSaveCode()
277 if (MBBI->getOpcode() == PPC::MTVRSAVE) { in RemoveVRSaveCode()
278 MBBI->eraseFromParent(); // remove it. in RemoveVRSaveCode()
290 MBBI = MI; in RemoveVRSaveCode()
291 assert(MBBI != Entry->begin() && "UPDATE_VRSAVE is first instr in block?"); in RemoveVRSaveCode()
292 --MBBI; in RemoveVRSaveCode()
293 assert(MBBI->getOpcode() == PPC::MFVRSAVE && "VRSAVE instrs wandered?"); in RemoveVRSaveCode()
294 MBBI->eraseFromParent(); in RemoveVRSaveCode()
532 for (MachineBasicBlock::iterator MBBI = BI->end(); MBBI != BI->begin(); ) { in replaceFPWithRealFP() local
533 --MBBI; in replaceFPWithRealFP()
534 for (unsigned I = 0, E = MBBI->getNumOperands(); I != E; ++I) { in replaceFPWithRealFP()
535 MachineOperand &MO = MBBI->getOperand(I); in replaceFPWithRealFP()
560 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() local
584 for (unsigned i = 0; MBBI != MBB.end(); ++i, ++MBBI) { in emitPrologue()
585 if (MBBI->getOpcode() == PPC::UPDATE_VRSAVE) { in emitPrologue()
586 HandleVRSaveUpdate(MBBI, TII); in emitPrologue()
592 MBBI = MBB.begin(); in emitPrologue()
689 BuildMI(MBB, MBBI, dl, MFLRInst, ScratchReg); in emitPrologue()
699 BuildMI(MBB, MBBI, dl, TII.get(PPC::MFCR8), TempReg); in emitPrologue()
706 BuildMI(MBB, MBBI, dl, StoreInst) in emitPrologue()
713 BuildMI(MBB, MBBI, dl, StoreInst) in emitPrologue()
720 BuildMI(MBB, MBBI, dl, StoreInst) in emitPrologue()
727 BuildMI(MBB, MBBI, dl, StoreInst) in emitPrologue()
733 BuildMI(MBB, MBBI, dl, TII.get(PPC::STW8)) in emitPrologue()
746 BuildMI(MBB, MBBI, dl, OrInst, BPReg) in emitPrologue()
753 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLDICL), ScratchReg) in emitPrologue()
758 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLWINM), ScratchReg) in emitPrologue()
764 BuildMI(MBB, MBBI, dl, SubtractImmCarryingInst, ScratchReg) in emitPrologue()
768 BuildMI(MBB, MBBI, dl, LoadImmShiftedInst, TempReg) in emitPrologue()
770 BuildMI(MBB, MBBI, dl, OrImmInst, TempReg) in emitPrologue()
773 BuildMI(MBB, MBBI, dl, SubtractCarryingInst, ScratchReg) in emitPrologue()
777 BuildMI(MBB, MBBI, dl, StoreUpdtIdxInst, SPReg) in emitPrologue()
783 BuildMI(MBB, MBBI, dl, StoreUpdtInst, SPReg) in emitPrologue()
789 BuildMI(MBB, MBBI, dl, LoadImmShiftedInst, ScratchReg) in emitPrologue()
791 BuildMI(MBB, MBBI, dl, OrImmInst, ScratchReg) in emitPrologue()
794 BuildMI(MBB, MBBI, dl, StoreUpdtIdxInst, SPReg) in emitPrologue()
817 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
825 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
834 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
843 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
852 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
859 BuildMI(MBB, MBBI, dl, OrInst, FPReg) in emitPrologue()
870 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
903 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
911 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) in emitPrologue()
919 MachineBasicBlock::iterator MBBI = MBB.getLastNonDebugInstr(); in emitEpilogue() local
920 assert(MBBI != MBB.end() && "Returning block has no terminator"); in emitEpilogue()
926 unsigned RetOpcode = MBBI->getOpcode(); in emitEpilogue()
1019 MachineOperand &StackAdjust = MBBI->getOperand(1); in emitEpilogue()
1046 BuildMI(MBB, MBBI, dl, AddImmInst, SPReg) in emitEpilogue()
1049 BuildMI(MBB, MBBI, dl, LoadImmShiftedInst, ScratchReg) in emitEpilogue()
1051 BuildMI(MBB, MBBI, dl, OrImmInst, ScratchReg) in emitEpilogue()
1054 BuildMI(MBB, MBBI, dl, AddInst) in emitEpilogue()
1060 BuildMI(MBB, MBBI, dl, AddImmInst, SPReg) in emitEpilogue()
1064 BuildMI(MBB, MBBI, dl, LoadInst, SPReg) in emitEpilogue()
1072 BuildMI(MBB, MBBI, dl, LoadInst, ScratchReg) in emitEpilogue()
1080 BuildMI(MBB, MBBI, dl, TII.get(PPC::LWZ8), TempReg) in emitEpilogue()
1085 BuildMI(MBB, MBBI, dl, LoadInst, FPReg) in emitEpilogue()
1091 BuildMI(MBB, MBBI, dl, LoadInst) in emitEpilogue()
1097 BuildMI(MBB, MBBI, dl, LoadInst, BPReg) in emitEpilogue()
1103 BuildMI(MBB, MBBI, dl, TII.get(PPC::MTOCRF8), MustSaveCRs[i]) in emitEpilogue()
1107 BuildMI(MBB, MBBI, dl, MTLRInst).addReg(ScratchReg); in emitEpilogue()
1118 BuildMI(MBB, MBBI, dl, AddImmInst, SPReg) in emitEpilogue()
1121 BuildMI(MBB, MBBI, dl, LoadImmShiftedInst, ScratchReg) in emitEpilogue()
1123 BuildMI(MBB, MBBI, dl, OrImmInst, ScratchReg) in emitEpilogue()
1126 BuildMI(MBB, MBBI, dl, AddInst) in emitEpilogue()
1132 MBBI = MBB.getLastNonDebugInstr(); in emitEpilogue()
1133 MachineOperand &JumpTarget = MBBI->getOperand(0); in emitEpilogue()
1134 BuildMI(MBB, MBBI, dl, TII.get(PPC::TAILB)). in emitEpilogue()
1137 MBBI = MBB.getLastNonDebugInstr(); in emitEpilogue()
1138 assert(MBBI->getOperand(0).isReg() && "Expecting register operand."); in emitEpilogue()
1139 BuildMI(MBB, MBBI, dl, TII.get(PPC::TAILBCTR)); in emitEpilogue()
1141 MBBI = MBB.getLastNonDebugInstr(); in emitEpilogue()
1142 MachineOperand &JumpTarget = MBBI->getOperand(0); in emitEpilogue()
1143 BuildMI(MBB, MBBI, dl, TII.get(PPC::TAILBA)).addImm(JumpTarget.getImm()); in emitEpilogue()
1145 MBBI = MBB.getLastNonDebugInstr(); in emitEpilogue()
1146 MachineOperand &JumpTarget = MBBI->getOperand(0); in emitEpilogue()
1147 BuildMI(MBB, MBBI, dl, TII.get(PPC::TAILB8)). in emitEpilogue()
1150 MBBI = MBB.getLastNonDebugInstr(); in emitEpilogue()
1151 assert(MBBI->getOperand(0).isReg() && "Expecting register operand."); in emitEpilogue()
1152 BuildMI(MBB, MBBI, dl, TII.get(PPC::TAILBCTR8)); in emitEpilogue()
1154 MBBI = MBB.getLastNonDebugInstr(); in emitEpilogue()
1155 MachineOperand &JumpTarget = MBBI->getOperand(0); in emitEpilogue()
1156 BuildMI(MBB, MBBI, dl, TII.get(PPC::TAILBA8)).addImm(JumpTarget.getImm()); in emitEpilogue()
1609 MachineBasicBlock::iterator MBBI = I; in eliminateCallFramePseudoInstr() local
1610 BuildMI(MBB, MBBI, dl, TII.get(LISInstr), TmpReg) in eliminateCallFramePseudoInstr()
1612 BuildMI(MBB, MBBI, dl, TII.get(ORIInstr), TmpReg) in eliminateCallFramePseudoInstr()
1615 BuildMI(MBB, MBBI, dl, TII.get(ADDInstr), StackReg) in eliminateCallFramePseudoInstr()