This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] support iteration over compressed-hi dimension level in loop emitter
ClosedPublic

Authored by Peiming on Apr 18 2023, 3:28 PM.

Diff Detail

Event Timeline

Peiming created this revision.Apr 18 2023, 3:28 PM
Herald added a project: Restricted Project. · View Herald Transcript
Peiming requested review of this revision.Apr 18 2023, 3:28 PM
aartbik accepted this revision.Apr 19 2023, 5:48 PM
aartbik added inline comments.
mlir/lib/Dialect/SparseTensor/Transforms/LoopEmitter.cpp
1132

Ah, I see why you prefer the LO=POS(2i) and HI=POS(2i+1) so much ;-)

For the records, we may still consider storing this as LO/HI or LO/LEN parallel arrays at some point, perhaps with even more level types or properties, just to give the choice.

This revision is now accepted and ready to land.Apr 19 2023, 5:48 PM
Peiming marked an inline comment as done.Apr 19 2023, 5:49 PM
Peiming added inline comments.
mlir/lib/Dialect/SparseTensor/Transforms/LoopEmitter.cpp
1132

Not only that, but also because I do not need to change the sparse tensor layout/specifier

This revision was landed with ongoing or failed builds.Apr 19 2023, 5:57 PM
This revision was automatically updated to reflect the committed changes.
Peiming marked an inline comment as done.