This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

springerm created this revision.Aug 24 2023, 5:34 AM
Herald added a project: Restricted Project. · View Herald Transcript
springerm requested review of this revision.Aug 24 2023, 5:34 AM
Peiming accepted this revision.Aug 24 2023, 9:06 AM
This revision is now accepted and ready to land.Aug 24 2023, 9:06 AM
aartbik accepted this revision.Aug 24 2023, 9:48 AM

Oh very neat. Thanks for this!