LLVM API Documentation
#include <LoopInfo.h>
Public Types | |
| typedef std::vector< LoopT * > ::const_iterator | iterator |
Public Member Functions | |
| LoopInfoBase () | |
| ~LoopInfoBase () | |
| void | releaseMemory () |
| iterator | begin () const |
| iterator | end () const |
| bool | empty () const |
| LoopT * | getLoopFor (const BlockT *BB) const |
| const LoopT * | operator[] (const BlockT *BB) const |
| unsigned | getLoopDepth (const BlockT *BB) const |
| bool | isLoopHeader (BlockT *BB) const |
| LoopT * | removeLoop (iterator I) |
| void | changeLoopFor (BlockT *BB, LoopT *L) |
| void | changeTopLevelLoop (LoopT *OldLoop, LoopT *NewLoop) |
| void | addTopLevelLoop (LoopT *New) |
| void | removeBlock (BlockT *BB) |
| void | Calculate (DominatorTreeBase< BlockT > &DT) |
| LoopT * | ConsiderForLoop (BlockT *BB, DominatorTreeBase< BlockT > &DT) |
| void | MoveSiblingLoopInto (LoopT *NewChild, LoopT *NewParent) |
| void | InsertLoopInto (LoopT *L, LoopT *Parent) |
| void | print (std::ostream &OS, const Module *) const |
Static Public Member Functions | |
| static bool | isNotAlreadyContainedIn (const LoopT *SubLoop, const LoopT *ParentLoop) |
Friends | |
| class | LoopBase< BlockT, LoopT > |
Definition at line 589 of file LoopInfo.h.
| typedef std::vector<LoopT *>::const_iterator llvm::LoopInfoBase< BlockT, LoopT >::iterator |
iterator/begin/end - The interface to the top-level loops in the current function.
Definition at line 613 of file LoopInfo.h.
| llvm::LoopInfoBase< BlockT, LoopT >::LoopInfoBase | ( | ) | [inline] |
Definition at line 598 of file LoopInfo.h.
| llvm::LoopInfoBase< BlockT, LoopT >::~LoopInfoBase | ( | ) | [inline] |
Definition at line 599 of file LoopInfo.h.
| void llvm::LoopInfoBase< BlockT, LoopT >::releaseMemory | ( | ) | [inline] |
Definition at line 601 of file LoopInfo.h.
Referenced by llvm::LoopInfoBase< llvm::MachineBasicBlock, llvm::MachineLoop >::~LoopInfoBase().
| iterator llvm::LoopInfoBase< BlockT, LoopT >::begin | ( | ) | const [inline] |
Definition at line 614 of file LoopInfo.h.
Referenced by llvm::LoopInfoBase< llvm::MachineBasicBlock, llvm::MachineLoop >::removeLoop().
| iterator llvm::LoopInfoBase< BlockT, LoopT >::end | ( | ) | const [inline] |
Definition at line 615 of file LoopInfo.h.
Referenced by llvm::LoopInfoBase< llvm::MachineBasicBlock, llvm::MachineLoop >::removeLoop().
| bool llvm::LoopInfoBase< BlockT, LoopT >::empty | ( | ) | const [inline] |
Definition at line 616 of file LoopInfo.h.
| LoopT* llvm::LoopInfoBase< BlockT, LoopT >::getLoopFor | ( | const BlockT * | BB | ) | const [inline] |
getLoopFor - Return the inner most loop that BB lives in. If a basic block is in no loop (for example the entry node), null is returned.
Definition at line 621 of file LoopInfo.h.
Referenced by llvm::LoopInfoBase< llvm::MachineBasicBlock, llvm::MachineLoop >::ConsiderForLoop(), llvm::LoopInfoBase< llvm::MachineBasicBlock, llvm::MachineLoop >::getLoopDepth(), llvm::LoopInfoBase< llvm::MachineBasicBlock, llvm::MachineLoop >::isLoopHeader(), and llvm::LoopInfoBase< llvm::MachineBasicBlock, llvm::MachineLoop >::operator[]().
| const LoopT* llvm::LoopInfoBase< BlockT, LoopT >::operator[] | ( | const BlockT * | BB | ) | const [inline] |
operator[] - same as getLoopFor...
Definition at line 629 of file LoopInfo.h.
| unsigned llvm::LoopInfoBase< BlockT, LoopT >::getLoopDepth | ( | const BlockT * | BB | ) | const [inline] |
getLoopDepth - Return the loop nesting level of the specified block. A depth of 0 means the block is not inside any loop.
Definition at line 636 of file LoopInfo.h.
| bool llvm::LoopInfoBase< BlockT, LoopT >::isLoopHeader | ( | BlockT * | BB | ) | const [inline] |
Definition at line 642 of file LoopInfo.h.
| LoopT* llvm::LoopInfoBase< BlockT, LoopT >::removeLoop | ( | iterator | I | ) | [inline] |
removeLoop - This removes the specified top-level loop from this loop info object. The loop is not deleted, as it will presumably be inserted into another loop.
Definition at line 650 of file LoopInfo.h.
| void llvm::LoopInfoBase< BlockT, LoopT >::changeLoopFor | ( | BlockT * | BB, | |
| LoopT * | L | |||
| ) | [inline] |
changeLoopFor - Change the top-level loop that contains BB to the specified loop. This should be used by transformations that restructure the loop hierarchy tree.
Definition at line 661 of file LoopInfo.h.
| void llvm::LoopInfoBase< BlockT, LoopT >::changeTopLevelLoop | ( | LoopT * | OldLoop, | |
| LoopT * | NewLoop | |||
| ) | [inline] |
changeTopLevelLoop - Replace the specified loop in the top-level loops list with the indicated loop.
Definition at line 669 of file LoopInfo.h.
| void llvm::LoopInfoBase< BlockT, LoopT >::addTopLevelLoop | ( | LoopT * | New | ) | [inline] |
addTopLevelLoop - This adds the specified loop to the collection of top-level loops.
Definition at line 681 of file LoopInfo.h.
| void llvm::LoopInfoBase< BlockT, LoopT >::removeBlock | ( | BlockT * | BB | ) | [inline] |
removeBlock - This method completely removes BB from all data structures, including all of the Loop objects it is nested in and our mapping from BasicBlocks to loops.
Definition at line 689 of file LoopInfo.h.
| static bool llvm::LoopInfoBase< BlockT, LoopT >::isNotAlreadyContainedIn | ( | const LoopT * | SubLoop, | |
| const LoopT * | ParentLoop | |||
| ) | [inline, static] |
Definition at line 701 of file LoopInfo.h.
Referenced by llvm::LoopInfoBase< llvm::MachineBasicBlock, llvm::MachineLoop >::ConsiderForLoop(), and llvm::LoopInfoBase< llvm::MachineBasicBlock, llvm::MachineLoop >::isNotAlreadyContainedIn().
| void llvm::LoopInfoBase< BlockT, LoopT >::Calculate | ( | DominatorTreeBase< BlockT > & | DT | ) | [inline] |
Definition at line 708 of file LoopInfo.h.
| LoopT* llvm::LoopInfoBase< BlockT, LoopT >::ConsiderForLoop | ( | BlockT * | BB, | |
| DominatorTreeBase< BlockT > & | DT | |||
| ) | [inline] |
Definition at line 717 of file LoopInfo.h.
Referenced by llvm::LoopInfoBase< llvm::MachineBasicBlock, llvm::MachineLoop >::Calculate(), and llvm::LoopInfoBase< llvm::MachineBasicBlock, llvm::MachineLoop >::ConsiderForLoop().
| void llvm::LoopInfoBase< BlockT, LoopT >::MoveSiblingLoopInto | ( | LoopT * | NewChild, | |
| LoopT * | NewParent | |||
| ) | [inline] |
MoveSiblingLoopInto - This method moves the NewChild loop to live inside of the NewParent Loop, instead of being a sibling of it.
Definition at line 841 of file LoopInfo.h.
Referenced by llvm::LoopInfoBase< llvm::MachineBasicBlock, llvm::MachineLoop >::ConsiderForLoop().
| void llvm::LoopInfoBase< BlockT, LoopT >::InsertLoopInto | ( | LoopT * | L, | |
| LoopT * | Parent | |||
| ) | [inline] |
InsertLoopInto - This inserts loop L into the specified parent loop. If the parent loop contains a loop which should contain L, the loop gets inserted into L instead.
Definition at line 861 of file LoopInfo.h.
Referenced by llvm::LoopInfoBase< llvm::MachineBasicBlock, llvm::MachineLoop >::InsertLoopInto(), and llvm::LoopInfoBase< llvm::MachineBasicBlock, llvm::MachineLoop >::MoveSiblingLoopInto().
| void llvm::LoopInfoBase< BlockT, LoopT >::print | ( | std::ostream & | OS, | |
| const Module * | ||||
| ) | const [inline] |
Definition at line 881 of file LoopInfo.h.
Referenced by llvm::LoopInfoBase< llvm::MachineBasicBlock, llvm::MachineLoop >::print().
friend class LoopBase< BlockT, LoopT > [friend] |
Definition at line 593 of file LoopInfo.h.