This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Slightly adjust DestinationStyleOpInterface.
ClosedPublic

Authored by akuegel on Sep 29 2022, 3:29 AM.

Details

Summary

Rename some interface methods to be consistent with the new accessor names.
This is a preparation for adding a ReduceOp, which then will implement
getIteratorTypes() and getOutputs() instead of iterator_types() and outputs().

Diff Detail

Event Timeline

akuegel created this revision.Sep 29 2022, 3:29 AM
akuegel requested review of this revision.Sep 29 2022, 3:29 AM

@nicolasvasilache I have extracted this change from https://reviews.llvm.org/D134731 as it is a potentially breaking change for downstream users.
Seems safer to have that in a separate patch.
More cleanup for this interface needs to be done in the future, but @pifon2a is already working on it, so I would prefer to keep this change limited to what we need for ReduceOp.

pifon2a accepted this revision.Sep 29 2022, 3:52 AM

Thank you, Adrian!

This revision is now accepted and ready to land.Sep 29 2022, 3:52 AM

@nicolasvasilache I have extracted this change from https://reviews.llvm.org/D134731 as it is a potentially breaking change for downstream users.
Seems safer to have that in a separate patch.
More cleanup for this interface needs to be done in the future, but @pifon2a is already working on it, so I would prefer to keep this change limited to what we need for ReduceOp.

Sounds great to me, thanks for improving this for all of us!