This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg][transform] PadOp: Add option to generate linalg.copy copy_back op
ClosedPublic

Authored by springerm on Jul 24 2023, 3:07 PM.

Details

Summary

Three different values can be specified:

  • bufferization.copy_tensor (default)
  • linalg.copy
  • none (no copy_back)

Diff Detail

Event Timeline

springerm created this revision.Jul 24 2023, 3:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 24 2023, 3:07 PM
springerm requested review of this revision.Jul 24 2023, 3:07 PM
mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
1682

can we use the non-magic constant name here and below?

bufferization::CopyTensorOp::getOperationName() or similar ?

springerm marked an inline comment as done.Jul 26 2023, 1:29 PM
springerm updated this revision to Diff 544493.Jul 26 2023, 1:29 PM

address comments

nicolasvasilache accepted this revision.Aug 9 2023, 7:22 AM
This revision is now accepted and ready to land.Aug 9 2023, 7:22 AM