Lines Matching defs:New
584 BasicBlock *New = BasicBlock::Create(getContext(), BBName, getParent(),
591 New->splice(New->end(), this, I, end());
594 BranchInst *BI = BranchInst::Create(New, this);
597 // Now we must loop through all of the successors of the New block (which
600 // know that incoming branches will be from New, not from Old (this).
602 New->replaceSuccessorsPhiUsesWith(this, New);
603 return New;
615 BasicBlock *New = BasicBlock::Create(getContext(), BBName, getParent(), this);
620 New->splice(New->end(), this, begin(), I);
623 // predecessors of the New block), replace the specified successor 'this'
624 // block to point at the New block and update any PHI nodes in 'this' block.
626 // to reflect that the incoming branches will be from the New block and not
634 TI->replaceSuccessorWith(this, New);
635 this->replacePhiUsesWith(Pred, New);
637 // Add a branch instruction from "New" to "this" Block.
638 BranchInst *BI = BranchInst::Create(this, New);
641 return New;
651 void BasicBlock::replacePhiUsesWith(BasicBlock *Old, BasicBlock *New) {
658 PN->replaceIncomingBlockWith(Old, New);
663 BasicBlock *New) {
670 Succ->replacePhiUsesWith(Old, New);
673 void BasicBlock::replaceSuccessorsPhiUsesWith(BasicBlock *New) {
674 this->replaceSuccessorsPhiUsesWith(this, New);