LLVM API Documentation

Public Types | Public Member Functions | Static Public Member Functions
llvm::ProfileDataT< FType, BType > Class Template Reference

The ProfileDataT<FType, BType> class is used to store the mapping of profiling data to control flow edges. More...

#include <ProfileDataLoader.h>

List of all members.

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.

Detailed Description

template<class FType, class BType>
class llvm::ProfileDataT< FType, BType >

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.


Member Typedef Documentation

template<class FType , class BType >
typedef std::pair<const BType*, const BType*> llvm::ProfileDataT< FType, BType >::Edge

Definition at line 45 of file ProfileDataLoader.h.


Member Function Documentation

template<class FType , class BType >
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().

template<class FType , class BType >
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.

template<class FType , class BType >
unsigned llvm::ProfileDataT< FType, BType >::getEdgeWeight ( Edge  e) const [inline]
template<class FType , class BType >
static const FType* llvm::ProfileDataT< FType, BType >::getFunction ( Edge  e) [inline, static]

The documentation for this class was generated from the following file: