This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Surface syntax change in parsing
ClosedPublic

Authored by yinying-lisa-li on Sep 1 2023, 10:15 AM.

Details

Summary

Example: compressed(nonunique, nonordered) or compressed(nonordered, nonunique) instead of compressed_nu_no.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald Transcript

Remove isSet variable.

yinying-lisa-li published this revision for review.Sep 1 2023, 10:30 AM
aartbik accepted this revision.Sep 1 2023, 10:42 AM
aartbik added inline comments.
mlir/include/mlir/Dialect/SparseTensor/IR/Enums.h
204

I am not super thrilled with the name, but have no good alternatives
since indeed we have default prop = 0 and non-default prop = 1 for the bit position

but okay for now

mlir/lib/Dialect/SparseTensor/IR/Detail/DimLvlMap.cpp
394

since we are not round tripping, this is not required yet right?
but okay to keep, just observing

mlir/lib/Dialect/SparseTensor/IR/Detail/LvlTypeParser.h
22–23

I would still keep the trivial constructor (now without the map)

LvlTypeParser() {}

22–23

I think you can remove these TODOs, we know pretty well what we still need for migraton

This revision is now accepted and ready to land.Sep 1 2023, 10:42 AM
yinying-lisa-li marked 2 inline comments as done.

Addressing comments.

mlir/lib/Dialect/SparseTensor/IR/Detail/LvlTypeParser.h
22–23

Sounds good. Cider is recommending LvlTypeParser() = default;, so I'll use that.

This revision was landed with ongoing or failed builds.Sep 1 2023, 12:25 PM
This revision was automatically updated to reflect the committed changes.