]> granicus.if.org Git - clang/commit
[OPENMP][NVPTX]Call get __kmpc_global_thread_num in worker after
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 29 Nov 2018 21:21:32 +0000 (21:21 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 29 Nov 2018 21:21:32 +0000 (21:21 +0000)
commit7b0baf3769febc656d3337330c739ab6913f65fb
tree2ae610fed39c4ed83340ce4c66faabc9334dd35c
parente1fea8ec605dd8710ffd680c51610f211da4b50c
[OPENMP][NVPTX]Call get __kmpc_global_thread_num in worker after
initialization.

Function __kmpc_global_thread_num  should be called only after
initialization, not earlier.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347919 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
test/OpenMP/nvptx_target_codegen.cpp