[OPENMP][NVPTX] Fix globalization of the mapped array sections.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 6 Dec 2018 15:35:13 +0000 (15:35 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 6 Dec 2018 15:35:13 +0000 (15:35 +0000)
commit6393eb7ec65de8a53d50a59491ca2a20eb235870
tree6095f9fef6d3611cf97f460e944554599486c8f8
parent5442f3e549c8d32e7615445404b68b3d2773b6d0
[OPENMP][NVPTX] Fix globalization of the mapped array sections.

If the array section is based on pointer and this sections is mapped in
target region + then it is used in the inner parallel region, it also
must be globalized as the pointer itself is passed by value, not by
reference.

llvm-svn: 348492
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
clang/test/OpenMP/nvptx_target_codegen.cpp