Add BufferizableOpInterface::verifyAnalysis. Ops can implement this method to check for expected invariants and limitations.
The purpose of this change is to introduce a modular way of checking assertions such as assertScfForAliasingProperties.
Paths
| Differential D120189
[mlir][bufferize] Add a way for ops to fail the analysis ClosedPublic Authored by springerm on Feb 19 2022, 11:13 AM.
Details Summary Add BufferizableOpInterface::verifyAnalysis. Ops can implement this method to check for expected invariants and limitations. The purpose of this change is to introduce a modular way of checking assertions such as assertScfForAliasingProperties.
Diff Detail
Event TimelineHerald added subscribers: sdasgup3, wenzhicui, wrengr and 20 others. · View Herald TranscriptFeb 19 2022, 11:13 AM This revision is now accepted and ready to land.Feb 19 2022, 11:48 AM Closed by commit rG4ec00fb3eafa: [mlir][bufferize] Add a way for ops to fail the analysis (authored by springerm). · Explain WhyFeb 19 2022, 12:55 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 410101 mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.td
mlir/include/mlir/Dialect/SCF/BufferizableOpInterfaceImpl.h
mlir/lib/Dialect/Bufferization/Transforms/OneShotAnalysis.cpp
mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferizePass.cpp
mlir/lib/Dialect/SCF/Transforms/BufferizableOpInterfaceImpl.cpp
mlir/test/Dialect/Linalg/comprehensive-module-bufferize-invalid.mlir
mlir/test/Dialect/Linalg/comprehensive-module-bufferize-partial.mlir
mlir/test/lib/Dialect/Linalg/TestComprehensiveBufferize.cpp
|