Get the result of an analysis pass for a given IR unit.
Declared in <llvm/IR/PassManager.h>
template<typename PassT>
PassT::Result&
getResult(
IRUnitT& IR,
ExtraArgTs... ExtraArgs);
Runs the analysis if a cached result is not available. Any additional arguments are forwarded to the analysis pass.
A reference to the (possibly newly computed) analysis result.
| Name | Description |
|---|---|
| IR | IR unit to analyze. |
| ExtraArgs | Extra arguments forwarded to the analysis pass. |