[OPENMP][NVPTX]Emit shared memory buffer for reduction as 128 bytes
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 18 Dec 2018 21:01:42 +0000 (21:01 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 18 Dec 2018 21:01:42 +0000 (21:01 +0000)
commit6a1b06bcd4826f2de62b975535297d66da150b30
tree0ccc6973d50c11c67de9b5e68b3f64248b6d2aa9
parentdeb54f1b24d72ace50c858787760325ed8f4cde0
[OPENMP][NVPTX]Emit shared memory buffer for reduction as 128 bytes
buffer.

Seems to me, nvlink has a bug with the proper support of the weakly
linked symbols. It does not allow to define several shared memory buffer
with the different sizes even with the weak linkage. Instead we always
use 128 bytes buffer to prevent nvlink from the error message emission.

llvm-svn: 349540
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
clang/test/OpenMP/nvptx_data_sharing.cpp
clang/test/OpenMP/nvptx_distribute_parallel_generic_mode_codegen.cpp
clang/test/OpenMP/nvptx_parallel_codegen.cpp
clang/test/OpenMP/nvptx_parallel_for_codegen.cpp
clang/test/OpenMP/nvptx_target_codegen.cpp
clang/test/OpenMP/nvptx_target_teams_distribute_codegen.cpp
clang/test/OpenMP/nvptx_target_teams_distribute_parallel_for_codegen.cpp
clang/test/OpenMP/nvptx_target_teams_distribute_parallel_for_simd_codegen.cpp
clang/test/OpenMP/nvptx_teams_codegen.cpp
clang/test/OpenMP/nvptx_teams_reduction_codegen.cpp