Lines Matching refs:BB
36 const BasicBlock *BB = &F.getEntryBlock(); in FindFunctionBackedges() local
37 if (succ_empty(BB)) in FindFunctionBackedges()
44 Visited.insert(BB); in FindFunctionBackedges()
45 VisitStack.push_back(std::make_pair(BB, succ_begin(BB))); in FindFunctionBackedges()
46 InStack.insert(BB); in FindFunctionBackedges()
54 BB = *I++; in FindFunctionBackedges()
55 if (Visited.insert(BB).second) { in FindFunctionBackedges()
60 if (InStack.count(BB)) in FindFunctionBackedges()
61 Result.push_back(std::make_pair(ParentBB, BB)); in FindFunctionBackedges()
66 InStack.insert(BB); in FindFunctionBackedges()
67 VisitStack.push_back(std::make_pair(BB, succ_begin(BB))); in FindFunctionBackedges()
79 unsigned llvm::GetSuccessorNumber(const BasicBlock *BB, in GetSuccessorNumber() argument
81 const Instruction *Term = BB->getTerminator(); in GetSuccessorNumber()
128 static const Loop *getOutermostLoop(const LoopInfo *LI, const BasicBlock *BB) { in getOutermostLoop() argument
129 const Loop *L = LI->getLoopFor(BB); in getOutermostLoop()
152 for (auto *BB : *ExclusionSet) { in isPotentiallyReachableFromMany()
153 if (const Loop *L = getOutermostLoop(LI, BB)) in isPotentiallyReachableFromMany()
163 BasicBlock *BB = Worklist.pop_back_val(); in isPotentiallyReachableFromMany() local
164 if (!Visited.insert(BB).second) in isPotentiallyReachableFromMany()
166 if (BB == StopBB) in isPotentiallyReachableFromMany()
168 if (ExclusionSet && ExclusionSet->count(BB)) in isPotentiallyReachableFromMany()
170 if (DT && DT->dominates(BB, StopBB)) in isPotentiallyReachableFromMany()
175 Outer = getOutermostLoop(LI, BB); in isPotentiallyReachableFromMany()
198 Worklist.append(succ_begin(BB), succ_end(BB)); in isPotentiallyReachableFromMany()
244 BasicBlock *BB = const_cast<BasicBlock *>(A->getParent()); in isPotentiallyReachable() local
248 if (LI && LI->getLoopFor(BB) != nullptr) in isPotentiallyReachable()
257 if (BB->isEntryBlock()) in isPotentiallyReachable()
262 Worklist.append(succ_begin(BB), succ_end(BB)); in isPotentiallyReachable()