]> granicus.if.org Git - clang/commit
[OpenMP] Initialize data sharing stack for SPMD case
authorGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Fri, 13 Jul 2018 16:18:24 +0000 (16:18 +0000)
committerGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Fri, 13 Jul 2018 16:18:24 +0000 (16:18 +0000)
commit2fc21c4f2b507670706de3a256d48b39cd12fdc3
treec253abba7dc30473fabebd64edf6b72d5223a3a6
parent74701fe1cf2b869b46435d5eebd4a01aefb1f056
[OpenMP] Initialize data sharing stack for SPMD case

Summary: In the SPMD case, we need to initialize the data sharing and globalization infrastructure. This covers the case when an SPMD region calls a function in a different compilation unit.

Reviewers: ABataev, carlo.bertolli, caomhin

Reviewed By: ABataev

Subscribers: Hahnfeld, jholewinski, guansong, cfe-commits

Differential Revision: https://reviews.llvm.org/D49188

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337015 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
test/OpenMP/nvptx_data_sharing.cpp
test/OpenMP/nvptx_target_parallel_codegen.cpp
test/OpenMP/nvptx_target_parallel_proc_bind_codegen.cpp
test/OpenMP/nvptx_target_parallel_reduction_codegen.cpp
test/OpenMP/nvptx_target_teams_codegen.cpp
test/OpenMP/nvptx_target_teams_distribute_parallel_for_codegen.cpp
test/OpenMP/nvptx_target_teams_distribute_parallel_for_simd_codegen.cpp