LLVM 20.0.0git
|
An analysis over an "outer" IR unit that provides access to an analysis manager over an "inner" IR unit. More...
#include "llvm/IR/PassManager.h"
Classes | |
class | Result |
Public Member Functions | |
InnerAnalysisManagerProxy (AnalysisManagerT &InnerAM) | |
Result | run (IRUnitT &IR, AnalysisManager< IRUnitT, ExtraArgTs... > &AM, ExtraArgTs...) |
Run the analysis pass and create our proxy result object. | |
Public Member Functions inherited from llvm::PassInfoMixin< DerivedT > | |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::AnalysisInfoMixin< InnerAnalysisManagerProxy< AnalysisManagerT, IRUnitT > > | |
static AnalysisKey * | ID () |
Returns an opaque, unique ID for this analysis type. | |
Static Public Member Functions inherited from llvm::PassInfoMixin< DerivedT > | |
static StringRef | name () |
Gets the name of the pass we are mixed into. | |
An analysis over an "outer" IR unit that provides access to an analysis manager over an "inner" IR unit.
The inner unit must be contained in the outer unit.
For example, InnerAnalysisManagerProxy<FunctionAnalysisManager, Module> is an analysis over Modules (the "outer" unit) that provides access to a Function analysis manager. The FunctionAnalysisManager is the "inner" manager being proxied, and Functions are the "inner" unit. The inner/outer relationship is valid because each Function is contained in one Module.
If you're (transitively) within a pass manager for an IR unit U that contains IR unit V, you should never use an analysis manager over V, except via one of these proxies.
Note that the proxy's result is a move-only RAII object. The validity of the analyses in the inner analysis manager is tied to its lifetime.
Definition at line 565 of file PassManager.h.
|
inlineexplicit |
Definition at line 620 of file PassManager.h.
|
inline |
Run the analysis pass and create our proxy result object.
This doesn't do any interesting work; it is primarily used to insert our proxy result object into the outer analysis cache so that we can proxy invalidation to the inner analysis manager.
Definition at line 628 of file PassManager.h.