[PATCH] D90210: [flang] [OpenMP 4.5] Add semantic checks for OpenMP Private clause
Praveen G via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 26 22:59:03 PDT 2020
praveen created this revision.
praveen added reviewers: kiranchandramohan, DavidTruby, richard.barton.arm, clementval, kiranktp, SouraVX.
praveen added projects: Flang, OpenMP.
Herald added subscribers: llvm-commits, jdoerfert, guansong, yaxunl.
Herald added a project: LLVM.
praveen requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.
Add the semantic checks for the OpenMP 4.5 - 2.15.3.3 Private clause.
- Pointers with the INTENT(IN) attribute may not appear in a private clause.
- Variables that appear in namelist statements may not appear in a private clause. (This check holds for firstprivate and lastprivate clauses too)
Test cases : omp-private01.f90 , omp-private02.f90 , omp-private03.f90
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90210
Files:
flang/lib/Semantics/check-omp-structure.cpp
flang/lib/Semantics/check-omp-structure.h
flang/lib/Semantics/resolve-directives.cpp
flang/test/Semantics/omp-private01.f90
flang/test/Semantics/omp-private02.f90
flang/test/Semantics/omp-private03.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90210.300896.patch
Type: text/x-patch
Size: 7186 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201027/bbd1576b/attachment.bin>
More information about the llvm-commits
mailing list