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

Srividya Sundaram via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 23 10:49:33 PST 2026


================
@@ -9768,6 +9770,13 @@ void OffloadPackager::ConstructJob(Compilation &C, const JobAction &JA,
         "kind=" + Kind.str(),
     };
 
+    // Add one "code=" per Intel GPU requested for this IGCA target.
+    // llvm-offload-binary joins them, so the image gets
+    // "code=xe-mtl-h,xe-mtl-u".
+    if (OffloadAction->getOffloadingDeviceKind() == Action::OFK_SYCL)
----------------
srividya-sundaram wrote:

Turns out this check wasn't needed, since `getIGCADevices` is only filled for `SYCL`, so I removed it in https://github.com/llvm/llvm-project/pull/239010/changes/b041a8d6b7b0aae3a1763fa43f3cd2e333d3fff4. 
The TODO is in `getOffloadArchs` instead.

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


More information about the cfe-commits mailing list