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

Name

Description

LazyBlockFrequencyInfo [constructor]

Default constructor

getCalculated

Retrieve the BFI with the block frequencies computed.

releaseMemory

setAnalysis

Set up the per‐function input.

Created with MrDocs