[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)
commitb7f3cba84cfb717e4a95f90c6d2a8ec4b20c1d3f
treee51275009642d5c2c18204ea9739df429980e877
parent5ccd87233fdac5119d50ebfba413c8f4bc484f16
[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.

llvm-svn: 327867
clang/lib/CodeGen/CGOpenMPRuntime.h
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
clang/test/OpenMP/nvptx_teams_codegen.cpp