Does a BFS from a given node to all of its children inside a given loop. The returned vector of basic blocks includes the starting point.
Declared in <llvm/Transforms/Utils/LoopUtils.h>
SmallVector<BasicBlock*, 16>
collectChildrenInLoop(
DominatorTree* DT,
DomTreeNode* N,
Loop const* CurLoop);
Basic blocks reachable from N inside CurLoop, including the start.
| Name | Description |
|---|---|
| DT | Dominator tree used to walk children. |
| N | Dominator-tree node to start the BFS from. |
| CurLoop | Loop that bounds which children are collected. |