The same functionality is already provided by -buffer-hoisting and -buffer-loop-hoisting.
The purpose of this change is to remove finalizeBuffers, which made it difficult to extend the bufferization to custom buffer types.
Paths
| Differential D126251
[mlir][bufferize] Remove hoisting functionality from One-Shot Bufferize ClosedPublic Authored by springerm on May 23 2022, 3:58 PM.
Details Summary The same functionality is already provided by -buffer-hoisting and -buffer-loop-hoisting. The purpose of this change is to remove finalizeBuffers, which made it difficult to extend the bufferization to custom buffer types.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 25 2022, 12:56 AM Closed by commit rG0ee1c0388ca3: [mlir][bufferize] Remove hoisting functionality from One-Shot Bufferize (authored by springerm). · Explain WhyMay 25 2022, 10:56 AM This revision was automatically updated to reflect the committed changes. springerm removed a child revision: D126252: [mlir][bufferization] Decouple buffer-deallocation from One-Shot Bufferize.May 27 2022, 3:53 PM
Revision Contents
Diff 432046 mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h
mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.td
mlir/include/mlir/Dialect/Bufferization/Transforms/Bufferize.h
mlir/lib/Dialect/Bufferization/IR/BufferizableOpInterface.cpp
mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp
mlir/lib/Dialect/Bufferization/Transforms/FuncBufferizableOpInterfaceImpl.cpp
mlir/lib/Dialect/Shape/Transforms/BufferizableOpInterfaceImpl.cpp
mlir/test/Dialect/Bufferization/Transforms/buffer-hoisting.mlir
mlir/test/Dialect/Bufferization/Transforms/buffer-loop-hoisting.mlir
mlir/test/Dialect/Linalg/one-shot-bufferize.mlir
mlir/test/Dialect/SCF/one-shot-bufferize.mlir
|