This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Adding x-macros for OverheadType
ClosedPublic

Authored by wrengr on May 19 2022, 3:32 PM.

Diff Detail

Event Timeline

wrengr created this revision.May 19 2022, 3:32 PM
wrengr requested review of this revision.May 19 2022, 3:32 PM
aartbik accepted this revision.May 19 2022, 3:36 PM
aartbik added inline comments.
mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
282

Does it perhaps make sense to use some suffix for index instead
(just asking atm, since this will be a large CL fixing quite some checks too)

286

I would remove the stack overflow links, the empty concat is quite obvious (I think)

This revision is now accepted and ready to land.May 19 2022, 3:36 PM
wrengr updated this revision to Diff 430839.May 19 2022, 4:01 PM
wrengr marked an inline comment as done.

Replacing stackoverflow links with direct references to the standard

mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
282

I'm cool with either approach, though it would make the API cleaner to have a suffix. If we go that route, I think it'd be better to make that change as a separate differential just cuz it'll have to touch a whole bunch of other files (whereas this differential is pretty self-contained).

286

Removed. I've added the relevant commentary (namely that it's official spec for C++11 and C99, unlike C++03 where it was undefined behavior (albeit generally supported in the now-official way)). Though, of course, that comment will no longer be necessary if/when we add a suffix for the index_type case :)

This revision was automatically updated to reflect the committed changes.