]> granicus.if.org Git - clang/commit
[OPENMP] Fix PR38710: static functions are not emitted as implicitly
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 30 Aug 2018 18:56:11 +0000 (18:56 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 30 Aug 2018 18:56:11 +0000 (18:56 +0000)
commitc029fb7612730e20a746b6cd9c9535f2adecbf85
treebc874043399fa79c341c52d83c76b6c8f2b5cf2b
parent914b70323824c83ad9867d5d3ce4ec5f2b1231e5
[OPENMP] Fix PR38710: static functions are not emitted as implicitly
'declare target'.

All the functions, referenced in implicit|explicit target regions must
be emitted during code emission for the device.

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