This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] support affine expression on sparse dimensions (analysis implementation)
ClosedPublic

Authored by Peiming on Nov 16 2022, 5:48 PM.

Diff Detail

Event Timeline

Peiming created this revision.Nov 16 2022, 5:48 PM
Herald added a project: Restricted Project. · View Herald Transcript
Peiming requested review of this revision.Nov 16 2022, 5:49 PM
Peiming retitled this revision from [mlir][sparse] support affine expression on sparse dimensions to [mlir][sparse] support affine expression on sparse dimensions (analysis implementation).Nov 18 2022, 9:08 AM
aartbik added inline comments.Nov 22 2022, 2:32 PM
mlir/include/mlir/Dialect/SparseTensor/Utils/Merger.h
151

.... given the number of tensors, native loops, and filter loops. The user ...

156–158

typo: addition

157

handle affine expressions
(? address seems a bit to specific)

161

maybe make a forward looking note that we would really like to make the filter loop "smart" and avoid scanning the full stored index space with e.g. keeping last position in ordered lists

mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
145

document output parameter

170

/ at end just period?

171

We continue

186

this and one below,

although name is somewhat self explanatory, still document it, maybe even with an affine expression example and returned value

266

Loop -> loop

Peiming updated this revision to Diff 477309.Nov 22 2022, 2:52 PM
Peiming marked 9 inline comments as done.

address comments.

Peiming added inline comments.Nov 22 2022, 2:53 PM
mlir/include/mlir/Dialect/SparseTensor/Utils/Merger.h
161

Good suggestion!

aartbik accepted this revision.Nov 22 2022, 3:49 PM
This revision is now accepted and ready to land.Nov 22 2022, 3:49 PM