Skip to content

Commit

Permalink
Fixup on ArithBufferizePass: add the Pass suffix in TableGen to ensur…
Browse files Browse the repository at this point in the history
…e consitency of the generated code
  • Loading branch information
joker-eph authored and pull[bot] committed Feb 23, 2024
1 parent 55eb0dd commit 8798a7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mlir/include/mlir/Dialect/Arith/Transforms/Passes.td
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions mlir/lib/Dialect/Arith/Transforms/Bufferize.cpp
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit 8798a7d

Please sign in to comment.