[llvm-branch-commits] [mlir] 5488a6b - [NFC] Fix pattern name.
Sean Silva via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Nov 25 16:16:54 PST 2020
Author: Sean Silva
Date: 2020-11-25T16:10:34-08:00
New Revision: 5488a6b0ffb1c34898db6bd50798be2472db93c8
URL: https://github.com/llvm/llvm-project/commit/5488a6b0ffb1c34898db6bd50798be2472db93c8
DIFF: https://github.com/llvm/llvm-project/commit/5488a6b0ffb1c34898db6bd50798be2472db93c8.diff
LOG: [NFC] Fix pattern name.
It still had the old name from before ElementwiseMappable was added.
Added:
Modified:
mlir/lib/Dialect/Linalg/Transforms/ElementwiseToLinalg.cpp
Removed:
################################################################################
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<ConvertStdElementwiseOpOnRankedTensors>();
+ patterns.insert<ConvertAnyElementwiseMappableOpOnRankedTensors>();
}
namespace {
More information about the llvm-branch-commits
mailing list