llvm-project/clang/test/CodeGenCUDASPIRV
Shangwu Yao 31d8dbd1e5 [CUDA/SPIR-V] Force passing aggregate type byval
This patch forces copying aggregate type in kernel arguments by value when
compiling CUDA targeting SPIR-V. The original behavior is not passing by value
when there is any of destructor, copy constructor and move constructor defined
by user. This patch makes the behavior of SPIR-V generated from CUDA follow
the CUDA spec
(https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#global-function-argument-processing),
and matches the NVPTX
implementation (
41958f76d8/clang/lib/CodeGen/TargetInfo.cpp (L7241)).

Differential Revision: https://reviews.llvm.org/D130387
2022-07-22 20:30:15 +00:00
..
copy-aggregate-byval.cu [CUDA/SPIR-V] Force passing aggregate type byval 2022-07-22 20:30:15 +00:00
kernel-argument.cu [Driver][test] Remove unused/obsoleted REQUIRES: clang-driver 2022-04-12 13:29:46 -07:00
kernel-cc.cu Emit OpenCL metadata when targeting SPIR-V 2022-04-05 20:58:32 +00:00