[PATCH] D120396: [flang] Support export/import OpenMP Threadprivate Flag
Eric Schweitz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 23 08:19:20 PST 2022
schweitz added inline comments.
================
Comment at: flang/lib/Semantics/mod-file.cpp:328
+ if (symbol.test(Symbol::Flag::OmpThreadprivate) &&
+ !FindCommonBlockContaining(symbol)) {
+ decls_ << "!$omp threadprivate(" << symbol.name() << ")\n";
----------------
What are the expectations of having a variable that is both in a COMMON block and flagged as OMP thread private? (This suggests COMMON will have priority over thread private.)
I think you should have a test case below to check that combination of conditions and ensure against regressions, etc.
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