[llvm-branch-commits] [llvm] [Offloading] Add support for compressed OffloadBinary types (PR #222774)
Yaxun Liu via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Sep 11 07:49:02 PDT 2026
================
@@ -0,0 +1,18 @@
+# REQUIRES: zstd
+# RUN: yaml2obj %s | not obj2yaml 2>&1 | FileCheck %s
+
+!Offload
+Compression: zstd
+EntriesOffset: 48
+Members:
+ - ImageKind: IMG_Cubin
+ OffloadKind: OFK_HIP
+ Flags: 0
+ String:
+ - Key: "triple"
+ Value: "amdgcn-amd-amdhsa"
+ - Key: "arch"
+ Value: "gfx90a"
+ Content: "deadbeef"
+
+# CHECK: Error reading file: <stdin>: The end of the file was unexpectedly encountered
----------------
yxsamliu wrote:
This test currently fails with `unknown compression format`, so it does not reach the new `EntriesOffset` validation. Could we test `OffloadBinary::create` directly, or validate the offset before inspecting the payload?
https://github.com/llvm/llvm-project/pull/222774
More information about the llvm-branch-commits
mailing list