[PATCH] D109685: [flang][OpenMP] Add semantic check for threadprivate directive
Peixin Qiao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 13 06:22:22 PDT 2021
peixin created this revision.
peixin added reviewers: kiranchandramohan, clementval, richard.barton.arm, sameeranjoshi, praveen, SouraVX, arnamoy10, bryanpkc, Chuanfeng.
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 THREADPRIVATE construct:
A variable that is part of another variable (as an array, structure
element or type parameter inquiry) cannot appear in a threadprivate
directive.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109685
Files:
flang/lib/Semantics/check-omp-structure.cpp
flang/lib/Semantics/check-omp-structure.h
flang/test/Semantics/omp-allocate03.f90
flang/test/Semantics/omp-parallel-private01.f90
flang/test/Semantics/omp-parallel-private02.f90
flang/test/Semantics/omp-parallel-private03.f90
flang/test/Semantics/omp-parallel-private04.f90
flang/test/Semantics/omp-parallel-shared01.f90
flang/test/Semantics/omp-parallel-shared02.f90
flang/test/Semantics/omp-parallel-shared03.f90
flang/test/Semantics/omp-parallel-shared04.f90
flang/test/Semantics/omp-threadprivate01.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109685.372228.patch
Type: text/x-patch
Size: 12164 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210913/c34f1417/attachment.bin>
More information about the llvm-commits
mailing list