LLVM  9.0.0svn
Public Member Functions | List of all members
llvm::LazyBlockFrequencyInfo< FunctionT, BranchProbabilityInfoPassT, LoopInfoT, BlockFrequencyInfoT > Class Template Reference

Wraps a BFI to allow lazy computation of the block frequencies. More...

#include "llvm/Analysis/LazyBlockFrequencyInfo.h"

Inheritance diagram for llvm::LazyBlockFrequencyInfo< FunctionT, BranchProbabilityInfoPassT, LoopInfoT, BlockFrequencyInfoT >:
Inheritance graph
[legend]

Public Member Functions

 LazyBlockFrequencyInfo ()
 
void setAnalysis (const FunctionT *F, BranchProbabilityInfoPassT *BPIPass, const LoopInfoT *LI)
 Set up the per-function input. More...
 
BlockFrequencyInfoT & getCalculated ()
 Retrieve the BFI with the block frequencies computed. More...
 
const BlockFrequencyInfoT & getCalculated () const
 
void releaseMemory ()
 

Detailed Description

template<typename FunctionT, typename BranchProbabilityInfoPassT, typename LoopInfoT, typename BlockFrequencyInfoT>
class llvm::LazyBlockFrequencyInfo< FunctionT, BranchProbabilityInfoPassT, LoopInfoT, BlockFrequencyInfoT >

Wraps a BFI to allow lazy computation of the block frequencies.

A pass that only conditionally uses BFI can uncondtionally require the analysis without paying for the overhead if BFI doesn't end up being used.

Definition at line 35 of file LazyBlockFrequencyInfo.h.

Constructor & Destructor Documentation

◆ LazyBlockFrequencyInfo()

template<typename FunctionT, typename BranchProbabilityInfoPassT, typename LoopInfoT, typename BlockFrequencyInfoT>
llvm::LazyBlockFrequencyInfo< FunctionT, BranchProbabilityInfoPassT, LoopInfoT, BlockFrequencyInfoT >::LazyBlockFrequencyInfo ( )
inline

Definition at line 37 of file LazyBlockFrequencyInfo.h.

Member Function Documentation

◆ getCalculated() [1/2]

template<typename FunctionT, typename BranchProbabilityInfoPassT, typename LoopInfoT, typename BlockFrequencyInfoT>
BlockFrequencyInfoT& llvm::LazyBlockFrequencyInfo< FunctionT, BranchProbabilityInfoPassT, LoopInfoT, BlockFrequencyInfoT >::getCalculated ( )
inline

◆ getCalculated() [2/2]

template<typename FunctionT, typename BranchProbabilityInfoPassT, typename LoopInfoT, typename BlockFrequencyInfoT>
const BlockFrequencyInfoT& llvm::LazyBlockFrequencyInfo< FunctionT, BranchProbabilityInfoPassT, LoopInfoT, BlockFrequencyInfoT >::getCalculated ( ) const
inline

Definition at line 59 of file LazyBlockFrequencyInfo.h.

◆ releaseMemory()

template<typename FunctionT, typename BranchProbabilityInfoPassT, typename LoopInfoT, typename BlockFrequencyInfoT>
void llvm::LazyBlockFrequencyInfo< FunctionT, BranchProbabilityInfoPassT, LoopInfoT, BlockFrequencyInfoT >::releaseMemory ( )
inline

Definition at line 63 of file LazyBlockFrequencyInfo.h.

Referenced by llvm::LazyBlockFrequencyInfoPass::getBFI().

◆ setAnalysis()

template<typename FunctionT, typename BranchProbabilityInfoPassT, typename LoopInfoT, typename BlockFrequencyInfoT>
void llvm::LazyBlockFrequencyInfo< FunctionT, BranchProbabilityInfoPassT, LoopInfoT, BlockFrequencyInfoT >::setAnalysis ( const FunctionT *  F,
BranchProbabilityInfoPassT *  BPIPass,
const LoopInfoT *  LI 
)
inline

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