]> granicus.if.org Git - clang/commit
[CUDA] Let device-side shared variables be initialized with undef
authorYaxun Liu <Yaxun.Liu@amd.com>
Mon, 2 Apr 2018 17:38:24 +0000 (17:38 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Mon, 2 Apr 2018 17:38:24 +0000 (17:38 +0000)
commitb691ac6db363212230e23da9e756c2c5f826c95d
tree07460056e048ff293b817a215aeff927c74e7199
parent925856310ecef30ead7a06e3b44c7ef8855e1b21
[CUDA] Let device-side shared variables be initialized with undef

CUDA shared variable should be initialized with undef.

Patch by Greg Rodgers.
Revised and lit test added by Yaxun Liu.

Differential Revision: https://reviews.llvm.org/D44985

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328994 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDecl.cpp
test/CodeGenCUDA/address-spaces.cu
test/CodeGenCUDA/device-var-init.cu