]> granicus.if.org Git - clang/commit
[OPENMP, NVPTX] Emit correct thread id.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 19 Mar 2018 17:04:07 +0000 (17:04 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 19 Mar 2018 17:04:07 +0000 (17:04 +0000)
commit15183f0cd211f02406991ed420e9c8711d1c508e
tree8e85587b67016f8c0705202b8a2b06a71985214a
parent3bd89a4b0543a84457046c08b80149b1c8d358f5
[OPENMP, NVPTX] Emit correct thread id.

We emitted fake thread id for the outined function in NVPTX codegen.
Patch adds emission of the real thread id.

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