diff options
| author | Shangwu Yao <shangwuyao@gmail.com> | 2022-07-22 19:22:08 +0000 |
|---|---|---|
| committer | Shangwu Yao <shangwuyao@gmail.com> | 2022-07-22 20:30:15 +0000 |
| commit | 31d8dbd1e5b4ee0fd04bfeb3a64d8f9f33260905 (patch) | |
| tree | 29462fdc2beecedfb1a9ce19a6dd6d116e372afd /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 2f469839817ac673803eaa6a22e51c56e82c7c12 (diff) | |
[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 (
https://github.com/llvm/llvm-project/blob/41958f76d8a2c47484fa176cba1de565cfe84de7/clang/lib/CodeGen/TargetInfo.cpp#L7241).
Differential Revision: https://reviews.llvm.org/D130387
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
