This is an archive of the discontinued LLVM Phabricator instance.

[mlir][openacc] Switch host/device clauses to data operand operations
ClosedPublic

Authored by clementval on May 4 2023, 2:45 PM.

Details

Summary

Introduce acc.update_host and acc.update_device as data
operands operation to be used by the acc.update op.

Diff Detail

Event Timeline

clementval created this revision.May 4 2023, 2:45 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 4 2023, 2:45 PM
clementval requested review of this revision.May 4 2023, 2:45 PM
jeanPerier accepted this revision.May 5 2023, 5:39 AM

Looks great

This revision is now accepted and ready to land.May 5 2023, 5:39 AM

Looks great to me - glad to see this representation normalized too :)
Just one suggestion - I find the current names ambiguous without the word "update"

mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
87–89

Can we please rename these to:
OpenACC_UpdateHostClause : I64EnumAttrCase<"acc_update_host", 17>;
OpenACC_UpdateSelfClause : I64EnumAttrCase<"acc_update_self", 17>;
OpenACC_UpdateDeviceClause : I64EnumAttrCase<"acc_update_device", 17>;

clementval added inline comments.May 5 2023, 9:02 AM
mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
87–89

I'll update that.

clementval updated this revision to Diff 519896.May 5 2023, 9:24 AM

Rename enums

razvanlupusoru accepted this revision.May 5 2023, 9:30 AM