My Project
Classes | Public Member Functions | List of all members
mlir::PassInstrumentation Class Referenceabstract

#include <PassInstrumentation.h>

Classes

struct  PipelineParentInfo
 

Public Member Functions

virtual ~PassInstrumentation ()=0
 
virtual void runBeforePipeline (const OperationName &name, const PipelineParentInfo &parentInfo)
 
virtual void runAfterPipeline (const OperationName &name, const PipelineParentInfo &parentInfo)
 
virtual void runBeforePass (Pass *pass, Operation *op)
 
virtual void runAfterPass (Pass *pass, Operation *op)
 
virtual void runAfterPassFailed (Pass *pass, Operation *op)
 
virtual void runBeforeAnalysis (StringRef name, AnalysisID *id, Operation *op)
 
virtual void runAfterAnalysis (StringRef name, AnalysisID *id, Operation *op)
 

Detailed Description

PassInstrumentation provides several entry points into the pass manager infrastructure. Instrumentations should be added directly to a PassManager before running a pipeline.

Constructor & Destructor Documentation

◆ ~PassInstrumentation()

PassInstrumentation::~PassInstrumentation ( )
pure virtual

Member Function Documentation

◆ runAfterAnalysis()

virtual void mlir::PassInstrumentation::runAfterAnalysis ( StringRef  name,
AnalysisID id,
Operation op 
)
inlinevirtual

A callback to run before an analysis is computed. This function takes the name of the analysis that was computed, its AnalysisID, as well as the current operation being analyzed.

◆ runAfterPass()

virtual void mlir::PassInstrumentation::runAfterPass ( Pass pass,
Operation op 
)
inlinevirtual

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.

◆ runAfterPassFailed()

virtual void mlir::PassInstrumentation::runAfterPassFailed ( Pass pass,
Operation op 
)
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.

◆ runAfterPipeline()

virtual void mlir::PassInstrumentation::runAfterPipeline ( const OperationName name,
const PipelineParentInfo parentInfo 
)
inlinevirtual

A callback to run after a pass pipeline has executed. This function takes the name of the operation type being operated on, and information related to the parent that spawned this pipeline.

◆ runBeforeAnalysis()

virtual void mlir::PassInstrumentation::runBeforeAnalysis ( StringRef  name,
AnalysisID id,
Operation op 
)
inlinevirtual

A callback to run before an analysis is computed. This function takes the name of the analysis to be computed, its AnalysisID, as well as the current operation being analyzed.

◆ runBeforePass()

virtual void mlir::PassInstrumentation::runBeforePass ( Pass pass,
Operation op 
)
inlinevirtual

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.

◆ runBeforePipeline()

virtual void mlir::PassInstrumentation::runBeforePipeline ( const OperationName name,
const PipelineParentInfo parentInfo 
)
inlinevirtual

A callback to run before a pass pipeline is executed. This function takes the name of the operation type being operated on, and information related to the parent that spawned this pipeline.


The documentation for this class was generated from the following files: