LLVM 20.0.0git
|
Wraps a BFI to allow lazy computation of the block frequencies. More...
#include "llvm/Analysis/LazyBlockFrequencyInfo.h"
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 () |
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.
|
default |
|
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().
|
inline |
Definition at line 56 of file LazyBlockFrequencyInfo.h.
|
inline |
Definition at line 60 of file LazyBlockFrequencyInfo.h.
|
inline |
Set up the per-function input.
Definition at line 38 of file LazyBlockFrequencyInfo.h.
References F.
Referenced by llvm::LazyBlockFrequencyInfo< FunctionT, BranchProbabilityInfoPassT, LoopInfoT, BlockFrequencyInfoT >::releaseMemory().