LLVM 24.0.0git
llvm::AnalysisGetter Struct Reference

Wrapper for FunctionAnalysisManager. More...

#include "llvm/Transforms/IPO/Attributor.h"

Public Member Functions

template<typename Analysis>
Analysis::Result * getAnalysis (const Function &F, bool RequestCachedOnly=false)
void invalidateAnalyses (Module &M)
 Invalidates the analyses of each function in M individually, which allows preserving invariant function analyses like TargetLibraryInfo.
 AnalysisGetter (FunctionAnalysisManager &FAM, bool CachedOnly=false)
 AnalysisGetter (Pass *P, bool CachedOnly=false)
 AnalysisGetter ()=default

Static Public Member Functions

template<typename Analysis>
constexpr bool HasLegacyWrapper

Static Public Attributes

template<typename, typename = void>
static constexpr bool HasLegacyWrapper = false

Detailed Description

Wrapper for FunctionAnalysisManager.

Definition at line 1081 of file Attributor.h.

Constructor & Destructor Documentation

◆ AnalysisGetter() [1/3]

llvm::AnalysisGetter::AnalysisGetter ( FunctionAnalysisManager & FAM,
bool CachedOnly = false )
inline

Definition at line 1128 of file Attributor.h.

◆ AnalysisGetter() [2/3]

llvm::AnalysisGetter::AnalysisGetter ( Pass * P,
bool CachedOnly = false )
inline

Definition at line 1130 of file Attributor.h.

References P.

◆ AnalysisGetter() [3/3]

llvm::AnalysisGetter::AnalysisGetter ( )
default

Member Function Documentation

◆ getAnalysis()

template<typename Analysis>
Analysis::Result * llvm::AnalysisGetter::getAnalysis ( const Function & F,
bool RequestCachedOnly = false )
inline

Definition at line 1097 of file Attributor.h.

References Analysis, F, HasLegacyWrapper, and P.

◆ HasLegacyWrapper()

template<typename Analysis>
bool llvm::AnalysisGetter::HasLegacyWrapper
staticconstexpr

Definition at line 1144 of file Attributor.h.

References Analysis, and HasLegacyWrapper.

◆ invalidateAnalyses()

void llvm::AnalysisGetter::invalidateAnalyses ( Module & M)
inline

Invalidates the analyses of each function in M individually, which allows preserving invariant function analyses like TargetLibraryInfo.

Definition at line 1122 of file Attributor.h.

References assert(), F, and llvm::PreservedAnalyses::none().

Member Data Documentation

◆ HasLegacyWrapper

template<typename, typename = void>
bool llvm::AnalysisGetter::HasLegacyWrapper = false
staticconstexpr

Definition at line 1094 of file Attributor.h.

Referenced by getAnalysis(), and HasLegacyWrapper().


The documentation for this struct was generated from the following file: