MLIR 22.0.0git
MlirRewritePatternCallbacks Struct Reference

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.

Detailed Description

RewritePattern API.

Callbacks to construct a rewrite pattern.

Definition at line 337 of file Rewrite.h.

Member Data Documentation

◆ construct

void(* MlirRewritePatternCallbacks::construct) (void *userData)

Optional constructor for the user data.

Set to nullptr to disable it.

Definition at line 340 of file Rewrite.h.

◆ destruct

void(* MlirRewritePatternCallbacks::destruct) (void *userData)

Optional destructor for the user data.

Set to nullptr to disable it.

Definition at line 343 of file Rewrite.h.

◆ matchAndRewrite

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 347 of file Rewrite.h.


The documentation for this struct was generated from the following file: