[Flang][OpenMP] Add semantic checks for OpenMP clauses.
authorPraveen <praveen@compilertree.com>
Sat, 30 Jan 2021 16:45:09 +0000 (22:15 +0530)
committerPraveen <praveen@compilertree.com>
Mon, 1 Mar 2021 14:24:41 +0000 (19:54 +0530)
commit75ef78ffee7f7d6efa45af19f24fba7616290300
tree95f1e2185836fbe0185041be2729878c813aa0b8
parent48ca5d3398be7b9925d76d72bde0e4bc19c34245
[Flang][OpenMP] Add semantic checks for OpenMP clauses.

Semantic checks for the following OpenMP 4.5 clauses.

1. 2.15.4.2 - Copyprivate clause
2. 2.15.3.4 - Firstprivate clause
3. 2.15.3.5 - Lastprivate clause

Add related test cases and resolve test cases marked as XFAIL.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D91920
14 files changed:
flang/include/flang/Semantics/symbol.h
flang/lib/Semantics/check-directive-structure.h
flang/lib/Semantics/check-omp-structure.cpp
flang/lib/Semantics/check-omp-structure.h
flang/lib/Semantics/resolve-directives.cpp
flang/test/Semantics/omp-clause-validity01.f90
flang/test/Semantics/omp-copyprivate01.f90 [new file with mode: 0644]
flang/test/Semantics/omp-copyprivate02.f90 [new file with mode: 0644]
flang/test/Semantics/omp-copyprivate03.f90 [new file with mode: 0644]
flang/test/Semantics/omp-firstprivate01.f90 [new file with mode: 0644]
flang/test/Semantics/omp-lastprivate01.f90 [new file with mode: 0644]
flang/test/Semantics/omp-lastprivate02.f90 [new file with mode: 0644]
flang/test/Semantics/omp-single01.f90
flang/test/Semantics/omp-single02.f90