Lines Matching full: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()
75 /// GetSuccessorNumber - Search for the specified successor of basic block BB
79 unsigned llvm::GetSuccessorNumber(const BasicBlock *BB, in GetSuccessorNumber() argument
81 const Instruction *Term = BB->getTerminator(); in GetSuccessorNumber()
127 // the outermost loop in the loop nest that contains BB.
128 static const Loop *getOutermostLoop(const LoopInfo *LI, const BasicBlock *BB) { in getOutermostLoop() argument
129 const Loop *L = LI->getLoopFor(BB); in getOutermostLoop()
141 for (auto *BB : StopSet) { in isReachableImpl() local
142 if (!DT->isReachableFromEntry(BB)) { in isReachableImpl()
159 for (auto *BB : *ExclusionSet) { in isReachableImpl()
160 if (const Loop *L = getOutermostLoop(LI, BB)) in isReachableImpl()
176 BasicBlock *BB = Worklist.pop_back_val(); in isReachableImpl() local
177 if (!Visited.insert(BB).second) in isReachableImpl()
179 if (StopSet.contains(BB)) in isReachableImpl()
181 if (ExclusionSet && ExclusionSet->count(BB)) in isReachableImpl()
185 return DT->dominates(BB, StopBB); in isReachableImpl()
192 Outer = getOutermostLoop(LI, BB); in isReachableImpl()
196 // excluded block. Clear Outer so we process BB's successors. in isReachableImpl()
215 Worklist.append(succ_begin(BB), succ_end(BB)); in isReachableImpl()
294 BasicBlock *BB = const_cast<BasicBlock *>(A->getParent()); in isPotentiallyReachable() local
298 if (LI && LI->getLoopFor(BB) != nullptr) in isPotentiallyReachable()
307 if (BB->isEntryBlock()) in isPotentiallyReachable()
310 // Otherwise, continue doing the normal per-BB CFG walk. in isPotentiallyReachable()
312 Worklist.append(succ_begin(BB), succ_end(BB)); in isPotentiallyReachable()