[clang] [llvm] [clang-sycl-linker] Add per-translation-unit device code split mode (PR #196435)

Yury Plyakhin via cfe-commits cfe-commits at lists.llvm.org
Fri May 8 20:39:25 PDT 2026


================
@@ -57,6 +57,11 @@ def opencl_aot_options_EQ : Joined<["--", "-"], "opencl-aot-options=">,
 
 def module_split_mode_EQ : Joined<["--", "-"], "module-split-mode=">,
   Flags<[LinkerOnlyOption]>, MetaVarName<"<mode>">,
-  HelpText<"SYCL device code module split mode. Valid values: 'none' (default) "
-           "emits a single device image; 'kernel' emits one device image per "
-           "kernel function.">;
+  HelpText<"SYCL device code module split mode. Valid values: "
+           "'source' (default) emits one device image per translation unit "
+           "that contains at least one kernel (grouped by the 'sycl-module-id' "
+           "attribute); translation units containing only sycl_external "
----------------
YuriPlyakhin wrote:

39f9343ac0df15b2789075f192c58925cc5d4879

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


More information about the cfe-commits mailing list