This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Add a structured transform to materialize a tensor.insert_slice via a linalg.copy
ClosedPublic

Authored by nicolasvasilache on Apr 12 2023, 3:51 AM.

Details

Summary

This is useful to materialize copies explicitly before bufferization and
transform them, avoiding the need to rediscover them after bufferization.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2023, 3:51 AM
nicolasvasilache requested review of this revision.Apr 12 2023, 3:51 AM
ftynse accepted this revision.Apr 12 2023, 3:54 AM
ftynse added a subscriber: ftynse.
ftynse added inline comments.
mlir/test/Dialect/Linalg/transform-op-insert-slice-to-copy.mlir
29–33

Nit: can we use transform.any_op instead of pdl here?

65–69

Ditto

This revision is now accepted and ready to land.Apr 12 2023, 3:54 AM
This revision was landed with ongoing or failed builds.Apr 12 2023, 4:05 AM
This revision was automatically updated to reflect the committed changes.