[clang] [Clang][OpenCL][AMDGPU] Allow a kernel to call another kernel (PR #115821)
via cfe-commits
cfe-commits at lists.llvm.org
Tue May 27 06:01:29 PDT 2025
BukeBeyond wrote:
This commit breaks a critical optimization for us. We have a project that compiles most of the C++26 language features to Vulkan SPIRV. One optimization we rely on is the elimination of global variables. Generating a second stub copy of the kernel breaks this optimization.
While we disabled the code generation from this commit, a better and more general solution may be to introduce a Clang flag like -fno-opencl-kernel-stub. This may allow other ambitious projects like ours to pursue modern C++ on Vulkan. We will soon open-source our project, which we envision will also benefit the AMD community.
https://github.com/llvm/llvm-project/pull/115821
More information about the cfe-commits
mailing list