]> granicus.if.org Git - clang/commit
[OPENMP50]Support for declare variant directive for NVPTX target.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 10 Oct 2019 17:28:10 +0000 (17:28 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 10 Oct 2019 17:28:10 +0000 (17:28 +0000)
commitb04fa26eaf685c7be5e8bec4fd29dee02b85ea02
tree004fefd971319795b87f379dc1c319cd0ef99d0f
parentd4eeec7cfe1aea662f4f75bef90de475ade856ca
[OPENMP50]Support for declare variant directive for NVPTX target.

NVPTX does not support global aliases. Instead, we have to copy the full
body of the variant function for the original function.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374387 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGOpenMPRuntime.h
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
lib/CodeGen/CGOpenMPRuntimeNVPTX.h
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenModule.h
test/OpenMP/nvptx_declare_variant_implementation_vendor_codegen.cpp [new file with mode: 0644]