[PATCH] D100228: [flang][OpenMP] Add semantic check for close nesting of `master` regions
Arnamoy B via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 9 13:27:37 PDT 2021
arnamoy10 created this revision.
arnamoy10 added reviewers: kiranchandramohan, kiranktp, SouraVX, bryanpkc, clementval, AMDChirag.
arnamoy10 added projects: Flang, OpenMP.
Herald added subscribers: jdoerfert, jfb, guansong, yaxunl.
Herald added a reviewer: sscalpone.
arnamoy10 requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D100228
Files:
flang/lib/Semantics/check-omp-structure.cpp
flang/lib/Semantics/check-omp-structure.h
flang/test/Semantics/omp-clause-validity01.f90
flang/test/Semantics/omp-flush02.f90
flang/test/Semantics/omp-nested-master.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100228.336555.patch
Type: text/x-patch
Size: 7375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210409/b2cbb77d/attachment.bin>
More information about the llvm-commits
mailing list