|
LLVM 22.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 |
Referenced by getCalculated().
|
inline |
Retrieve the BFI with the block frequencies computed.
Definition at line 46 of file LazyBlockFrequencyInfo.h.
References assert(), and llvm::BPIPassTrait< PassT >::getBPI().
Referenced by getCalculated().
|
inline |
Definition at line 56 of file LazyBlockFrequencyInfo.h.
References getCalculated(), and LazyBlockFrequencyInfo().
|
inline |
Definition at line 60 of file LazyBlockFrequencyInfo.h.
References setAnalysis().
|
inline |
Set up the per-function input.
Definition at line 38 of file LazyBlockFrequencyInfo.h.
Referenced by releaseMemory().