Lines Matching refs:MBBI
52 MachineBasicBlock::iterator MBBI = MI;
53 ++MBBI;
54 assert(MBBI != Entry->end() && MBBI->getOpcode() == PPC::MTVRSAVE);
55 MBBI->eraseFromParent();
64 for (MBBI = I->end(); MBBI != I->begin(); ) {
65 --MBBI;
66 if (MBBI->getOpcode() == PPC::MTVRSAVE) {
67 MBBI->eraseFromParent(); // remove it.
79 MBBI = MI;
80 assert(MBBI != Entry->begin() && "UPDATE_VRSAVE is first instr in block?");
81 --MBBI;
82 assert(MBBI->getOpcode() == PPC::MFVRSAVE && "VRSAVE instrs wandered?");
83 MBBI->eraseFromParent();
308 for (MachineBasicBlock::iterator MBBI = BI->end(); MBBI != BI->begin(); ) {
309 --MBBI;
310 for (unsigned I = 0, E = MBBI->getNumOperands(); I != E; ++I) {
311 MachineOperand &MO = MBBI->getOperand(I);
336 MachineBasicBlock::iterator MBBI = MBB.begin();
355 for (unsigned i = 0; MBBI != MBB.end(); ++i, ++MBBI) {
356 if (MBBI->getOpcode() == PPC::UPDATE_VRSAVE) {
357 HandleVRSaveUpdate(MBBI, TII);
362 // Move MBBI back to the beginning of the function.
363 MBBI = MBB.begin();
415 BuildMI(MBB, MBBI, dl, TII.get(PPC::MFLR8), PPC::X0);
419 BuildMI(MBB, MBBI, dl, TII.get(PPC::MFCR8), PPC::X12);
425 BuildMI(MBB, MBBI, dl, TII.get(PPC::STD))
431 BuildMI(MBB, MBBI, dl, TII.get(PPC::STD))
437 BuildMI(MBB, MBBI, dl, TII.get(PPC::STD))
443 BuildMI(MBB, MBBI, dl, TII.get(PPC::STW8))
449 BuildMI(MBB, MBBI, dl, TII.get(PPC::MFLR), PPC::R0);
454 BuildMI(MBB, MBBI, dl, TII.get(PPC::STW))
462 BuildMI(MBB, MBBI, dl, TII.get(PPC::STW))
471 BuildMI(MBB, MBBI, dl, TII.get(PPC::STW))
490 BuildMI(MBB, MBBI, dl, TII.get(PPC::OR), PPC::R30)
499 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLWINM), PPC::R0)
505 BuildMI(MBB, MBBI, dl, TII.get(PPC::SUBFIC), PPC::R0)
509 BuildMI(MBB, MBBI, dl, TII.get(PPC::LIS), PPC::R12)
511 BuildMI(MBB, MBBI, dl, TII.get(PPC::ORI), PPC::R12)
514 BuildMI(MBB, MBBI, dl, TII.get(PPC::SUBFC), PPC::R0)
518 BuildMI(MBB, MBBI, dl, TII.get(PPC::STWUX), PPC::R1)
523 BuildMI(MBB, MBBI, dl, TII.get(PPC::STWU), PPC::R1)
528 BuildMI(MBB, MBBI, dl, TII.get(PPC::LIS), PPC::R0)
530 BuildMI(MBB, MBBI, dl, TII.get(PPC::ORI), PPC::R0)
533 BuildMI(MBB, MBBI, dl, TII.get(PPC::STWUX), PPC::R1)
541 BuildMI(MBB, MBBI, dl, TII.get(PPC::OR8), PPC::X30)
550 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLDICL), PPC::X0)
555 BuildMI(MBB, MBBI, dl, TII.get(PPC::SUBFIC8), PPC::X0)
559 BuildMI(MBB, MBBI, dl, TII.get(PPC::LIS8), PPC::X12)
561 BuildMI(MBB, MBBI, dl, TII.get(PPC::ORI8), PPC::X12)
564 BuildMI(MBB, MBBI, dl, TII.get(PPC::SUBFC8), PPC::X0)
568 BuildMI(MBB, MBBI, dl, TII.get(PPC::STDUX), PPC::X1)
573 BuildMI(MBB, MBBI, dl, TII.get(PPC::STDU), PPC::X1)
578 BuildMI(MBB, MBBI, dl, TII.get(PPC::LIS8), PPC::X0)
580 BuildMI(MBB, MBBI, dl, TII.get(PPC::ORI8), PPC::X0)
583 BuildMI(MBB, MBBI, dl, TII.get(PPC::STDUX), PPC::X1)
595 BuildMI(MBB, MBBI, dl, TII.get(PPC::PROLOG_LABEL)).addSym(FrameLabel);
629 BuildMI(MBB, MBBI, dl, TII.get(PPC::OR), PPC::R31)
633 BuildMI(MBB, MBBI, dl, TII.get(PPC::OR8), PPC::X31)
642 BuildMI(MBB, MBBI, dl, TII.get(PPC::PROLOG_LABEL)).addSym(ReadyLabel);
691 MachineBasicBlock::iterator MBBI = MBB.getLastNonDebugInstr();
692 assert(MBBI != MBB.end() && "Returning block has no terminator");
698 unsigned RetOpcode = MBBI->getOpcode();
764 MachineOperand &StackAdjust = MBBI->getOperand(1);
786 BuildMI(MBB, MBBI, dl, TII.get(PPC::ADDI), PPC::R1)
789 BuildMI(MBB, MBBI, dl, TII.get(PPC::LIS), PPC::R0)
791 BuildMI(MBB, MBBI, dl, TII.get(PPC::ORI), PPC::R0)
794 BuildMI(MBB, MBBI, dl, TII.get(PPC::ADD4))
801 BuildMI(MBB, MBBI, dl, TII.get(PPC::ADDI), PPC::R1)
804 BuildMI(MBB, MBBI, dl, TII.get(PPC::LWZ),PPC::R1)
810 BuildMI(MBB, MBBI, dl, TII.get(PPC::ADDI8), PPC::X1)
813 BuildMI(MBB, MBBI, dl, TII.get(PPC::LIS8), PPC::X0)
815 BuildMI(MBB, MBBI, dl, TII.get(PPC::ORI8), PPC::X0)
818 BuildMI(MBB, MBBI, dl, TII.get(PPC::ADD8))
824 BuildMI(MBB, MBBI, dl, TII.get(PPC::ADDI8), PPC::X1)
827 BuildMI(MBB, MBBI, dl, TII.get(PPC::LD), PPC::X1)
835 BuildMI(MBB, MBBI, dl, TII.get(PPC::LD), PPC::X0)
839 BuildMI(MBB, MBBI, dl, TII.get(PPC::LWZ8), PPC::X12)
843 BuildMI(MBB, MBBI, dl, TII.get(PPC::LD), PPC::X31)
847 BuildMI(MBB, MBBI, dl, TII.get(PPC::LD), PPC::X30)
852 BuildMI(MBB, MBBI, dl, TII.get(PPC::MTOCRF8), MustSaveCRs[i])
856 BuildMI(MBB, MBBI, dl, TII.get(PPC::MTLR8)).addReg(PPC::X0);
859 BuildMI(MBB, MBBI, dl, TII.get(PPC::LWZ), PPC::R0)
866 BuildMI(MBB, MBBI, dl, TII.get(PPC::LWZ), PPC::R31)
870 BuildMI(MBB, MBBI, dl, TII.get(PPC::LWZ), PPC::R30)
874 BuildMI(MBB, MBBI, dl, TII.get(PPC::MTLR)).addReg(PPC::R0);
892 BuildMI(MBB, MBBI, dl, TII.get(ADDIInstr), StackReg)
895 BuildMI(MBB, MBBI, dl, TII.get(LISInstr), TmpReg)
897 BuildMI(MBB, MBBI, dl, TII.get(ORIInstr), TmpReg)
900 BuildMI(MBB, MBBI, dl, TII.get(ADDInstr))
906 MBBI = MBB.getLastNonDebugInstr();
907 MachineOperand &JumpTarget = MBBI->getOperand(0);
908 BuildMI(MBB, MBBI, dl, TII.get(PPC::TAILB)).
911 MBBI = MBB.getLastNonDebugInstr();
912 assert(MBBI->getOperand(0).isReg() && "Expecting register operand.");
913 BuildMI(MBB, MBBI, dl, TII.get(PPC::TAILBCTR));
915 MBBI = MBB.getLastNonDebugInstr();
916 MachineOperand &JumpTarget = MBBI->getOperand(0);
917 BuildMI(MBB, MBBI, dl, TII.get(PPC::TAILBA)).addImm(JumpTarget.getImm());
919 MBBI = MBB.getLastNonDebugInstr();
920 MachineOperand &JumpTarget = MBBI->getOperand(0);
921 BuildMI(MBB, MBBI, dl, TII.get(PPC::TAILB8)).
924 MBBI = MBB.getLastNonDebugInstr();
925 assert(MBBI->getOperand(0).isReg() && "Expecting register operand.");
926 BuildMI(MBB, MBBI, dl, TII.get(PPC::TAILBCTR8));
928 MBBI = MBB.getLastNonDebugInstr();
929 MachineOperand &JumpTarget = MBBI->getOperand(0);
930 BuildMI(MBB, MBBI, dl, TII.get(PPC::TAILBA8)).addImm(JumpTarget.getImm());
1382 MachineBasicBlock::iterator MBBI = I;
1383 BuildMI(MBB, MBBI, dl, TII.get(LISInstr), TmpReg)
1385 BuildMI(MBB, MBBI, dl, TII.get(ORIInstr), TmpReg)
1388 BuildMI(MBB, MBBI, dl, TII.get(ADDInstr), StackReg)