MLIR
20.0.0git
|
Structure of external MlirPass
callbacks.
More...
#include "mlir-c/Pass.h"
Public Attributes | |
void(* | construct )(void *userData) |
This callback is called from the pass is created. More... | |
void(* | destruct )(void *userData) |
This callback is called when the pass is destroyed This is analogous to a C++ pass destructor. More... | |
MlirLogicalResult(* | initialize )(MlirContext ctx, void *userData) |
This callback is optional. More... | |
void *(* | clone )(void *userData) |
This callback is called when the pass is cloned. More... | |
void(* | run )(MlirOperation op, MlirExternalPass pass, void *userData) |
This callback is called when the pass is run. More... | |
Structure of external MlirPass
callbacks.
All callbacks are required to be set unless otherwise specified.
void*(* MlirExternalPassCallbacks::clone) (void *userData) |
This callback is called when the pass is cloned.
See Pass::clonePass().
Definition at line 162 of file Pass.h.
Referenced by mlir::ExternalPass::clonePass().
void(* MlirExternalPassCallbacks::construct) (void *userData) |
This callback is called from the pass is created.
This is analogous to a C++ pass constructor.
Definition at line 148 of file Pass.h.
Referenced by mlir::ExternalPass::ExternalPass().
void(* MlirExternalPassCallbacks::destruct) (void *userData) |
This callback is called when the pass is destroyed This is analogous to a C++ pass destructor.
Definition at line 152 of file Pass.h.
Referenced by mlir::ExternalPass::~ExternalPass().
MlirLogicalResult(* MlirExternalPassCallbacks::initialize) (MlirContext ctx, void *userData) |
This callback is optional.
The callback is called before the pass is run, allowing a chance to initialize any complex state necessary for running the pass. See Pass::initialize(MLIRContext *).
Definition at line 158 of file Pass.h.
Referenced by mlir::ExternalPass::initialize().
void(* MlirExternalPassCallbacks::run) (MlirOperation op, MlirExternalPass pass, void *userData) |
This callback is called when the pass is run.
See Pass::runOnOperation().
Definition at line 166 of file Pass.h.
Referenced by mlir::ExternalPass::runOnOperation().