llvm::AnalysisManager

Container that lazily runs and caches analysis results for an IR unit.

Synopsis

Declared in <llvm/IR/PassManager.h>

template<
    typename IRUnitT,
    typename... ExtraArgTs>
class AnalysisManager;

Types

NameDescription
Invalidator API to communicate dependencies between analyses during invalidation.

Member Functions

NameDescription
AnalysisManager [constructor]Constructors
operator= Move-assign an analysis manager, transferring its cached results.
clear clear overloads
clearAnalysis Directly clear a cached analysis for an IR unit.
empty Returns true if the analysis manager has an empty results cache.
getCachedResult Get the cached result of an analysis pass for a given IR unit.
getResult Get the result of an analysis pass for a given IR unit.
invalidate Invalidate cached analyses for an IR unit.
isPassRegistered Returns true if the specified analysis pass is registered.
registerPass Register an analysis pass with the manager.
verifyNotInvalidated Verify that the given Result cannot be invalidated, assert otherwise.

Non-Member Functions

NameDescription
getBestSimplifyQueryBuild a SimplifyQuery from analyses currently valid in an analysis manager.