Lines Matching refs:New
387 BasicBlock *New = BasicBlock::Create(getContext(), BBName, getParent(), in splitBasicBlock() local
394 New->getInstList().splice(New->end(), this->getInstList(), I, end()); in splitBasicBlock()
397 BranchInst *BI = BranchInst::Create(New, this); in splitBasicBlock()
405 New->replaceSuccessorsPhiUsesWith(this, New); in splitBasicBlock()
406 return New; in splitBasicBlock()
418 BasicBlock *New = BasicBlock::Create(getContext(), BBName, getParent(), this); in splitBasicBlockBefore() local
423 New->getInstList().splice(New->end(), this->getInstList(), begin(), I); in splitBasicBlockBefore()
433 TI->replaceSuccessorWith(this, New); in splitBasicBlockBefore()
434 this->replacePhiUsesWith(Pred, New); in splitBasicBlockBefore()
437 BranchInst *BI = BranchInst::Create(this, New); in splitBasicBlockBefore()
440 return New; in splitBasicBlockBefore()
443 void BasicBlock::replacePhiUsesWith(BasicBlock *Old, BasicBlock *New) { in replacePhiUsesWith() argument
450 PN->replaceIncomingBlockWith(Old, New); in replacePhiUsesWith()
455 BasicBlock *New) { in replaceSuccessorsPhiUsesWith() argument
462 Succ->replacePhiUsesWith(Old, New); in replaceSuccessorsPhiUsesWith()
465 void BasicBlock::replaceSuccessorsPhiUsesWith(BasicBlock *New) { in replaceSuccessorsPhiUsesWith() argument
466 this->replaceSuccessorsPhiUsesWith(this, New); in replaceSuccessorsPhiUsesWith()