]> granicus.if.org Git - clang/commit
[OPENMP] Fix emission of the __kmpc_global_thread_num.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 5 Oct 2018 15:08:53 +0000 (15:08 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 5 Oct 2018 15:08:53 +0000 (15:08 +0000)
commit3dc36a98935e0997f88fe9dba1be30c5f6779f05
tree269d3a048755008312c32bdc2827743490e54d0f
parentb5da797fed4a1f8fcbb7dd82dc4c0540f7e678e1
[OPENMP] Fix emission of the __kmpc_global_thread_num.

Fixed emission of the __kmpc_global_thread_num() so that it is not
messed up with alloca instructions anymore. Plus, fixes emission of the
__kmpc_global_thread_num() functions in the target outlined regions so
that they are not called before runtime is initialized.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@343856 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGOpenMPRuntime.h
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
test/OpenMP/nvptx_target_teams_distribute_parallel_for_generic_mode_codegen.cpp
test/OpenMP/parallel_if_codegen.cpp
test/OpenMP/single_codegen.cpp
test/OpenMP/single_firstprivate_codegen.cpp
test/OpenMP/taskgroup_task_reduction_codegen.cpp
test/OpenMP/taskloop_reduction_codegen.cpp
test/OpenMP/taskloop_simd_reduction_codegen.cpp