My Project
Public Member Functions | List of all members
mlir::RewritePatternMatcher Class Reference

#include <PatternMatch.h>

Public Member Functions

 RewritePatternMatcher (const OwningRewritePatternList &patterns)
 Create a RewritePatternMatcher with the specified set of patterns. More...
 
bool matchAndRewrite (Operation *op, PatternRewriter &rewriter)
 Try to match the given operation to a pattern and rewrite it. More...
 

Detailed Description

This class manages optimization and execution of a group of rewrite patterns, providing an API for finding and applying, the best match against a given node.

Constructor & Destructor Documentation

◆ RewritePatternMatcher()

RewritePatternMatcher::RewritePatternMatcher ( const OwningRewritePatternList patterns)
explicit

Create a RewritePatternMatcher with the specified set of patterns.

Member Function Documentation

◆ matchAndRewrite()

bool RewritePatternMatcher::matchAndRewrite ( Operation op,
PatternRewriter rewriter 
)

Try to match the given operation to a pattern and rewrite it.

Try to match the given operation to a pattern and rewrite it. Return true if any pattern matches.


The documentation for this class was generated from the following files: