This change provides BufferizableOpInterface implementations for ops from the Bufferization dialects. These ops are needed at the bufferization boundaries for partial bufferization.
Depends On D114617
Paths
| Differential D114618
[mlir][linalg][bufferize] Op interface implementation for Bufferization dialect ops ClosedPublic Authored by springerm on Nov 26 2021, 12:15 AM.
Details Summary This change provides BufferizableOpInterface implementations for ops from the Bufferization dialects. These ops are needed at the bufferization boundaries for partial bufferization. Depends On D114617
Diff Detail
Event TimelineHerald added subscribers: sdasgup3, wenzhicui, wrengr and 22 others. · View Herald TranscriptNov 26 2021, 12:15 AM nicolasvasilache added inline comments.
This revision is now accepted and ready to land.Dec 1 2021, 12:19 AM This revision was landed with ongoing or failed builds.Dec 2 2021, 11:31 PM Closed by commit rGd30fcadf07ee: [mlir][linalg][bufferize] Op interface implementation for Bufferization dialect… (authored by springerm). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 391558 mlir/include/mlir/Dialect/Linalg/ComprehensiveBufferize/BufferizationInterfaceImpl.h
mlir/lib/Dialect/Linalg/ComprehensiveBufferize/BufferizableOpInterface.cpp
mlir/lib/Dialect/Linalg/ComprehensiveBufferize/BufferizationInterfaceImpl.cpp
mlir/lib/Dialect/Linalg/ComprehensiveBufferize/CMakeLists.txt
mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ComprehensiveBufferize.cpp
mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferizePass.cpp
mlir/test/Dialect/Linalg/comprehensive-module-bufferize-analysis.mlir
mlir/test/Dialect/Linalg/comprehensive-module-bufferize-invalid.mlir
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
|
These ops are not a good abstraction in general and are really implementation detail leaking in the IR due to multi-pass bufferization.
We should have very strong documentation on the fact that they alias with the world and we should not make any non-conservative assumption on them.