This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] refactoring SparseTensorUtils: (4 of 4) documentation
ClosedPublic

Authored by wrengr on Sep 13 2022, 9:21 PM.

Details

Summary

Previously, the SparseTensorUtils.cpp library contained a C++ core implementation, but hid it in an anonymous namespace and only exposed a C-API for accessing it. Now we are factoring out that C++ core into a standalone C++ library so that it can be used directly by downstream clients (per request of one such client). This refactoring has been decomposed into a stack of differentials in order to simplify the code review process, however the full stack of changes should be considered together.

  • D133462: Part 1: split one file into several
  • D133830: Part 2: Reorder chunks within files
  • D133831: Part 3: General code cleanup
  • (this): Part 4: Update documentation

This part updates existing documentation, adds new documentation, and reflows the test for some existing documentation.

Depends On D133831

Diff Detail

Event Timeline

wrengr created this revision.Sep 13 2022, 9:21 PM
wrengr requested review of this revision.Sep 13 2022, 9:21 PM
aartbik accepted this revision.Sep 19 2022, 5:31 PM
aartbik added inline comments.
mlir/include/mlir/ExecutionEngine/SparseTensor/COO.h
98

We have Get and Adds now as style. I slightly prefer the active "s" form, but either way, let's pick one consistently.

This revision is now accepted and ready to land.Sep 19 2022, 5:31 PM
wrengr updated this revision to Diff 463994.Sep 29 2022, 12:14 PM

Rebasing to parent D133462 at Diff 463979.

wrengr added inline comments.Sep 30 2022, 12:42 PM
mlir/include/mlir/ExecutionEngine/SparseTensor/COO.h
98