sparse_tensor ops cannot be bufferized with One-Shot Bufferize. (They can only be analyzed.) The sparse compiler does the actual lowering to memref. Produce a proper error message instead of crashing.
This fixes #61311.
Paths
| Differential D158728
[mlir][sparse] Better error handling when bufferizing sparse_tensor ops ClosedPublic Authored by springerm on Aug 24 2023, 5:34 AM.
Details Summary sparse_tensor ops cannot be bufferized with One-Shot Bufferize. (They can only be analyzed.) The sparse compiler does the actual lowering to memref. Produce a proper error message instead of crashing. This fixes #61311.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 24 2023, 9:06 AM Closed by commit rG79ff70fda223: [mlir][sparse] Better error handling when bufferizing sparse_tensor ops (authored by springerm). · Explain WhyAug 24 2023, 11:39 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 553084 mlir/lib/Dialect/SparseTensor/Transforms/BufferizableOpInterfaceImpl.cpp
mlir/test/Dialect/SparseTensor/one_shot_bufferize_invalid.mlir
|