]> granicus.if.org Git - clang/commit
[OpenMP] Add support for the 'private pointer' flag to signal variables captured...
authorSamuel Antao <sfantao@us.ibm.com>
Thu, 26 May 2016 16:53:38 +0000 (16:53 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Thu, 26 May 2016 16:53:38 +0000 (16:53 +0000)
commit666dfeba374e6b79f68a5ae1007c92aea184a0f5
tree8c713106e6d2b70e0b643faeeae1106cf8d62851
parent42720cb0acda06dd20caf809a0c4d931ad249dcf
[OpenMP] Add support for the 'private pointer' flag to signal variables captured in target regions and used in first-private clauses.

Summary: If a variable is implicitly mapped (doesn't show in a map clause), the runtime library has to be informed if the corresponding capture shows up in first-private clause, so that the storage previously allocated in the device is used. This patch adds the support for that.

Reviewers: hfinkel, carlo.bertolli, arpith-jacob, kkwli0, ABataev

Subscribers: caomhin, cfe-commits

Differential Revision: http://reviews.llvm.org/D20112

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@270870 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntime.cpp
test/OpenMP/target_firstprivate_codegen.cpp
test/OpenMP/target_map_codegen.cpp