-
- Downloads
[OpenMP] Add support for the 'private pointer' flag to signal variables...
[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
Showing
- lib/CodeGen/CGOpenMPRuntime.cpp 117 additions, 71 deletionslib/CodeGen/CGOpenMPRuntime.cpp
- test/OpenMP/target_firstprivate_codegen.cpp 4 additions, 4 deletionstest/OpenMP/target_firstprivate_codegen.cpp
- test/OpenMP/target_map_codegen.cpp 99 additions, 3 deletionstest/OpenMP/target_map_codegen.cpp
Loading
Please register or sign in to comment