My Project
|
Public Member Functions | |
FoldAffineOp (MLIRContext *context) | |
PatternMatchResult | matchAndRewrite (Operation *op, PatternRewriter &rewriter) const override |
![]() | |
virtual void | rewrite (Operation *op, std::unique_ptr< PatternState > state, PatternRewriter &rewriter) const |
virtual void | rewrite (Operation *op, PatternRewriter &rewriter) const |
PatternMatchResult | match (Operation *op) const override |
ArrayRef< OperationName > | getGeneratedOps () const |
![]() | |
PatternBenefit | getBenefit () const |
OperationName | getRootKind () const |
virtual | ~Pattern () |
PatternMatchResult | matchSuccess (std::unique_ptr< PatternState > state={}) const |
This method indicates that a match was found and has the specified cost. More... | |
Additional Inherited Members | |
![]() | |
static PatternMatchResult | matchFailure () |
This method indicates that no match was found. More... | |
![]() | |
RewritePattern (StringRef rootName, PatternBenefit benefit, MLIRContext *context) | |
RewritePattern (StringRef rootName, ArrayRef< StringRef > generatedNames, PatternBenefit benefit, MLIRContext *context) | |
![]() | |
Pattern (StringRef rootName, PatternBenefit benefit, MLIRContext *context) | |
![]() | |
SmallVector< OperationName, 2 > | generatedOps |
|
inline |
|
inlineoverridevirtual |
Attempt to match against code rooted at the specified operation, which is the same operation code as getRootKind(). If successful, this function will automatically perform the rewrite.
Reimplemented from mlir::RewritePattern.