This is an archive of the discontinued LLVM Phabricator instance.

[Clang][OpenMP] Add default map type for target enter/exit data
ClosedPublic

Authored by doru1004 on Nov 18 2022, 7:21 AM.

Details

Summary

Starting with OpenMP 5.2 the map type on target enter/exit data can be elided. When the map type is not specified it defaults to to for target enter data and to from for target exit data.

Diff Detail

Event Timeline

doru1004 created this revision.Nov 18 2022, 7:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 18 2022, 7:21 AM
doru1004 requested review of this revision.Nov 18 2022, 7:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 18 2022, 7:21 AM
doru1004 updated this revision to Diff 476467.Nov 18 2022, 7:26 AM
ABataev added inline comments.Nov 18 2022, 9:04 AM
clang/lib/Parse/ParseOpenMP.cpp
4367–4371

Add braces, otherwise the compiler generates a warning

doru1004 updated this revision to Diff 476560.Nov 18 2022, 12:19 PM
doru1004 marked an inline comment as done.
doru1004 added inline comments.
clang/lib/Parse/ParseOpenMP.cpp
4367–4371

Thanks for pointing it out!

doru1004 marked an inline comment as done.Nov 18 2022, 12:20 PM
This revision is now accepted and ready to land.Nov 18 2022, 12:20 PM