diff options
author | Michele Scuttari <michele.scuttari@outlook.com> | 2022-08-31 10:16:29 +0200 |
---|---|---|
committer | Michele Scuttari <michele.scuttari@outlook.com> | 2022-08-31 12:28:45 +0200 |
commit | 67d0d7ac0acb0665d6a09f61278fbcf51f0114c2 (patch) | |
tree | a07b13c6569a3629ec7df57dfaa945f7d92aecf6 /mlir/lib/Dialect/Bufferization/Transforms/BufferResultsToOutParams.cpp | |
parent | 9e842dd4bd551c42951d1a56bb9d9eef1fa6c385 (diff) | |
download | llvm-67d0d7ac0acb0665d6a09f61278fbcf51f0114c2.tar.gz |
[MLIR] Update pass declarations to new autogenerated files
The patch introduces the required changes to update the pass declarations and definitions to use the new autogenerated files and allow dropping the old infrastructure.
Reviewed By: mehdi_amini, rriddle
Differential Review: https://reviews.llvm.org/D132838
Diffstat (limited to 'mlir/lib/Dialect/Bufferization/Transforms/BufferResultsToOutParams.cpp')
-rw-r--r-- | mlir/lib/Dialect/Bufferization/Transforms/BufferResultsToOutParams.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/mlir/lib/Dialect/Bufferization/Transforms/BufferResultsToOutParams.cpp b/mlir/lib/Dialect/Bufferization/Transforms/BufferResultsToOutParams.cpp index d00da763498a..996e7b729c37 100644 --- a/mlir/lib/Dialect/Bufferization/Transforms/BufferResultsToOutParams.cpp +++ b/mlir/lib/Dialect/Bufferization/Transforms/BufferResultsToOutParams.cpp @@ -6,13 +6,20 @@ // //===----------------------------------------------------------------------===// -#include "PassDetail.h" #include "mlir/Dialect/Bufferization/Transforms/Passes.h" + #include "mlir/Dialect/Func/IR/FuncOps.h" #include "mlir/Dialect/MemRef/IR/MemRef.h" #include "mlir/IR/Operation.h" #include "mlir/Pass/Pass.h" +namespace mlir { +namespace bufferization { +#define GEN_PASS_DEF_BUFFERRESULTSTOOUTPARAMS +#include "mlir/Dialect/Bufferization/Transforms/Passes.h.inc" +} // namespace bufferization +} // namespace mlir + using namespace mlir; /// Return `true` if the given MemRef type has a fully dynamic layout. @@ -179,7 +186,8 @@ mlir::bufferization::promoteBufferResultsToOutParams(ModuleOp module) { namespace { struct BufferResultsToOutParamsPass - : BufferResultsToOutParamsBase<BufferResultsToOutParamsPass> { + : bufferization::impl::BufferResultsToOutParamsBase< + BufferResultsToOutParamsPass> { void runOnOperation() override { if (failed(bufferization::promoteBufferResultsToOutParams(getOperation()))) return signalPassFailure(); |