================
@@ -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".
+  using ImageID = std::pair<OffloadFile::TargetID, StringRef>;
----------------
YuriPlyakhin wrote:

@srividya-sundaram , I think we should make `code` to be part of 
`OffloadFile::TargetID`.

https://github.com/llvm/llvm-project/pull/239010
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to