This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Flip LinAlg dialect to _Both
ClosedPublic

Authored by jpienaar on Jul 15 2022, 9:53 PM.

Details

Summary

This one required more changes than ideal due to overlapping generated name
with different return types. Changed getIndexingMaps to getIndexingMapsArray to
move it out of the way/highlight that it returns (more expensively) a
SmallVector and uses the prefixed name for the Attribute.

Diff Detail

Event Timeline

jpienaar created this revision.Jul 15 2022, 9:53 PM
jpienaar requested review of this revision.Jul 15 2022, 9:53 PM
Herald added a project: Restricted Project. · View Herald Transcript
aartbik added inline comments.Jul 16 2022, 7:04 PM
mlir/lib/Dialect/Linalg/Transforms/SparseTensorRewriting.cpp
153 ↗(On Diff #445183)

This file is being refactored out of Linalg, see https://reviews.llvm.org/D129910

jpienaar added inline comments.Jul 17 2022, 9:09 AM
mlir/lib/Dialect/Linalg/Transforms/SparseTensorRewriting.cpp
153 ↗(On Diff #445183)

SG, luckily change is minimal, so easy to move (I could rename this independent of accessor prefixing too, but the only reason for review is to make folks aware of the rename and in case there is feedback for better name, unfortunately interfaces end up coupling changes).

nicolasvasilache accepted this revision.Jul 19 2022, 7:49 AM

Thanks much for doing this @jpienaar , this is much better!

This revision is now accepted and ready to land.Jul 19 2022, 7:49 AM
This revision was landed with ongoing or failed builds.Jul 19 2022, 2:43 PM
This revision was automatically updated to reflect the committed changes.