This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] add folder to sparse_tensor.storage.get operation.
ClosedPublic

Authored by Peiming on Dec 15 2022, 3:04 PM.

Diff Detail

Event Timeline

Peiming created this revision.Dec 15 2022, 3:04 PM
Herald added a project: Restricted Project. · View Herald Transcript
Peiming requested review of this revision.Dec 15 2022, 3:04 PM
aartbik accepted this revision.Dec 15 2022, 3:06 PM
aartbik added inline comments.
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
498

can you make this a for loop with the init, test and update all in one line?

This revision is now accepted and ready to land.Dec 15 2022, 3:06 PM
wrengr accepted this revision.Dec 15 2022, 3:11 PM
Peiming updated this revision to Diff 483361.Dec 15 2022, 3:12 PM

use for loop

Peiming updated this revision to Diff 483363.Dec 15 2022, 3:18 PM

code simplication.

Peiming updated this revision to Diff 483369.Dec 15 2022, 3:29 PM

more consices

aartbik accepted this revision.Dec 15 2022, 3:31 PM

Beautiful, ship it!

wrengr added inline comments.Dec 15 2022, 3:34 PM
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
497

Why not use x.getSpecifier().getDefiningOp... since that's how it's called in both of the use sites?

Peiming updated this revision to Diff 483373.Dec 15 2022, 3:38 PM

make a template

This revision was landed with ongoing or failed builds.Dec 15 2022, 3:51 PM
This revision was automatically updated to reflect the committed changes.