From 5488a6b0ffb1c34898db6bd50798be2472db93c8 Mon Sep 17 00:00:00 2001 From: Sean Silva Date: Wed, 25 Nov 2020 16:10:34 -0800 Subject: [PATCH] [NFC] Fix pattern name. It still had the old name from before ElementwiseMappable was added. --- mlir/lib/Dialect/Linalg/Transforms/ElementwiseToLinalg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mlir/lib/Dialect/Linalg/Transforms/ElementwiseToLinalg.cpp b/mlir/lib/Dialect/Linalg/Transforms/ElementwiseToLinalg.cpp index a0e5d74e1767..8ee1b389dee8 100644 --- a/mlir/lib/Dialect/Linalg/Transforms/ElementwiseToLinalg.cpp +++ b/mlir/lib/Dialect/Linalg/Transforms/ElementwiseToLinalg.cpp @@ -26,8 +26,8 @@ static bool isElementwiseMappableOpOnRankedTensors(Operation *op) { } namespace { -struct ConvertStdElementwiseOpOnRankedTensors : public RewritePattern { - ConvertStdElementwiseOpOnRankedTensors() +struct ConvertAnyElementwiseMappableOpOnRankedTensors : public RewritePattern { + ConvertAnyElementwiseMappableOpOnRankedTensors() : RewritePattern(/*benefit=*/1, MatchAnyOpTypeTag()) {} LogicalResult matchAndRewrite(Operation *op, PatternRewriter &rewriter) const final { @@ -68,7 +68,7 @@ struct ConvertStdElementwiseOpOnRankedTensors : public RewritePattern { void mlir::populateElementwiseToLinalgConversionPatterns( OwningRewritePatternList &patterns, MLIRContext *) { - patterns.insert(); + patterns.insert(); } namespace {