================
@@ -826,8 +826,11 @@ wrapDeviceImages(ArrayRef<std::unique_ptr<MemoryBuffer>> 
Buffers,
   case OFK_SYCL: {
     // TODO: fill these options once the Driver supports them.
     offloading::SYCLJITOptions Options;
-    if (Error Err =
-            offloading::wrapSYCLBinaries(M, BuffersToWrap.front(), Options))
+    // -r removes .llvm.offloading from the -o file, but the registration code
+    // refers to the device image, so put the image in .sycl_fatbin instead.
----------------
YuriPlyakhin wrote:

nit
I would remove this comment. it seems unnecessary. I would keep the proper 
comment at wrapSYCLBinaries declaration. that way behavior is documented in a 
single place in the code.

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

Reply via email to