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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits