]> granicus.if.org Git - clang/commit
[OpenMP] Update target codegen for NVPTX device.
authorArpith Chacko Jacob <acjacob@us.ibm.com>
Wed, 4 Jan 2017 18:44:50 +0000 (18:44 +0000)
committerArpith Chacko Jacob <acjacob@us.ibm.com>
Wed, 4 Jan 2017 18:44:50 +0000 (18:44 +0000)
commit54598be1320676e75ffecf233a0944ba871fed3c
tree8bdd899ff45e9bc2e0f4e3dd7c733678e17246e8
parent75198e124f4a38b0542603ab5023cfdaabe83d2d
[OpenMP] Update target codegen for NVPTX device.

This patch includes updates for codegen of the target region for the NVPTX
device. It moves initializers from the compiler to the runtime and updates
the worker loop to assume parallel work is retrieved from the runtime. A
subsequent patch will update the codegen to retrieve the parallel work using
calls to the runtime. It includes the removal of the inline attribute
for the worker loop and disabling debug info in it.

This allows codegen for a target directive and serial execution on the
NVPTX device.

Reviewers: ABataev
Differential Revision: https://reviews.llvm.org/D28125

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