LLVM 20.0.0git
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 ()=default
 
void setAnalysis (const FunctionT *F, BranchProbabilityInfoPassT *BPIPass, const LoopInfoT *LI)
 Set up the per-function input.
 
BlockFrequencyInfoT & getCalculated ()
 Retrieve the BFI with the block frequencies computed.
 
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 33 of file LazyBlockFrequencyInfo.h.

Constructor & Destructor Documentation

◆ LazyBlockFrequencyInfo()

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

Member Function Documentation

◆ getCalculated() [1/2]

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

Retrieve the BFI with the block frequencies computed.

Definition at line 46 of file LazyBlockFrequencyInfo.h.

References assert().

Referenced by llvm::LazyBlockFrequencyInfo< FunctionT, BranchProbabilityInfoPassT, LoopInfoT, BlockFrequencyInfoT >::getCalculated().

◆ getCalculated() [2/2]

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

◆ releaseMemory()

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

◆ 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: