Added support for following semantic check for MAP clause.
- A list item cannot appear in both a map clause and a data-sharing attribute clause on the same target construct.
Paths
| Differential D158807
[Flang] [OpenMP] [Semantics] Add missing semantic check for MAP clause. ClosedPublic Authored by raghavendhra on Aug 24 2023, 8:11 PM.
Details Summary Added support for following semantic check for MAP clause.
Diff Detail
Event Timelineraghavendhra added reviewers: kiranktp, skatrak, domada, TIFitis, dpalermo, NimishMishra, kavitha-natarajan, agozillon, jsjodin, RogerV-AMD, shraiysh.
Comment Actions Thanks for your review comments Nimish!
Comment Actions LGTM, with a couple of nits (noted below). Please wait for some more time in case anyone has any comments.
This revision is now accepted and ready to land.Aug 28 2023, 7:48 AM Comment Actions Please make sure that there are testcases for all the checks that have checkExclusiveLists. Not approving because I am not super familiar with this part of the code, but LGTM.
Comment Actions Addressed review comments. Changed MAP clause semantic check to run through permutation and This revision was landed with ongoing or failed builds.Sep 7 2023, 1:42 PM Closed by commit rG6d1c183c6f8b: [Flang] [OpenMP] [Semantics] Add missing semantic check for MAP clause. (authored by raghavendhra). · Explain Why This revision was automatically updated to reflect the committed changes. Comment Actions Looks like this patch triggers a new failure https://lab.llvm.org/buildbot/#/builders/175/builds/35729 Comment Actions
Thanks for catching this Valentin. Sorry about this build failure and it has been fixed now with https://github.com/llvm/llvm-project/commit/872aa457ba90a90d2005293eebf1775b76a78b59
Revision Contents
Diff 554760 flang/include/flang/Semantics/symbol.h
flang/lib/Semantics/resolve-directives.cpp
flang/lib/Semantics/symbol.cpp
flang/test/Semantics/OpenMP/firstprivate01.f90
flang/test/Semantics/OpenMP/symbol08.f90
flang/test/Semantics/OpenMP/target01.f90
flang/test/Semantics/OpenMP/target02.f90
|
Question: are we sure that the default ompFlag value should be OmpMapToFrom? Because I see a re-assignment in case Type::Tofrom:.