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
150–151

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

151–173

typo: addition

152

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

156

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
157–160

document output parameter

185

/ at end just period?

186

We continue

201

this and one below,

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

291

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
156

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