Lines Matching refs:MBB
43 void selectLOCRMux(MachineBasicBlock &MBB,
48 void selectSELRMux(MachineBasicBlock &MBB,
53 bool expandCondMove(MachineBasicBlock &MBB,
56 bool selectMI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
58 bool selectMBB(MachineBasicBlock &MBB);
77 void SystemZPostRewrite::selectLOCRMux(MachineBasicBlock &MBB, in selectLOCRMux() argument
92 expandCondMove(MBB, MBBI, NextMBBI); in selectLOCRMux()
98 void SystemZPostRewrite::selectSELRMux(MachineBasicBlock &MBB, in selectSELRMux() argument
144 expandCondMove(MBB, MBBI, NextMBBI); in selectSELRMux()
150 bool SystemZPostRewrite::expandCondMove(MachineBasicBlock &MBB, in expandCondMove() argument
153 MachineFunction &MF = *MBB.getParent(); in expandCondMove()
154 const BasicBlock *BB = MBB.getBasicBlock(); in expandCondMove()
165 LiveRegs.addLiveOuts(MBB); in expandCondMove()
166 for (auto I = std::prev(MBB.end()); I != MBBI; --I) in expandCondMove()
171 MF.insert(std::next(MachineFunction::iterator(MBB)), RestMBB); in expandCondMove()
172 RestMBB->splice(RestMBB->begin(), &MBB, MI, MBB.end()); in expandCondMove()
173 RestMBB->transferSuccessors(&MBB); in expandCondMove()
179 MF.insert(std::next(MachineFunction::iterator(MBB)), MoveMBB); in expandCondMove()
186 BuildMI(&MBB, DL, TII->get(SystemZ::BRC)) in expandCondMove()
188 MBB.addSuccessor(RestMBB); in expandCondMove()
189 MBB.addSuccessor(MoveMBB); in expandCondMove()
197 NextMBBI = MBB.end(); in expandCondMove()
205 bool SystemZPostRewrite::selectMI(MachineBasicBlock &MBB, in selectMI() argument
221 BuildMI(MBB, &MI, MI.getDebugLoc(), TII->get(SystemZ::COPY), DstReg) in selectMI()
231 selectLOCRMux(MBB, MBBI, NextMBBI, SystemZ::LOCR, SystemZ::LOCFHR); in selectMI()
234 selectSELRMux(MBB, MBBI, NextMBBI, SystemZ::SELR, SystemZ::SELFHR); in selectMI()
243 bool SystemZPostRewrite::selectMBB(MachineBasicBlock &MBB) { in selectMBB() argument
246 MachineBasicBlock::iterator MBBI = MBB.begin(), E = MBB.end(); in selectMBB()
249 Modified |= selectMI(MBB, MBBI, NMBBI); in selectMBB()
260 for (auto &MBB : MF) in runOnMachineFunction() local
261 Modified |= selectMBB(MBB); in runOnMachineFunction()