This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg][transform][python] Refactor TileOp mix-in.
ClosedPublic

Authored by ingomueller-net on Sep 4 2023, 1:33 AM.

Details

Summary

This patch simplifies and improves the mix-in of the TileOp. In
particular:

  • Accept all types of sizes (static, dynamic, scalable) in a single argument sizes.
  • Use the existing convenience function to dispatch different types of sizes instead of repeating the implementation in the mix-in.
  • Pass on None values as is of optional arguments to the init function of the super class.
  • Reformat with default indentation width (4 spaces vs 2 spaces).
  • Add a a test for providing scalable sizes.

Diff Detail

Event Timeline

ingomueller-net created this revision.Sep 4 2023, 1:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 4 2023, 1:33 AM
ingomueller-net requested review of this revision.Sep 4 2023, 1:33 AM
ftynse accepted this revision.Sep 4 2023, 1:47 AM
This revision is now accepted and ready to land.Sep 4 2023, 1:47 AM