This patch implements the following semantic check:
A master region may not be closely nested inside a work-sharing, loop, atomic, task, or taskloop region.
Adds a test case and also modifies a couple of existing test cases to include the check.
Paths
| Differential D100228
[flang][OpenMP] Add semantic check for close nesting of `master` regions ClosedPublic Authored by arnamoy10 on Apr 9 2021, 1:27 PM.
Details Summary This patch implements the following semantic check: A master region may not be closely nested inside a work-sharing, loop, atomic, task, or taskloop region. Adds a test case and also modifies a couple of existing test cases to include the check.
Diff Detail
Event Timelinekiranchandramohan added inline comments.
This revision now requires changes to proceed.Apr 10 2021, 3:19 AM kiranchandramohan added inline comments.
This revision now requires changes to proceed.Apr 23 2021, 11:08 AM
Comment Actions Updating the patch to use the recent merged workShareSet (that included tests for combined constructs for worksharing loops).
Comment Actions Removing master construct from the error set.
This revision is now accepted and ready to land.May 7 2021, 2:34 PM Closed by commit rGb766576d38d3: [flang][OpenMP] Add semantic check for close nesting of `master` regions (authored by arnamoy10). · Explain WhyMay 13 2021, 11:58 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 345244 flang/lib/Semantics/check-omp-structure.h
flang/lib/Semantics/check-omp-structure.cpp
flang/test/Semantics/omp-nested-master.f90
flang/test/Semantics/omp-ordered-simd.f90
|
Not for this patch. It will be good to generate these Sets from the OMP.td file.