LLVM API Documentation
The ProfileDataT<FType, BType> class is used to store the mapping of profiling data to control flow edges. More...
#include <ProfileDataLoader.h>
Public Types | |
| typedef std::pair< const BType *, const BType * > | Edge |
Public Member Functions | |
| unsigned | getEdgeWeight (Edge e) const |
| void | addEdgeWeight (Edge e, unsigned weight) |
Static Public Member Functions | |
| static const FType * | getFunction (Edge e) |
| getFunction() - Returns the Function for an Edge. | |
| static Edge | getEdge (const BType *Src, const BType *Dest) |
| getEdge() - Creates an Edge between two BasicBlocks. | |
The ProfileDataT<FType, BType> class is used to store the mapping of profiling data to control flow edges.
An edge is defined by its source and sink basic blocks.
Definition at line 41 of file ProfileDataLoader.h.
| typedef std::pair<const BType*, const BType*> llvm::ProfileDataT< FType, BType >::Edge |
Definition at line 45 of file ProfileDataLoader.h.
| void llvm::ProfileDataT< FType, BType >::addEdgeWeight | ( | Edge | e, |
| unsigned | weight | ||
| ) | [inline] |
addEdgeWeight - Add 'weight' to the already stored execution count for this edge.
Definition at line 87 of file ProfileDataLoader.h.
References llvm::ProfileDataT< FType, BType >::getFunction().
| static Edge llvm::ProfileDataT< FType, BType >::getEdge | ( | const BType * | Src, |
| const BType * | Dest | ||
| ) | [inline, static] |
getEdge() - Creates an Edge between two BasicBlocks.
Definition at line 68 of file ProfileDataLoader.h.
| unsigned llvm::ProfileDataT< FType, BType >::getEdgeWeight | ( | Edge | e | ) | const [inline] |
getEdgeWeight - Return the number of times that a given edge was executed.
Definition at line 74 of file ProfileDataLoader.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT >::find(), llvm::ProfileDataT< FType, BType >::getFunction(), and weights.
| static const FType* llvm::ProfileDataT< FType, BType >::getFunction | ( | Edge | e | ) | [inline, static] |
getFunction() - Returns the Function for an Edge.
Definition at line 59 of file ProfileDataLoader.h.
Referenced by llvm::ProfileDataT< FType, BType >::addEdgeWeight(), and llvm::ProfileDataT< FType, BType >::getEdgeWeight().