[llvm] [Offload] Implement 'olIsValidBinary' in offload and clean up (PR #159658)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 19 07:23:30 PDT 2025


================
@@ -899,6 +899,15 @@ Error olCreateProgram_impl(ol_device_handle_t Device, const void *ProgData,
   return Error::success();
 }
 
+Error olIsValidBinary_impl(ol_device_handle_t Device, const void *ProgData,
+                           size_t ProgDataSize, bool *IsValid) {
+  // Make a copy of the program binary in case it is released by the caller.
----------------
jhuber6 wrote:

Oh I forgot to delete that comment, it's not even true anymore from where it was copied.

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


More information about the llvm-commits mailing list