This is an archive of the discontinued LLVM Phabricator instance.

[flang][openacc] Relax required clauses on acc data as portability warning
ClosedPublic

Authored by clementval on Aug 28 2023, 2:37 PM.

Details

Summary

Some compilers accept !$acc data without any clauses. For portability
reason, this patch relaxes the strict error to a simple portability warning.

Diff Detail

Event Timeline

clementval created this revision.Aug 28 2023, 2:37 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 28 2023, 2:37 PM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Aug 28 2023, 2:37 PM
vzakhari accepted this revision.Aug 28 2023, 6:04 PM

Looks good to me. Thank you!

This revision is now accepted and ready to land.Aug 28 2023, 6:04 PM
razvanlupusoru accepted this revision.Aug 29 2023, 12:01 PM

Looks good to me. I thought about whether generating empty acc.data vs nothing is better - I am comfortable with this approach. Thank you!