aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorPeixin-Qiao <qiaopeixin@huawei.com>2022-01-06 20:00:16 +0800
committerPeixin-Qiao <qiaopeixin@huawei.com>2022-01-06 20:00:16 +0800
commit8eb74626fa454d33edc1eb86f0c9ce3a006c7dfd (patch)
tree854468508c3eefa8f8985ff815aec692524133c0 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent86d113a8b8aec1092d51115a8ff3e7e6682d1931 (diff)
downloadllvm-8eb74626fa454d33edc1eb86f0c9ce3a006c7dfd.zip
llvm-8eb74626fa454d33edc1eb86f0c9ce3a006c7dfd.tar.gz
llvm-8eb74626fa454d33edc1eb86f0c9ce3a006c7dfd.tar.bz2
[flang][OpenMP] Add some semantic checks for threadprivate and declare target directives
This supports the following checks for THREADPRIVATE Directive: ``` [5.1] 2.21.2 THREADPRIVATE Directive A threadprivate variable must not appear in any clause except the copyin, copyprivate, schedule, num_threads, thread_limit, and if clauses. ``` This supports the following checks for DECLARE TARGET Directive: ``` [5.1] 2.14.7 Declare Target Directive A threadprivate variable cannot appear in the directive. ``` Besides, procedure name and the entity with PARAMETER attribute cannot be in the threadprivate directive. The main program name and module name cannot be in the threadprivate directive and declare target directive. There is no clear description or restriction about the entity with PARAMETER attribute in OpenMP 5.1 Specification, and a warning is given. Reviewed By: kiranchandramohan, shraiysh, NimishMishra Differential Revision: https://reviews.llvm.org/D114941
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions