Home
last modified time | relevance | path

Searched defs:OpRewritePattern (Results 1 – 1 of 1) sorted by relevance

/external/llvm-project/mlir/include/mlir/IR/
DPatternMatch.h194 struct OpRewritePattern : public RewritePattern { struct
198 : RewritePattern(SourceOp::getOperationName(), benefit, context) {} in RewritePattern()
201 void rewrite(Operation *op, PatternRewriter &rewriter) const final { in rewrite()
204 LogicalResult match(Operation *op) const final { in match()
207 LogicalResult matchAndRewrite(Operation *op, in matchAndRewrite()
214 virtual void rewrite(SourceOp op, PatternRewriter &rewriter) const { in rewrite()
217 virtual LogicalResult match(SourceOp op) const { in match()
220 virtual LogicalResult matchAndRewrite(SourceOp op, in matchAndRewrite()