[clang] [llvm] [Clang][SYCL] Compile device code once per IGCA target (PR #239010)

Yury Plyakhin via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 12 18:10:33 PST 2026


================
@@ -1444,16 +1550,25 @@ getDeviceInput(const ArgList &Args) {
                              B.getBinary()->getArch().count(':');
                     });
 
+  // A SYCL image can list Intel GPUs in "code", e.g. "code=xe-mtl-h,xe-mtl-u".
+  // Images with different lists are linked separately, so the key of an image
+  // is its target and its "code".
----------------
YuriPlyakhin wrote:

In my opinion, this should not be SYCL-specific.

```suggestion
  // An image can list real devices in "code", e.g. "code=xe-mtl-h,xe-mtl-u" for Intel GPUs.
  // Images with different lists are linked separately, so the key of an image
  // is its target and its "code".
```

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


More information about the cfe-commits mailing list