[clang] [llvm] [Clang][SYCL][CUDA] Add --[no-]offload-embed-virtual-arch (PR #242407)

Nikita Kornev via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 3 04:50:02 PST 2026


================
@@ -1872,6 +1879,13 @@ The `alpha.cplusplus.UseAfterLifetimeEnd` checker was renamed to `alpha.core.Use
   `--offload-arch` and `--no-offload-arch` must now name an Intel GPU or CPU, an
   IGCA target or `generic`. Any other value, e.g. a misspelled `xe-pcv`, is an
   error rather than a device job for a device that does not exist.
+- Added `--[no-]offload-embed-virtual-arch`. With
+  `--no-offload-embed-virtual-arch`, a SYCL device image compiled ahead of time
+  for Intel GPUs does not keep the SPIR-V for just-in-time compilation. To
+  apply it to one IGCA target only, use `-Xarch_<IGCA target>`, e.g.
+  `-Xarch_igca_40r --no-offload-embed-virtual-arch`; it then applies to all
+  Intel GPUs of that IGCA target. Without the SPIR-V, a SYCL program can't set
+  specialization constants to non-default values.
----------------
KornevNikita wrote:

Same here.

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


More information about the cfe-commits mailing list