[llvm] [libsycl] Add device image registration & compatibility check (PR #187528)

Alexey Bader via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 5 11:05:20 PDT 2026


================
@@ -115,7 +115,7 @@ class DeviceImpl {
       static_assert(false && "Info descriptor is not properly supported");
   }
 
-  ol_device_handle_t getOLHandle() { return MOffloadDevice; }
+  ol_device_handle_t getHandle() { return MOffloadDevice; }
----------------
bader wrote:

> it is the only type of handles that we have

This is the context hidden from the code reader. I find `getOLHandle` more readable than `getHandle`.

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


More information about the llvm-commits mailing list