llvm-project/clang/test/CodeGenCUDA
Jingyue Wu 4f7b9eb217 Fix addrspace when emitting constructors of static local variables
Summary:
Due to CUDA's implicit address space casting, the type of a static local
variable may be more specific (i.e. with address space qualifiers) than
the type expected by the constructor. Emit an addrspacecast in that
case.

Test Plan: Clang used to crash on the added test.

Reviewers: nlewycky, pcc, eliben, rsmith

Reviewed By: eliben, rsmith

Subscribers: llvm-commits

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

llvm-svn: 233208
2015-03-25 20:06:28 +00:00
..
Inputs Move all CUDA testing inputs to Inputs/ subdirectory inside the tests. 2014-04-28 22:21:28 +00:00
address-spaces.cu Fix addrspace when emitting constructors of static local variables 2015-03-25 20:06:28 +00:00
device-stub.cu Move all CUDA testing inputs to Inputs/ subdirectory inside the tests. 2014-04-28 22:21:28 +00:00
filter-decl.cu Move all CUDA testing inputs to Inputs/ subdirectory inside the tests. 2014-04-28 22:21:28 +00:00
host-device-calls-host.cu CUDA: Add option to allow host device functions to call host functions 2015-02-24 21:45:33 +00:00
kernel-call.cu Move all CUDA testing inputs to Inputs/ subdirectory inside the tests. 2014-04-28 22:21:28 +00:00
launch-bounds.cu IR: Make metadata typeless in assembly, clang side 2014-12-15 19:10:08 +00:00
llvm-used.cu When generating llvm.used, we may need an addrspacecast instead of a bitcast. 2015-02-02 21:05:49 +00:00
ptx-kernels.cu IR: Make metadata typeless in assembly, clang side 2014-12-15 19:10:08 +00:00