Add Semantic check for Flang OpenMP 4.5 - 2.15.3.2 and 2.15.3.3 shared and private...
authorYashaswini <yhegde@gmail.com>
Sun, 22 Nov 2020 06:32:00 +0000 (12:02 +0530)
committerYashaswini <yhegde@gmail.com>
Sun, 22 Nov 2020 07:20:17 +0000 (12:50 +0530)
commit3ee08e38194ac05e42f8c5a633dc1aa8e41139f4
tree52f348d083e00a52441f2efe836aa351f0933f8d
parent9d985082ad0bcb34dd1b9b146abe73907a7cf72b
Add Semantic check for Flang OpenMP 4.5 - 2.15.3.2 and 2.15.3.3 shared and private clause

Semantic check to restrict the appearance of a variable that is part of another variable
 (as an array or structure element) in a PRIVATE or SHARED clause.

Test Cases:

omp-parallel-private01.f90
omp-parallel-private02.f90
omp-parallel-private03.f90
omp-parallel-private04.f90
omp-parallel-shared01.f90
omp-parallel-shared02.f90
omp-parallel-shared03.f90
omp-parallel-shared04.f90

Reviewed by: Kiran Chandramohan @kiranchandramohan , Valentin Clement @clementval

Differential Revision: https://reviews.llvm.org/D89395
flang/lib/Semantics/check-omp-structure.cpp
flang/lib/Semantics/check-omp-structure.h
flang/test/Semantics/omp-parallel-private01.f90 [new file with mode: 0644]
flang/test/Semantics/omp-parallel-private02.f90 [new file with mode: 0644]
flang/test/Semantics/omp-parallel-private03.f90 [new file with mode: 0644]
flang/test/Semantics/omp-parallel-private04.f90 [new file with mode: 0644]
flang/test/Semantics/omp-parallel-shared01.f90 [new file with mode: 0644]
flang/test/Semantics/omp-parallel-shared02.f90 [new file with mode: 0644]
flang/test/Semantics/omp-parallel-shared03.f90 [new file with mode: 0644]
flang/test/Semantics/omp-parallel-shared04.f90 [new file with mode: 0644]