[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
Showing
- lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp 129 additions, 139 deletionslib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
- lib/CodeGen/CGOpenMPRuntimeNVPTX.h 24 additions, 23 deletionslib/CodeGen/CGOpenMPRuntimeNVPTX.h
- test/OpenMP/nvptx_target_codegen.cpp 193 additions, 161 deletionstest/OpenMP/nvptx_target_codegen.cpp
Loading
Please register or sign in to comment