LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Friends | List of all members
llvm::BlockFrequencyImpl< BlockT, FunctionT, BlockProbInfoT > Class Template Reference

#include <BlockFrequencyImpl.h>

Inheritance diagram for llvm::BlockFrequencyImpl< BlockT, FunctionT, BlockProbInfoT >:
Inheritance graph
[legend]

Public Member Functions

BlockFrequency getBlockFreq (const BlockT *BB) const
 getBlockFreq - Return block frequency. Return 0 if we don't have it. More...
 
void print (raw_ostream &OS) const
 
void dump () const
 

Friends

class BlockFrequencyInfo
 
class MachineBlockFrequencyInfo
 

Detailed Description

template<class BlockT, class FunctionT, class BlockProbInfoT>
class llvm::BlockFrequencyImpl< BlockT, FunctionT, BlockProbInfoT >

BlockFrequencyImpl implements block frequency algorithm for IR and Machine Instructions. Algorithm starts with value ENTRY_FREQ for the entry block and then propagates frequencies using branch weights from (Machine)BranchProbabilityInfo. LoopInfo is not required because algorithm can find "backedges" by itself.

Definition at line 41 of file BlockFrequencyImpl.h.

Member Function Documentation

template<class BlockT, class FunctionT, class BlockProbInfoT>
void llvm::BlockFrequencyImpl< BlockT, FunctionT, BlockProbInfoT >::dump ( ) const
inline

Definition at line 340 of file BlockFrequencyImpl.h.

template<class BlockT, class FunctionT, class BlockProbInfoT>
BlockFrequency llvm::BlockFrequencyImpl< BlockT, FunctionT, BlockProbInfoT >::getBlockFreq ( const BlockT *  BB) const
inline

getBlockFreq - Return block frequency. Return 0 if we don't have it.

Definition at line 316 of file BlockFrequencyImpl.h.

Referenced by llvm::BlockFrequencyImpl< llvm::BasicBlock, llvm::Function, llvm::BranchProbabilityInfo >::print().

template<class BlockT, class FunctionT, class BlockProbInfoT>
void llvm::BlockFrequencyImpl< BlockT, FunctionT, BlockProbInfoT >::print ( raw_ostream OS) const
inline

Friends And Related Function Documentation

template<class BlockT, class FunctionT, class BlockProbInfoT>
friend class BlockFrequencyInfo
friend

Definition at line 263 of file BlockFrequencyImpl.h.

template<class BlockT, class FunctionT, class BlockProbInfoT>
friend class MachineBlockFrequencyInfo
friend

Definition at line 264 of file BlockFrequencyImpl.h.


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