llvm::LazyBlockFrequencyInfo

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

Synopsis

Declared in <llvm/Analysis/LazyBlockFrequencyInfo.h>

template<
    typename FunctionT,
    typename BranchProbabilityInfoPassT,
    typename CycleInfoT,
    typename BlockFrequencyInfoT>
class LazyBlockFrequencyInfo;

Description

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.

Member Functions

NameDescription
LazyBlockFrequencyInfo [constructor]Construct an empty lazy block frequency info wrapper.
getCalculated Retrieve the BFI with the block frequencies computed.
releaseMemory Release computed frequencies and clear the analysis inputs.
setAnalysis Set up the per-function input.