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

Nick Sarnie via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 4 12:46:04 PST 2026


================
@@ -92,6 +92,19 @@ Currently, only SYCL device code for Intel GPUs has a `code` list: the
 architecture is an IGCA target, e.g. `igca_30r`, and `code` lists its Intel
 GPUs, e.g. `xe-mtl-u`.
 
+## Virtual Architecture Images
+
+The `embed-virtual-arch` string entry in an image's offload binary metadata
+records whether to embed the virtual architecture code (e.g. SPIR-V) alongside
+the code compiled ahead of time: `1` to embed it, `0` to drop it. A missing
+entry means the default for the image's offload kind.
+
+Within a link group, generic images (`arch=generic`, e.g. archive members) are
----------------
sarnex wrote:

thanks, its clear now

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


More information about the cfe-commits mailing list