[llvm] [Offload][L0] Add support for OffloadBinary format in L0 plugin (PR #185404)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 9 14:51:28 PDT 2026


================
@@ -1651,6 +1677,12 @@ int32_t GenericPluginTy::isPluginCompatible(StringRef Image) {
       return HandleError(std::move(Err));
     return *MatchOrErr;
   }
+  case file_magic::offload_binary: {
----------------
jhuber6 wrote:

I wonder if we could just say `SPIR-V` images are 'valid' since it's supposed to be a generic format. Maybe there's some metadtaa I don't know about that would help as well.

We already support ELF and LLVM-IR so I don't know if this is different.

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


More information about the llvm-commits mailing list