This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Allow the push_back operator to skip capacity check and reallocation.
ClosedPublic

Authored by bixia on Sep 29 2022, 2:51 PM.

Diff Detail

Event Timeline

bixia created this revision.Sep 29 2022, 2:51 PM
Herald added a project: Restricted Project. · View Herald Transcript
bixia requested review of this revision.Sep 29 2022, 2:51 PM
aartbik accepted this revision.Sep 29 2022, 3:08 PM
aartbik added inline comments.
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td
255

Make a comment that the typical usage will be for "dynamic" sparse tensors for which a capacity can be set beforehand

mlir/lib/Dialect/SparseTensor/Transforms/SparseBufferRewriting.cpp
354

is present

This revision is now accepted and ready to land.Sep 29 2022, 3:08 PM
bixia updated this revision to Diff 464061.Sep 29 2022, 3:16 PM
bixia marked 2 inline comments as done.

Fix comments to address review feedback.

bixia updated this revision to Diff 464075.Sep 29 2022, 3:43 PM

arc land can't determine revision.