This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] refactoring: split translateIndices.
ClosedPublic

Authored by Peiming on Sep 29 2022, 3:33 PM.

Details

Summary

TranslateIndicesArray take an array of SSA value and convert them into another array of SSA values based on reassociation. Which makes it easier to be reused by foreach operator (as the indices array are given as an array of SSA values).

Diff Detail

Event Timeline

Peiming created this revision.Sep 29 2022, 3:33 PM
Herald added a project: Restricted Project. · View Herald Transcript
Peiming requested review of this revision.Sep 29 2022, 3:33 PM
Peiming edited the summary of this revision. (Show Details)Sep 29 2022, 3:38 PM
aartbik accepted this revision.Sep 29 2022, 4:30 PM
aartbik added inline comments.
mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.cpp
242

collapsion -> collapse

This revision is now accepted and ready to land.Sep 29 2022, 4:30 PM
Peiming updated this revision to Diff 464095.Sep 29 2022, 4:39 PM

address comments.

bixia accepted this revision.Sep 29 2022, 4:41 PM
bixia added inline comments.
mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.h
198

We usually put user facing doc for the routine on the header file not the cpp implementation.

Peiming marked an inline comment as done.Sep 29 2022, 4:42 PM
Peiming updated this revision to Diff 464098.Sep 29 2022, 4:52 PM

address comments

This revision was landed with ongoing or failed builds.Sep 29 2022, 4:59 PM
This revision was automatically updated to reflect the committed changes.