[PATCH] D120396: [flang] Support export/import OpenMP Threadprivate Flag

Peixin Qiao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 18 08:55:52 PDT 2022


peixin added a comment.

> But maybe we can get to that when we handle the next declarative directive.

I checked other declarative directives when I implemented this code. The declare target works on both variables and procedure names. The declare reduction works on assignment expression and interface/procedure name. The declare simd works on procedure names. Also, there are some clauses or other infos might should be exported such as initializer in declare reduction. So, each declarative directive will require special semantic analysis and mod file export. This patch can only support variables info export, which is enough for threadprivate directive. Let's add some code or refactor this code when we get to other declarative directives.

@schweitz Is this patch ok to you?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120396/new/

https://reviews.llvm.org/D120396



More information about the llvm-commits mailing list