]> granicus.if.org Git - clang/commit
[OPENMP][NVPTX] Fix emission of __kmpc_global_thread_num() for non-SPMD
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 5 Oct 2018 15:27:47 +0000 (15:27 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 5 Oct 2018 15:27:47 +0000 (15:27 +0000)
commit64f951572ed7c9847281e982cdc492b992d489c1
tree8a81dbff241ea847bf4952011b76c654e3ad8e8d
parent3dc36a98935e0997f88fe9dba1be30c5f6779f05
[OPENMP][NVPTX] Fix emission of __kmpc_global_thread_num() for non-SPMD
mode.

__kmpc_global_thread_num() should be called before initialization of the
runtime.

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