MLIR
20.0.0git
|
PassInstrumentation provides several entry points into the pass manager infrastructure. More...
#include "mlir/Pass/PassInstrumentation.h"
Classes | |
struct | PipelineParentInfo |
This struct represents information related to the parent pass of pipeline. More... | |
Public Member Functions | |
virtual | ~PassInstrumentation ()=0 |
virtual void | runBeforePipeline (std::optional< OperationName > name, const PipelineParentInfo &parentInfo) |
A callback to run before a pass pipeline is executed. More... | |
virtual void | runAfterPipeline (std::optional< OperationName > name, const PipelineParentInfo &parentInfo) |
A callback to run after a pass pipeline has executed. More... | |
virtual void | runBeforePass (Pass *pass, Operation *op) |
A callback to run before a pass is executed. More... | |
virtual void | runAfterPass (Pass *pass, Operation *op) |
A callback to run after a pass is successfully executed. More... | |
virtual void | runAfterPassFailed (Pass *pass, Operation *op) |
A callback to run when a pass execution fails. More... | |
virtual void | runBeforeAnalysis (StringRef name, TypeID id, Operation *op) |
A callback to run before an analysis is computed. More... | |
virtual void | runAfterAnalysis (StringRef name, TypeID id, Operation *op) |
A callback to run before an analysis is computed. More... | |
PassInstrumentation provides several entry points into the pass manager infrastructure.
Instrumentations should be added directly to a PassManager before running a pipeline.
Definition at line 28 of file PassInstrumentation.h.
|
pure virtualdefault |
|
inlinevirtual |
A callback to run before an analysis is computed.
This function takes the name of the analysis that was computed, its TypeID, as well as the current operation being analyzed.
Definition at line 82 of file PassInstrumentation.h.
A callback to run after a pass is successfully executed.
This function takes a pointer to the pass to be executed, as well as the current operation being operated on.
Definition at line 66 of file PassInstrumentation.h.
|
inlinevirtual |
A callback to run when a pass execution fails.
This function takes a pointer to the pass that was being executed, as well as the current operation being operated on. Note that the operation may be in an invalid state.
Definition at line 72 of file PassInstrumentation.h.
|
virtual |
|
inlinevirtual |
A callback to run before an analysis is computed.
This function takes the name of the analysis to be computed, its TypeID, as well as the current operation being analyzed.
Definition at line 77 of file PassInstrumentation.h.
A callback to run before a pass is executed.
This function takes a pointer to the pass to be executed, as well as the current operation being operated on.
Definition at line 61 of file PassInstrumentation.h.
|
virtual |