• Home
  • Raw
  • Download

Lines Matching refs:OrigBB

350 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB,  in UpdatePHINodes()  argument
355 for (BasicBlock::iterator I = OrigBB->begin(); isa<PHINode>(I); ) { in UpdatePHINodes()
474 void llvm::SplitLandingPadPredecessors(BasicBlock *OrigBB, in SplitLandingPadPredecessors() argument
480 assert(OrigBB->isLandingPad() && "Trying to split a non-landing pad!"); in SplitLandingPadPredecessors()
484 BasicBlock *NewBB1 = BasicBlock::Create(OrigBB->getContext(), in SplitLandingPadPredecessors()
485 OrigBB->getName() + Suffix1, in SplitLandingPadPredecessors()
486 OrigBB->getParent(), OrigBB); in SplitLandingPadPredecessors()
490 BranchInst *BI1 = BranchInst::Create(OrigBB, NewBB1); in SplitLandingPadPredecessors()
491 BI1->setDebugLoc(OrigBB->getFirstNonPHI()->getDebugLoc()); in SplitLandingPadPredecessors()
500 Preds[i]->getTerminator()->replaceUsesOfWith(OrigBB, NewBB1); in SplitLandingPadPredecessors()
504 UpdateAnalysisInformation(OrigBB, NewBB1, Preds, DT, LI, PreserveLCSSA, in SplitLandingPadPredecessors()
508 UpdatePHINodes(OrigBB, NewBB1, Preds, BI1, HasLoopExit); in SplitLandingPadPredecessors()
512 for (pred_iterator i = pred_begin(OrigBB), e = pred_end(OrigBB); in SplitLandingPadPredecessors()
519 e = pred_end(OrigBB); in SplitLandingPadPredecessors()
525 NewBB2 = BasicBlock::Create(OrigBB->getContext(), in SplitLandingPadPredecessors()
526 OrigBB->getName() + Suffix2, in SplitLandingPadPredecessors()
527 OrigBB->getParent(), OrigBB); in SplitLandingPadPredecessors()
531 BranchInst *BI2 = BranchInst::Create(OrigBB, NewBB2); in SplitLandingPadPredecessors()
532 BI2->setDebugLoc(OrigBB->getFirstNonPHI()->getDebugLoc()); in SplitLandingPadPredecessors()
536 NewBB2Pred->getTerminator()->replaceUsesOfWith(OrigBB, NewBB2); in SplitLandingPadPredecessors()
540 UpdateAnalysisInformation(OrigBB, NewBB2, NewBB2Preds, DT, LI, in SplitLandingPadPredecessors()
544 UpdatePHINodes(OrigBB, NewBB2, NewBB2Preds, BI2, HasLoopExit); in SplitLandingPadPredecessors()
547 LandingPadInst *LPad = OrigBB->getLandingPadInst(); in SplitLandingPadPredecessors()