[llvm] [OFFLOAD] Add support for host offloading device (PR #171010)

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 9 11:30:43 PST 2025


================
@@ -131,3 +131,12 @@ def olGetDeviceInfoSize : Function {
     Return<"OL_ERRC_INVALID_DEVICE">
   ];
 }
+
+def olGetHostDevice : Function {
+  let desc = "Returns the host device.";
+  let details = [];
+  let params = [
+    Param<"ol_device_handle_t*", "Device", "handle of the device instance", PARAM_OUT>,
+  ];
+  let returns = [];
----------------
fineg74 wrote:

Don't we always have a host ?

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


More information about the llvm-commits mailing list