This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Adding IsSparseTensorPred and updating ops to use it
ClosedPublic

Authored by wrengr on Jun 3 2022, 12:42 PM.

Diff Detail

Event Timeline

wrengr created this revision.Jun 3 2022, 12:42 PM
wrengr requested review of this revision.Jun 3 2022, 12:42 PM
bixia retitled this revision from [mlir][sparse] Adding IsSparseTensorPred and updating ops to use it to [mlir][sparse] WIP Adding IsSparseTensorPred and updating ops to use it.Jun 3 2022, 3:40 PM
wrengr retitled this revision from [mlir][sparse] WIP Adding IsSparseTensorPred and updating ops to use it to [mlir][sparse] Adding IsSparseTensorPred and updating ops to use it.Jun 3 2022, 4:16 PM
aartbik accepted this revision.Jun 3 2022, 4:28 PM
aartbik added inline comments.
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorAttrDefs.td
96–97

Do we need to state that? In general we don't really say that for include files that are explicit anyway?

102

Since it applies to the next four, leave an empty line after //

(when // is attached, I always interpreted it as applying to only the next decl(

This revision is now accepted and ready to land.Jun 3 2022, 4:28 PM
wrengr updated this revision to Diff 434203.Jun 3 2022, 4:41 PM
wrengr marked 2 inline comments as done.

addressing nits

mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorAttrDefs.td
96–97

That was a leftover note-to-self since I'm not entirely sure the machinery is set up in a way to guarantee that the tablegen'ed code will always pull in the header. (The paranoia is cuz I'm all too familiar with multi-layer stringly-typed codegen pipelines.) I can remove it though