This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Removing the DimLvlType and DimLevelFormat types
ClosedPublic

Authored by wrengr on Oct 17 2022, 7:13 PM.

Details

Summary

This removes another massive source of redundancy, and instead has the Merger.{h,cpp} reuse the SparseTensorEnums library.

Depends On D136005

Diff Detail

Event Timeline

wrengr created this revision.Oct 17 2022, 7:13 PM
wrengr requested review of this revision.Oct 17 2022, 7:13 PM
wrengr updated this revision to Diff 468663.Oct 18 2022, 12:36 PM

rebase, and addressing the MSVC error

Peiming accepted this revision.Oct 18 2022, 2:20 PM

Nice change! looks clean!

LGTM!

This revision is now accepted and ready to land.Oct 18 2022, 2:20 PM
Peiming added inline comments.Oct 18 2022, 2:21 PM
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
147

Yeah, I agree that it should be unreachable here

wrengr updated this revision to Diff 468720.Oct 18 2022, 3:11 PM

Changing more constexpr annotations to inline for MSVC