]> granicus.if.org Git - clang/commit
[OpenMP] Update target codegen for NVPTX device.
authorArpith Chacko Jacob <acjacob@us.ibm.com>
Thu, 5 Jan 2017 15:24:05 +0000 (15:24 +0000)
committerArpith Chacko Jacob <acjacob@us.ibm.com>
Thu, 5 Jan 2017 15:24:05 +0000 (15:24 +0000)
commitd407903caa09a280004a43f523734a6408b9fff1
tree774a8861e9cf0cb385a390ded78a91c75f4aa66d
parentec86be006eacb4237bc2715aac8b062a29fd285b
[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@291121 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
lib/CodeGen/CGOpenMPRuntimeNVPTX.h
test/OpenMP/nvptx_target_codegen.cpp