|
MLIR 23.0.0git
|
RewritePattern API. More...
#include "mlir-c/Rewrite.h"
Public Attributes | |
| void(* | construct )(void *userData) |
| Optional constructor for the user data. | |
| void(* | destruct )(void *userData) |
| Optional destructor for the user data. | |
| MlirLogicalResult(* | matchAndRewrite )(MlirRewritePattern pattern, MlirOperation op, MlirPatternRewriter rewriter, void *userData) |
| The callback function to match against code rooted at the specified operation, and perform the rewrite if the match is successful, corresponding to RewritePattern::matchAndRewrite. | |
RewritePattern API.
Callbacks to construct a rewrite pattern.
Optional constructor for the user data.
Set to nullptr to disable it.
Definition at line 442 of file Rewrite.h.
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyRewritePatternSet::add().
Optional destructor for the user data.
Set to nullptr to disable it.
Definition at line 445 of file Rewrite.h.
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyRewritePatternSet::add().
| MlirLogicalResult(* MlirRewritePatternCallbacks::matchAndRewrite) (MlirRewritePattern pattern, MlirOperation op, MlirPatternRewriter rewriter, void *userData) |
The callback function to match against code rooted at the specified operation, and perform the rewrite if the match is successful, corresponding to RewritePattern::matchAndRewrite.
Definition at line 449 of file Rewrite.h.
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyRewritePatternSet::add().