[all-commits] [llvm/llvm-project] 0a90b7: [flang] Add semantic checks for threadprivate and ...
PeixinQiao via All-commits
all-commits at lists.llvm.org
Wed Jun 1 07:41:34 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0a90b72c432d70aae035727ece4ba80ce820f381
https://github.com/llvm/llvm-project/commit/0a90b72c432d70aae035727ece4ba80ce820f381
Author: PeixinQiao <qiaopeixin at huawei.com>
Date: 2022-06-01 (Wed, 01 Jun 2022)
Changed paths:
M flang/lib/Semantics/check-omp-structure.cpp
A flang/test/Semantics/omp-declare-target05.f90
A flang/test/Semantics/omp-threadprivate05.f90
Log Message:
-----------
[flang] Add semantic checks for threadprivate and declare target directives
This patch supports the following checks:
```
[5.1] 2.21.2 THREADPRIVATE Directive
The threadprivate directive must appear in the declaration section of
a scoping unit in which the common block or variable is declared.
[5.1] 2.14.7 Declare Target Directive
The directive must appear in the declaration section of a scoping unit
in which the common block or variable is declared.
```
Reviewed By: kiranchandramohan, shraiysh, NimishMishra
Differential Revision: https://reviews.llvm.org/D125767
More information about the All-commits
mailing list