Analysis that identifies natural loops in a function's CFG.
Synopsis
Declared in <llvm/Analysis/LoopInfo.h>
class LoopInfo
: public LoopInfoBase<BasicBlock, Loop>
Base Classes
Name |
Description |
Analysis that builds and owns the loop forest for a function. |
Type Aliases
Name |
Description |
Edge type. |
|
Iterator over the top‐level loops in the current function. |
|
Reverse iterator over the top‐level loops in the current function. |
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
Allocate and construct a new empty loop owned by this LoopInfo. |
|
Add |
|
|
|
Return an iterator to the first top‐level loop. |
|
Change the innermost loop that contains |
|
Replace |
|
Destroy a loop that has been removed from the |
|
Return true if there are no top‐level loops. |
|
Return an iterator past the last top‐level loop. |
|
Update LoopInfo after removing the last backedge from a loop. |
|
Return all pairs of (inside_block,outside_block). |
|
Return the loop nesting level of the specified block. |
|
Return the innermost loop that |
|
Return all of the loops in the function in preorder across the loop nests, with siblings in forward program order. |
|
Return all of the loops in the function in preorder across the loop nests, with siblings in reverse program order. |
|
|
|
Return the top‐level loops. |
|
Return the unique exit block for the latch of |
|
Return true if |
|
Handle invalidation explicitly. |
|
Return true if |
|
Checks if moving a specific instruction can break LCSSA in any loop. |
|
Same as getLoopFor. |
|
Print the top‐level loops and their nests to |
|
Return a reverse iterator to the last top‐level loop. |
|
Destroy all loops and clear block maps and layout storage. |
|
Completely remove |
|
Remove blocks satisfying |
|
Remove blocks satisfying |
|
Remove the specified top‐level loop from this loop info object. |
|
Return a reverse iterator past the first top‐level loop. |
|
Returns true if replacing From with To everywhere is guaranteed to preserve LCSSA form. |
|
Detach and return children of |
|
Verify the loop forest and block‐to‐loop mapping for consistency. |
|
Return true if a use of |
Static Member Functions
Name |
Description |
Return true if |
Friends
Name |
Description |
Instances of this class are used to represent loops that are detected in the flow graph. |
Non-Member Functions
Name |
Description |
Append all loops from |
Created with MrDocs