forked from OSchip/llvm-project
![]() 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 (
|
||
---|---|---|
.. | ||
copy-aggregate-byval.cu | ||
kernel-argument.cu | ||
kernel-cc.cu |