class LazyBranchProbabilityInfoPass::LazyBranchProbabilityInfo

Declaration

class LazyBranchProbabilityInfoPass::LazyBranchProbabilityInfo { /* full declaration omitted */ };

Description

Wraps a BPI to allow lazy computation of the branch probabilities. A pass that only conditionally uses BPI can uncondtionally require the analysis without paying for the overhead if BPI doesn't end up being used.

Declared at: llvm/include/llvm/Analysis/LazyBranchProbabilityInfo.h:56

Method Overview

Methods

LazyBranchProbabilityInfo(
    const llvm::Function* F,
    const llvm::LoopInfo* LI,
    const llvm::TargetLibraryInfo* TLI)

Declared at: llvm/include/llvm/Analysis/LazyBranchProbabilityInfo.h:58

Parameters

const llvm::Function* F
const llvm::LoopInfo* LI
const llvm::TargetLibraryInfo* TLI

llvm::BranchProbabilityInfo& getCalculated()

Description

Retrieve the BPI with the branch probabilities computed.

Declared at: llvm/include/llvm/Analysis/LazyBranchProbabilityInfo.h:63

const llvm::BranchProbabilityInfo& getCalculated()
    const

Declared at: llvm/include/llvm/Analysis/LazyBranchProbabilityInfo.h:72