Lines Matching refs:BB
51 void DeleteBasicBlock(BasicBlock *BB);
112 for (const BasicBlock &BB : *F) { in runOnSCC()
113 const TerminatorInst *TI = BB.getTerminator(); in runOnSCC()
120 for (const Instruction &I : BB) { in runOnSCC()
186 for (Function::iterator BB = F->begin(), E = F->end(); BB != E; ++BB) { in SimplifyFunction() local
187 if (InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator())) in SimplifyFunction()
214 BB->getInstList().pop_back(); in SimplifyFunction()
224 for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ) in SimplifyFunction()
231 BasicBlock *New = BB->splitBasicBlock(I); in SimplifyFunction()
234 BB->getInstList().pop_back(); in SimplifyFunction()
235 new UnreachableInst(BB->getContext(), &*BB); in SimplifyFunction()
250 void PruneEH::DeleteBasicBlock(BasicBlock *BB) { in DeleteBasicBlock() argument
251 assert(pred_empty(BB) && "BB is not dead!"); in DeleteBasicBlock()
254 CallGraphNode *CGN = CG[BB->getParent()]; in DeleteBasicBlock()
255 for (BasicBlock::iterator I = BB->end(), E = BB->begin(); I != E; ) { in DeleteBasicBlock()
267 std::vector<BasicBlock*> Succs(succ_begin(BB), succ_end(BB)); in DeleteBasicBlock()
270 Succs[i]->removePredecessor(BB); in DeleteBasicBlock()
272 BB->eraseFromParent(); in DeleteBasicBlock()