[PATCH] D106335: [flang][OpenMP] Add semantic check for teams nesting
Peixin Qiao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 19 19:52:14 PDT 2021
peixin created this revision.
peixin added a project: LLVM.
Herald added subscribers: guansong, yaxunl.
Herald added a reviewer: sscalpone.
peixin requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, sstefan1.
This patch implements the following check for TEAMS construct:
OpenMP Version 5.0 Target construct restriction: A teams region can
only be strictly nested within the implicit parallel region or a target
region. If a teams construct is nested within a target construct, that
target construct must contain no statements, declarations or directives
outside of the teams construct.
Also add one test case for the check.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D106335
Files:
flang/lib/Semantics/check-directive-structure.h
flang/lib/Semantics/check-omp-structure.cpp
flang/lib/Semantics/check-omp-structure.h
flang/test/Semantics/omp-teams01.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106335.359991.patch
Type: text/x-patch
Size: 7480 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210720/8d8115e4/attachment.bin>
More information about the llvm-commits
mailing list