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

Alex Duran via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 9 08:28:52 PST 2025


================
@@ -349,7 +350,7 @@ Error olGetPlatformInfoImplDetail(ol_platform_handle_t Platform,
                                   ol_platform_info_t PropName, size_t PropSize,
                                   void *PropValue, size_t *PropSizeRet) {
   InfoWriter Info(PropSize, PropValue, PropSizeRet);
-  bool IsHost = Platform->BackendType == OL_PLATFORM_BACKEND_HOST;
+  bool IsHost = Platform->Plugin == nullptr;
----------------
adurang wrote:

I have to agree with this... what does IsHost really mean?

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


More information about the llvm-commits mailing list