|
My Project
|
#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... | |
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.
|
explicit |
Create a RewritePatternMatcher with the specified set of patterns.
| 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.
1.8.13