]> granicus.if.org Git - clang/commit
[OPENMP][NVPTX] Support memory coalescing for globalized variables.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 9 Oct 2018 14:49:00 +0000 (14:49 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 9 Oct 2018 14:49:00 +0000 (14:49 +0000)
commit255eaa6faa1dda6783e6f3ec182a5ac776fd41c5
tree50bd383841b4e401fe78c16b2962a94b3c53e387
parentbcb29651f5a7ba287eeb266355e265ded2d57ae4
[OPENMP][NVPTX] Support memory coalescing for globalized variables.

Added support for memory coalescing for better performance for
globalized variables. From now on all the globalized variables are
represented as arrays of 32 elements and each thread accesses these
elements using `tid & 31` as index.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344049 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
lib/CodeGen/CGOpenMPRuntimeNVPTX.h
test/OpenMP/declare_target_codegen_globalization.cpp
test/OpenMP/nvptx_data_sharing.cpp
test/OpenMP/nvptx_distribute_parallel_generic_mode_codegen.cpp
test/OpenMP/nvptx_parallel_codegen.cpp
test/OpenMP/nvptx_target_codegen.cpp
test/OpenMP/nvptx_teams_codegen.cpp
test/OpenMP/nvptx_teams_reduction_codegen.cpp