LLVM API Documentation
Index of loop information. More...
#include <BlockFrequencyInfoImpl.h>
Public Member Functions | |
WorkingData (const BlockNode &Node) | |
bool | isLoopHeader () const |
bool | isDoubleLoopHeader () const |
LoopData * | getContainingLoop () const |
BlockNode | getResolvedNode () const |
Resolve a node to its representative. | |
LoopData * | getPackagedLoop () const |
BlockMass & | getMass () |
Get the appropriate mass for a node. | |
bool | isPackaged () const |
Has ContainingLoop been packaged up? | |
bool | isAPackage () const |
Has Loop been packaged up? | |
bool | isADoublePackage () const |
Has Loop been packaged up twice? | |
Public Attributes | |
BlockNode | Node |
This node. | |
LoopData * | Loop |
The loop this block is inside. | |
BlockMass | Mass |
Mass distribution from the entry block. |
Index of loop information.
Definition at line 236 of file BlockFrequencyInfoImpl.h.
llvm::BlockFrequencyInfoImplBase::WorkingData::WorkingData | ( | const BlockNode & | Node | ) | [inline] |
Definition at line 241 of file BlockFrequencyInfoImpl.h.
LoopData* llvm::BlockFrequencyInfoImplBase::WorkingData::getContainingLoop | ( | ) | const [inline] |
Definition at line 249 of file BlockFrequencyInfoImpl.h.
References isDoubleLoopHeader(), isLoopHeader(), and Loop.
Get the appropriate mass for a node.
Get appropriate mass for Node. If Node is a loop-header (whose loop has been packaged), returns the mass of its pseudo-node. If it's a node inside a packaged loop, it returns the loop's mass.
Definition at line 288 of file BlockFrequencyInfoImpl.h.
References isADoublePackage(), isAPackage(), and Mass.
LoopData* llvm::BlockFrequencyInfoImplBase::WorkingData::getPackagedLoop | ( | ) | const [inline] |
Definition at line 274 of file BlockFrequencyInfoImpl.h.
References Loop, and llvm::BlockFrequencyInfoImplBase::LoopData::Parent.
Referenced by getResolvedNode().
BlockNode llvm::BlockFrequencyInfoImplBase::WorkingData::getResolvedNode | ( | ) | const [inline] |
Resolve a node to its representative.
Get the node currently representing Node, which could be a containing loop.
This function should only be called when distributing mass. As long as there are no irreducilbe edges to Node, then it will have complexity O(1) in this context.
In general, the complexity is O(L), where L is the number of loop headers Node has been packaged into. Since this method is called in the context of distributing mass, L will be the number of loop headers an early exit edge jumps out of.
Definition at line 270 of file BlockFrequencyInfoImpl.h.
References getPackagedLoop(), and Node.
Referenced by isPackaged().
bool llvm::BlockFrequencyInfoImplBase::WorkingData::isADoublePackage | ( | ) | const [inline] |
Has Loop been packaged up twice?
Definition at line 301 of file BlockFrequencyInfoImpl.h.
References isDoubleLoopHeader().
Referenced by getMass().
bool llvm::BlockFrequencyInfoImplBase::WorkingData::isAPackage | ( | ) | const [inline] |
Has Loop been packaged up?
Definition at line 299 of file BlockFrequencyInfoImpl.h.
References isLoopHeader().
Referenced by getMass().
bool llvm::BlockFrequencyInfoImplBase::WorkingData::isDoubleLoopHeader | ( | ) | const [inline] |
Definition at line 244 of file BlockFrequencyInfoImpl.h.
References isLoopHeader(), and Node.
Referenced by getContainingLoop(), and isADoublePackage().
bool llvm::BlockFrequencyInfoImplBase::WorkingData::isLoopHeader | ( | ) | const [inline] |
Definition at line 243 of file BlockFrequencyInfoImpl.h.
References Node.
Referenced by getContainingLoop(), isAPackage(), and isDoubleLoopHeader().
bool llvm::BlockFrequencyInfoImplBase::WorkingData::isPackaged | ( | ) | const [inline] |
Has ContainingLoop been packaged up?
Definition at line 297 of file BlockFrequencyInfoImpl.h.
References getResolvedNode(), and Node.
The loop this block is inside.
Definition at line 238 of file BlockFrequencyInfoImpl.h.
Referenced by getContainingLoop(), and getPackagedLoop().
Mass distribution from the entry block.
Definition at line 239 of file BlockFrequencyInfoImpl.h.
Referenced by getMass().
This node.
Definition at line 237 of file BlockFrequencyInfoImpl.h.
Referenced by getResolvedNode(), isDoubleLoopHeader(), isLoopHeader(), and isPackaged().