LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
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 ()
 Invalidates the analyses. Valid only when using the new pass manager.
 
 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 1127 of file Attributor.h.

Constructor & Destructor Documentation

◆ AnalysisGetter() [1/3]

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

Definition at line 1172 of file Attributor.h.

References FAM.

◆ AnalysisGetter() [2/3]

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

Definition at line 1174 of file Attributor.h.

◆ 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

◆ HasLegacyWrapper()

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

Definition at line 1188 of file Attributor.h.

◆ invalidateAnalyses()

void llvm::AnalysisGetter::invalidateAnalyses ( )
inline

Invalidates the analyses. Valid only when using the new pass manager.

Definition at line 1167 of file Attributor.h.

References assert(), and llvm::AnalysisManager< IRUnitT, ExtraArgTs >::clear().

Referenced by llvm::InformationCache::invalidateAnalyses().

Member Data Documentation

◆ HasLegacyWrapper

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

Definition at line 1140 of file Attributor.h.


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