Lines Matching refs:MBB
73 MachineBasicBlock *MBB = WL.pop_back_val(); in getMatchingEHPad() local
74 if (Visited.count(MBB)) in getMatchingEHPad()
76 Visited.insert(MBB); in getMatchingEHPad()
77 if (MBB->isEHPad()) { in getMatchingEHPad()
78 if (EHPad && EHPad != MBB) in getMatchingEHPad()
80 EHPad = MBB; in getMatchingEHPad()
83 if (MBB == &MF->front()) in getMatchingEHPad()
85 for (auto *Pred : MBB->predecessors()) in getMatchingEHPad()
98 MachineBasicBlock *MBB = WL.pop_back_val(); in eraseDeadBBsAndChildren() local
99 if (!MBB->pred_empty()) in eraseDeadBBsAndChildren()
101 SmallVector<MachineBasicBlock *, 4> Succs(MBB->succ_begin(), in eraseDeadBBsAndChildren()
102 MBB->succ_end()); in eraseDeadBBsAndChildren()
103 WL.append(MBB->succ_begin(), MBB->succ_end()); in eraseDeadBBsAndChildren()
105 MBB->removeSuccessor(Succ); in eraseDeadBBsAndChildren()
106 MBB->eraseFromParent(); in eraseDeadBBsAndChildren()
138 for (auto &MBB : MF) { in recordCatchRetBBs() local
139 auto Pos = MBB.getFirstTerminator(); in recordCatchRetBBs()
140 if (Pos == MBB.end()) in recordCatchRetBBs()
144 CatchRetBBs.insert(&MBB); in recordCatchRetBBs()
153 for (auto &MBB : MF) { in addCatches() local
154 if (MBB.isEHPad()) { in addCatches()
156 auto InsertPos = MBB.begin(); in addCatches()
160 BuildMI(MBB, InsertPos, MBB.begin()->getDebugLoc(), in addCatches()
171 for (auto &MBB : MF) { in replaceFuncletReturns() local
172 auto Pos = MBB.getFirstTerminator(); in replaceFuncletReturns()
173 if (Pos == MBB.end()) in replaceFuncletReturns()
181 if (!MBB.isLayoutSuccessor(TBB)) in replaceFuncletReturns()
182 BuildMI(MBB, TI, TI->getDebugLoc(), TII.get(WebAssembly::BR)) in replaceFuncletReturns()
197 BuildMI(MBB, TI, TI->getDebugLoc(), TII.get(WebAssembly::RETHROW)) in replaceFuncletReturns()
211 for (auto &MBB : MF) { in removeUnnecessaryUnreachables() local
212 for (auto &MI : MBB) { in removeUnnecessaryUnreachables()
222 MBB.erase(std::next(MI.getIterator()), MBB.end()); in removeUnnecessaryUnreachables()
223 SmallVector<MachineBasicBlock *, 8> Succs(MBB.succ_begin(), in removeUnnecessaryUnreachables()
224 MBB.succ_end()); in removeUnnecessaryUnreachables()
227 MBB.removeSuccessor(Succ); in removeUnnecessaryUnreachables()
265 for (auto &MBB : MF) { in addExceptionExtraction() local
266 for (auto &MI : MBB) { in addExceptionExtraction()
283 for (auto &MBB : MF) { in addExceptionExtraction() local
284 for (auto &MI : MBB) { in addExceptionExtraction()
395 for (auto &MBB : MF) { in restoreStackPointer() local
396 if (!MBB.isEHPad()) in restoreStackPointer()
406 auto InsertPos = MBB.begin(); in restoreStackPointer()
411 FrameLowering->writeSPToGlobal(FrameLowering->getSPReg(MF), MF, MBB, in restoreStackPointer()
412 InsertPos, MBB.begin()->getDebugLoc()); in restoreStackPointer()