[clang] [llvm] [clang-sycl-linker] Add per-kernel device code splitting (PR #195362)

Nick Sarnie via cfe-commits cfe-commits at lists.llvm.org
Tue May 5 07:47:32 PDT 2026


================
@@ -54,3 +54,9 @@ def ocloc_options_EQ : Joined<["--", "-"], "ocloc-options=">,
 def opencl_aot_options_EQ : Joined<["--", "-"], "opencl-aot-options=">,
   Flags<[LinkerOnlyOption]>,
   HelpText<"Options passed to opencl-aot for Intel CPU AOT compilation">;
+
+def sycl_module_split_mode_EQ : Joined<["--", "-"], "sycl-module-split-mode=">,
----------------
sarnex wrote:

nit: i dont think we need `sycl` in the opt name, it's already an arg to `clang-sycl-linker`, `--module-split-mode` seems fine to me

https://github.com/llvm/llvm-project/pull/195362


More information about the cfe-commits mailing list