• Home
  • Raw
  • Download

Lines Matching refs:BasicBlock

28      SmallVectorImpl<std::pair<const BasicBlock*,const BasicBlock*> > &Result) {  in FindFunctionBackedges()  argument
29 const BasicBlock *BB = &F.getEntryBlock(); in FindFunctionBackedges()
33 SmallPtrSet<const BasicBlock*, 8> Visited; in FindFunctionBackedges()
34 SmallVector<std::pair<const BasicBlock*, succ_const_iterator>, 8> VisitStack; in FindFunctionBackedges()
35 SmallPtrSet<const BasicBlock*, 8> InStack; in FindFunctionBackedges()
41 std::pair<const BasicBlock*, succ_const_iterator> &Top = VisitStack.back(); in FindFunctionBackedges()
42 const BasicBlock *ParentBB = Top.first; in FindFunctionBackedges()
72 unsigned llvm::GetSuccessorNumber(const BasicBlock *BB, in GetSuccessorNumber()
73 const BasicBlock *Succ) { in GetSuccessorNumber()
93 const BasicBlock *Dest = TI->getSuccessor(SuccNum); in isCriticalEdge()
98 const BasicBlock *FirstPred = *I; in isCriticalEdge()
113 static const Loop *getOutermostLoop(const LoopInfo *LI, const BasicBlock *BB) { in getOutermostLoop()
124 const BasicBlock *BB1, const BasicBlock *BB2) { in loopContainsBoth()
131 SmallVectorImpl<BasicBlock *> &Worklist, BasicBlock *StopBB, in isPotentiallyReachableFromMany()
141 SmallPtrSet<const BasicBlock*, 32> Visited; in isPotentiallyReachableFromMany()
143 BasicBlock *BB = Worklist.pop_back_val(); in isPotentiallyReachableFromMany()
174 bool llvm::isPotentiallyReachable(const BasicBlock *A, const BasicBlock *B, in isPotentiallyReachable()
179 SmallVector<BasicBlock*, 32> Worklist; in isPotentiallyReachable()
180 Worklist.push_back(const_cast<BasicBlock*>(A)); in isPotentiallyReachable()
182 return isPotentiallyReachableFromMany(Worklist, const_cast<BasicBlock *>(B), in isPotentiallyReachable()
191 SmallVector<BasicBlock*, 32> Worklist; in isPotentiallyReachable()
199 BasicBlock *BB = const_cast<BasicBlock *>(A->getParent()); in isPotentiallyReachable()
207 for (BasicBlock::const_iterator I = A->getIterator(), E = BB->end(); I != E; in isPotentiallyReachable()
226 Worklist.push_back(const_cast<BasicBlock*>(A->getParent())); in isPotentiallyReachable()
235 Worklist, const_cast<BasicBlock *>(B->getParent()), DT, LI); in isPotentiallyReachable()