LLVM 20.0.0git
|
Populate all loop data in a stable order during a single forward DFS. More...
#include "llvm/Support/GenericLoopInfoImpl.h"
Public Member Functions | |
PopulateLoopsDFS (LoopInfoBase< BlockT, LoopT > *li) | |
void | traverse (BlockT *EntryBlock) |
Top-level driver for the forward DFS within the loop. | |
Protected Member Functions | |
void | insertIntoLoop (BlockT *Block) |
Add a single Block to its ancestor loops in PostOrder. | |
Populate all loop data in a stable order during a single forward DFS.
Definition at line 514 of file GenericLoopInfoImpl.h.
|
inline |
Definition at line 521 of file GenericLoopInfoImpl.h.
|
protected |
Add a single Block to its ancestor loops in PostOrder.
If the block is a subloop header, add the subloop to its parent in PostOrder, then reverse the Block and Subloop vectors of the now complete subloop to achieve RPO.
Definition at line 540 of file GenericLoopInfoImpl.h.
References llvm::LoopInfoBase< BlockT, LoopT >::addTopLevelLoop(), llvm::Block, and llvm::LoopInfoBase< BlockT, LoopT >::getLoopFor().
void llvm::PopulateLoopsDFS< BlockT, LoopT >::traverse | ( | BlockT * | EntryBlock | ) |
Top-level driver for the forward DFS within the loop.
Definition at line 531 of file GenericLoopInfoImpl.h.
References llvm::post_order().