llvm::AnalysisManager::getResult

Get the result of an analysis pass for a given IR unit.

Synopsis

Declared in <llvm/IR/PassManager.h>

template<typename PassT>
PassT::Result&
getResult(
    IRUnitT& IR,
    ExtraArgTs... ExtraArgs);

Description

Runs the analysis if a cached result is not available. Any additional arguments are forwarded to the analysis pass.

Return Value

A reference to the (possibly newly computed) analysis result.

Parameters

NameDescription
IRIR unit to analyze.
ExtraArgsExtra arguments forwarded to the analysis pass.