Lines Matching refs:NewBB

42   BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "", F);  in CloneBasicBlock()  local
43 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix); in CloneBasicBlock()
53 NewBB->getInstList().push_back(NewInst); in CloneBasicBlock()
71 return NewBB; in CloneBasicBlock()
303 BasicBlock *NewBB; in CloneBlock() local
304 BBEntry = NewBB = BasicBlock::Create(BB->getContext()); in CloneBlock()
305 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix); in CloneBlock()
319 VMap[OldBBAddr] = BlockAddress::get(NewFunc, NewBB); in CloneBlock()
331 = Director->handleInstruction(VMap, II, NewBB); in CloneBlock()
374 NewBB->getInstList().push_back(NewInst); in CloneBlock()
389 = Director->handleInstruction(VMap, OldTI, NewBB); in CloneBlock()
399 const TerminatorInst *TI = NewBB->getTerminator(); in CloneBlock()
420 VMap[OldTI] = BranchInst::Create(Dest, NewBB); in CloneBlock()
435 VMap[OldTI] = BranchInst::Create(Dest, NewBB); in CloneBlock()
445 NewBB->getInstList().push_back(NewInst); in CloneBlock()
520 BasicBlock *NewBB = cast_or_null<BasicBlock>(V); in CloneAndPruneIntoFromInst() local
521 if (!NewBB) continue; // Dead block. in CloneAndPruneIntoFromInst()
524 NewFunc->getBasicBlockList().push_back(NewBB); in CloneAndPruneIntoFromInst()
543 RemapInstruction(NewBB->getTerminator(), VMap, in CloneAndPruneIntoFromInst()
554 BasicBlock *NewBB = cast<BasicBlock>(VMap[OldBB]); in CloneAndPruneIntoFromInst() local
583 PHINode *PN = cast<PHINode>(NewBB->begin()); in CloneAndPruneIntoFromInst()
584 NumPreds = std::distance(pred_begin(NewBB), pred_end(NewBB)); in CloneAndPruneIntoFromInst()
589 for (pred_iterator PI = pred_begin(NewBB), E = pred_end(NewBB); in CloneAndPruneIntoFromInst()
600 BasicBlock::iterator I = NewBB->begin(); in CloneAndPruneIntoFromInst()
614 PN = cast<PHINode>(NewBB->begin()); in CloneAndPruneIntoFromInst()
616 BasicBlock::iterator I = NewBB->begin(); in CloneAndPruneIntoFromInst()