This is an archive of the discontinued LLVM Phabricator instance.

[Clang][OpenMP] Add enter clause to declare target for OpenMP 5.2
ClosedPublic

Authored by doru1004 on Nov 16 2022, 3:44 PM.

Details

Summary

Starting with OpenMP 5.2 the to clause on declare target has been replaced with the enter clause.

Diff Detail

Event Timeline

doru1004 created this revision.Nov 16 2022, 3:44 PM
Herald added a project: Restricted Project. · View Herald Transcript
doru1004 requested review of this revision.Nov 16 2022, 3:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 16 2022, 3:44 PM
ABataev added inline comments.
clang/lib/Parse/ParseOpenMP.cpp
1811

Do you really need .str() ?

1811

Check for enter clause before 5.2?

doru1004 updated this revision to Diff 476130.Nov 17 2022, 7:40 AM
doru1004 added a reviewer: ABataev.
doru1004 marked 2 inline comments as done.
doru1004 added inline comments.
clang/lib/Parse/ParseOpenMP.cpp
1811

Good catch, thank you!

doru1004 marked an inline comment as done.Nov 17 2022, 7:50 AM
This revision is now accepted and ready to land.Nov 17 2022, 7:53 AM
doru1004 updated this revision to Diff 476143.Nov 17 2022, 8:26 AM