This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] add "sort" to the compress op codegen
ClosedPublic

Authored by aartbik on Sep 27 2022, 5:08 PM.

Details

Summary

This revision also adds convenience methods to test the
dim level type/property (with the codegen being first client)

Diff Detail

Event Timeline

aartbik created this revision.Sep 27 2022, 5:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 27 2022, 5:08 PM
aartbik requested review of this revision.Sep 27 2022, 5:08 PM
aartbik updated this revision to Diff 463376.Sep 27 2022, 5:18 PM

include passes change

bixia accepted this revision.Sep 28 2022, 7:37 AM
This revision is now accepted and ready to land.Sep 28 2022, 7:37 AM
Peiming added inline comments.Sep 28 2022, 9:06 AM
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
270

Can you further split these util functions by providing an extra function?
isCompressedDim(SparseTensorEncodingAttr::DimlevelType dimType)

So that I can remove the similar utils that I introduced in https://reviews.llvm.org/D134782

aartbik marked an inline comment as done.Sep 28 2022, 9:26 AM
aartbik added inline comments.
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
270

I added those. The idea indeed is that we only have these enums in as few places as possible, such as utils like this, so we can later more easily improve the internal reprentation.

aartbik updated this revision to Diff 463604.Sep 28 2022, 10:18 AM
aartbik marked an inline comment as done.

added more convenience methods

This revision was automatically updated to reflect the committed changes.