[CUDA] Make sure device-side __global__ functions are always visible.
authorArtem Belevich <tra@google.com>
Mon, 2 May 2016 20:30:03 +0000 (20:30 +0000)
committerArtem Belevich <tra@google.com>
Mon, 2 May 2016 20:30:03 +0000 (20:30 +0000)
commitca2b951cbc0a17f4cb31fcef4e607227a3fabef0
treea35d2807c4c39b54dc673bfa81851391a758d6d9
parent7bd8d994978d6404a79b28e04a802d070c45ba16
[CUDA] Make sure device-side __global__ functions are always visible.

__global__ functions are a special case in CUDA.

Even when the symbol would normally not be externally
visible according to C++ rules, they still must be visible
in CUDA GPU object so host-side stub can launch them.

Differential Revision: http://reviews.llvm.org/D19748

llvm-svn: 268299
clang/lib/AST/ASTContext.cpp
clang/test/CodeGenCUDA/ptx-kernels.cu