[llvm] [Offload] Implement the remaining initial Offload API (PR #122106)

Callum Fare via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 8 09:18:01 PDT 2025


================
@@ -104,3 +104,15 @@ def : Function {
     Return<"OL_ERRC_INVALID_DEVICE">
   ];
 }
+
+def : Function {
+  let name = "olGetHostDevice";
----------------
callumfare wrote:

That would work - is there any benefit to using a callback that like that versus unconditionally returning the whole list and letting the user do the filtering?

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


More information about the llvm-commits mailing list