[PATCH] D120396: [flang] Support export/import OpenMP Threadprivate Flag
Peixin Qiao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 23 01:29:40 PST 2022
peixin added a comment.
Currently, only OpenMP Threadprivate Flag is resolved in semantic analysis stage. https://github.com/llvm/llvm-project/blob/c1b9672534cdc798f2a7ba6b7b6be85dea0d8a5a/flang/lib/Semantics/resolve-directives.cpp#L483-L484 https://github.com/llvm/llvm-project/blob/c1b9672534cdc798f2a7ba6b7b6be85dea0d8a5a/flang/lib/Semantics/resolve-directives.cpp#L213
What can be in the clause of the declarative directive is case-by-case. For OpenMP Threadprivate directive, the module name, procedure name cannot be in the clause. If a threadprivate directive that specifies a common block name appears in one program unit, then such a directive must also appear in every other program unit that contains a COMMON statement that specifies the same name. So, no need to export common block for Threadprivate directive.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120396/new/
https://reviews.llvm.org/D120396
More information about the llvm-commits
mailing list