This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Add rewriting rules for sparse_tensor.sort_coo.
ClosedPublic

Authored by bixia on Nov 6 2022, 7:35 PM.

Details

Summary

Refactor the rewriting of sparse_tensor.sort to support the implementation of
sparse_tensor.sort_coo.

Diff Detail

Event Timeline

bixia created this revision.Nov 6 2022, 7:35 PM
Herald added a project: Restricted Project. · View Herald Transcript
bixia requested review of this revision.Nov 6 2022, 7:35 PM
bixia updated this revision to Diff 473689.Nov 7 2022, 8:25 AM

rebase.

bixia updated this revision to Diff 474003.Nov 8 2022, 7:32 AM

Rebase.

bixia updated this revision to Diff 474296.Nov 9 2022, 9:10 AM

Rebase.

aartbik accepted this revision.Nov 11 2022, 3:39 PM
aartbik added inline comments.
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td
533–534

While we are here, can we rephrase this a bit? I would say something along the lines of that it stores the COO definition in sparse tensor type in a more efficient way.

mlir/lib/Dialect/SparseTensor/Transforms/SparseBufferRewriting.cpp
69–72

add short descript of new params

This revision is now accepted and ready to land.Nov 11 2022, 3:39 PM
bixia updated this revision to Diff 475152.Nov 14 2022, 8:02 AM
bixia marked 2 inline comments as done.

Fix comment for the instruction definition; add document for the new parameters nx, ny, isCoo.