[Mlir-commits] [mlir] b1c10df - Fixup on ArithBufferizePass: add the Pass suffix in TableGen to ensure consitency of the generated code
Mehdi Amini
llvmlistbot at llvm.org
Mon Oct 2 15:50:48 PDT 2023
Author: Mehdi Amini
Date: 2023-10-02T15:50:41-07:00
New Revision: b1c10dfd72f8c617346772be6070ef37fa5db867
URL: https://github.com/llvm/llvm-project/commit/b1c10dfd72f8c617346772be6070ef37fa5db867
DIFF: https://github.com/llvm/llvm-project/commit/b1c10dfd72f8c617346772be6070ef37fa5db867.diff
LOG: Fixup on ArithBufferizePass: add the Pass suffix in TableGen to ensure consitency of the generated code
Added:
Modified:
mlir/include/mlir/Dialect/Arith/Transforms/Passes.td
mlir/lib/Dialect/Arith/Transforms/Bufferize.cpp
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/Arith/Transforms/Passes.td b/mlir/include/mlir/Dialect/Arith/Transforms/Passes.td
index 6b7bbd2b2b1094f..5e50adc1cc1f590 100644
--- a/mlir/include/mlir/Dialect/Arith/Transforms/Passes.td
+++ b/mlir/include/mlir/Dialect/Arith/Transforms/Passes.td
@@ -11,7 +11,7 @@
include "mlir/Pass/PassBase.td"
-def ArithBufferize : Pass<"arith-bufferize", "ModuleOp"> {
+def ArithBufferizePass : Pass<"arith-bufferize", "ModuleOp"> {
let summary = "Bufferize Arith dialect ops.";
let description = [{
This pass bufferizes arith dialect ops.
diff --git a/mlir/lib/Dialect/Arith/Transforms/Bufferize.cpp b/mlir/lib/Dialect/Arith/Transforms/Bufferize.cpp
index 4dbfe5b61022e2a..9a066756f429ca3 100644
--- a/mlir/lib/Dialect/Arith/Transforms/Bufferize.cpp
+++ b/mlir/lib/Dialect/Arith/Transforms/Bufferize.cpp
@@ -17,7 +17,7 @@
namespace mlir {
namespace arith {
-#define GEN_PASS_DEF_ARITHBUFFERIZE
+#define GEN_PASS_DEF_ARITHBUFFERIZEPASS
#include "mlir/Dialect/Arith/Transforms/Passes.h.inc"
} // namespace arith
} // namespace mlir
@@ -28,8 +28,8 @@ using namespace bufferization;
namespace {
/// Pass to bufferize Arith ops.
struct ArithBufferizePass
- : public arith::impl::ArithBufferizeBase<ArithBufferizePass> {
- using arith::impl::ArithBufferizeBase<ArithBufferizePass>::ArithBufferizeBase;
+ : public arith::impl::ArithBufferizePassBase<ArithBufferizePass> {
+ using ArithBufferizePassBase::ArithBufferizePassBase;
ArithBufferizePass(uint64_t alignment = 0, bool constantOpOnly = false)
: constantOpOnly(constantOpOnly) {
More information about the Mlir-commits
mailing list