Lines Matching refs:MBBI
33 bool usePopRet(MachineBasicBlock::iterator &MBBI,
35 bool adjustRetVal(MachineBasicBlock::iterator &MBBI);
50 for (MachineBasicBlock::iterator MBBI = MBB.begin(); MBBI != MBB.end(); in containsPop() local
51 MBBI = next_nodbg(MBBI, MBB.end())) in containsPop()
52 if (MBBI->getOpcode() == RISCV::CM_POP) in containsPop()
53 return MBBI; in containsPop()
58 bool RISCVPushPopOpt::usePopRet(MachineBasicBlock::iterator &MBBI, in usePopRet() argument
67 .add(MBBI->getOperand(0)) in usePopRet()
68 .add(MBBI->getOperand(1)); in usePopRet()
72 const MCInstrDesc &PopDesc = MBBI->getDesc(); in usePopRet()
76 for (unsigned i = FirstNonDeclaredOp; i < MBBI->getNumOperands(); ++i) in usePopRet()
77 PopRetBuilder.add(MBBI->getOperand(i)); in usePopRet()
79 MBBI->eraseFromParent(); in usePopRet()
86 bool RISCVPushPopOpt::adjustRetVal(MachineBasicBlock::iterator &MBBI) { in adjustRetVal() argument
87 MachineBasicBlock::reverse_iterator RE = MBBI->getParent()->rend(); in adjustRetVal()
95 next_nodbg(MBBI.getReverse(), RE); in adjustRetVal()
140 MachineBasicBlock::iterator MBBI = containsPop(MBB); in runOnMachineFunction() local
141 MachineBasicBlock::iterator NextI = next_nodbg(MBBI, MBB.end()); in runOnMachineFunction()
142 if (MBBI != MBB.end() && NextI != MBB.end() && in runOnMachineFunction()
144 Modified |= usePopRet(MBBI, NextI, adjustRetVal(MBBI)); in runOnMachineFunction()