• Home
  • Raw
  • Download

Lines Matching refs:BB

29   const BasicBlock *BB = &F.getEntryBlock();  in FindFunctionBackedges()  local
30 if (succ_empty(BB)) in FindFunctionBackedges()
37 Visited.insert(BB); in FindFunctionBackedges()
38 VisitStack.push_back(std::make_pair(BB, succ_begin(BB))); in FindFunctionBackedges()
39 InStack.insert(BB); in FindFunctionBackedges()
47 BB = *I++; in FindFunctionBackedges()
48 if (Visited.insert(BB).second) { in FindFunctionBackedges()
53 if (InStack.count(BB)) in FindFunctionBackedges()
54 Result.push_back(std::make_pair(ParentBB, BB)); in FindFunctionBackedges()
59 InStack.insert(BB); in FindFunctionBackedges()
60 VisitStack.push_back(std::make_pair(BB, succ_begin(BB))); in FindFunctionBackedges()
72 unsigned llvm::GetSuccessorNumber(const BasicBlock *BB, in GetSuccessorNumber() argument
74 const TerminatorInst *Term = BB->getTerminator(); in GetSuccessorNumber()
113 static const Loop *getOutermostLoop(const LoopInfo *LI, const BasicBlock *BB) { in getOutermostLoop() argument
114 const Loop *L = LI->getLoopFor(BB); in getOutermostLoop()
143 BasicBlock *BB = Worklist.pop_back_val(); in isPotentiallyReachableFromMany() local
144 if (!Visited.insert(BB).second) in isPotentiallyReachableFromMany()
146 if (BB == StopBB) in isPotentiallyReachableFromMany()
148 if (DT && DT->dominates(BB, StopBB)) in isPotentiallyReachableFromMany()
150 if (LI && loopContainsBoth(LI, BB, StopBB)) in isPotentiallyReachableFromMany()
159 if (const Loop *Outer = LI ? getOutermostLoop(LI, BB) : nullptr) { in isPotentiallyReachableFromMany()
165 Worklist.append(succ_begin(BB), succ_end(BB)); in isPotentiallyReachableFromMany()
199 BasicBlock *BB = const_cast<BasicBlock *>(A->getParent()); in isPotentiallyReachable() local
203 if (LI && LI->getLoopFor(BB) != nullptr) in isPotentiallyReachable()
207 for (BasicBlock::const_iterator I = A->getIterator(), E = BB->end(); I != E; in isPotentiallyReachable()
215 if (BB == &BB->getParent()->getEntryBlock()) in isPotentiallyReachable()
219 Worklist.append(succ_begin(BB), succ_end(BB)); in isPotentiallyReachable()