summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorShangwu Yao <shangwuyao@gmail.com>2022-07-22 19:22:08 +0000
committerShangwu Yao <shangwuyao@gmail.com>2022-07-22 20:30:15 +0000
commit31d8dbd1e5b4ee0fd04bfeb3a64d8f9f33260905 (patch)
tree29462fdc2beecedfb1a9ce19a6dd6d116e372afd /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent2f469839817ac673803eaa6a22e51c56e82c7c12 (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