This is an archive of the discontinued LLVM Phabricator instance.

[mlir][bufferization] CloneOp: implement memory side-effects in ODS
ClosedPublic

Authored by maerhart on Aug 8 2023, 6:45 AM.

Diff Detail

Event Timeline

maerhart created this revision.Aug 8 2023, 6:45 AM
Herald added a project: Restricted Project. · View Herald Transcript
maerhart requested review of this revision.Aug 8 2023, 6:45 AM
springerm accepted this revision.Aug 8 2023, 7:12 AM
springerm added inline comments.
mlir/include/mlir/Dialect/Bufferization/IR/BufferizationOps.td
195

Looks good, but can you double check that this is actually working. There was some issue in the transform dialect, where we had to implement getEffects manually and could not annotate the arguments/results like this. I forgot what was the reason. Maybe just dump the memory effects to stdout or make sure that some tests are failing if there are no memory effects on CloneOp.

This revision is now accepted and ready to land.Aug 8 2023, 7:12 AM
maerhart updated this revision to Diff 548488.Aug 9 2023, 12:17 AM

Add a regression test to check the side-effects on bufferization.clone