|
MLIR 23.0.0git
|
ConversionPattern 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 )(MlirConversionPattern pattern, MlirOperation op, intptr_t nOperands, MlirValue *operands, MlirConversionPatternRewriter rewriter, void *userData) |
| The callback function to match against code rooted at the specified operation, and perform the conversion rewrite if the match is successful, corresponding to ConversionPattern::matchAndRewrite. | |
ConversionPattern API.
Optional constructor for the user data.
Set to nullptr to disable it.
Definition at line 556 of file Rewrite.h.
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyRewritePatternSet::addConversion().
Optional destructor for the user data.
Set to nullptr to disable it.
Definition at line 559 of file Rewrite.h.
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyRewritePatternSet::addConversion().
| MlirLogicalResult(* MlirConversionPatternCallbacks::matchAndRewrite) (MlirConversionPattern pattern, MlirOperation op, intptr_t nOperands, MlirValue *operands, MlirConversionPatternRewriter rewriter, void *userData) |
The callback function to match against code rooted at the specified operation, and perform the conversion rewrite if the match is successful, corresponding to ConversionPattern::matchAndRewrite.
Definition at line 563 of file Rewrite.h.
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyRewritePatternSet::addConversion().