[all-commits] [llvm/llvm-project] d857db: [Offloading] Add support for compressed OffloadBin...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Mon Sep 14 10:23:28 PDT 2026
Branch: refs/heads/users/jhuber6/compressed-binary
Home: https://github.com/llvm/llvm-project
Commit: d857dbbac386463e820e2071979bca8112103a8a
https://github.com/llvm/llvm-project/commit/d857dbbac386463e820e2071979bca8112103a8a
Author: Joseph Huber <huberjn at outlook.com>
Date: 2026-09-11 (Fri, 11 Sep 2026)
Changed paths:
M llvm/include/llvm/Object/OffloadBinary.h
M llvm/include/llvm/ObjectYAML/OffloadYAML.h
M llvm/lib/Object/OffloadBinary.cpp
M llvm/lib/ObjectYAML/OffloadEmitter.cpp
M llvm/lib/ObjectYAML/OffloadYAML.cpp
A llvm/test/ObjectYAML/Offload/compressed.yaml
M llvm/test/ObjectYAML/Offload/malformed-version.yaml
A llvm/test/tools/llvm-objdump/Offloading/compressed.test
A llvm/test/tools/llvm-offload-binary/compress.test
M llvm/tools/llvm-objdump/OffloadDump.cpp
M llvm/tools/llvm-objdump/OffloadDump.h
M llvm/tools/llvm-objdump/llvm-objdump.cpp
M llvm/tools/llvm-offload-binary/llvm-offload-binary.cpp
M llvm/tools/obj2yaml/offload2yaml.cpp
M llvm/unittests/Object/OffloadingTest.cpp
Log Message:
-----------
[Offloading] Add support for compressed OffloadBinary types
Summary:
Offload binaries are used to store many heterogenous architectures into
a singel offloading blob. These lists can get very large so this PR adds
the option to compress them with the LLVM provided compression
libraries.
The implementation is quite simple, we simply compress all the buffers
after the header into a single compressed blob, then re-construct the
header. Extracting is the reverse.
The biggest change is that the offload binary now **owns** the memory,
whereas before we simply took a reference to it. This is necessary
because the decompression must create new memory compared to what the
user provided. This adds an extra copy internally, but it also
simplifies the V2 additions.
This does not wire up any clang/HIP support, just providing the
functionality.
Commit: 5635b5e8d07954a0a0f9cd9b464c65ef9380dd61
https://github.com/llvm/llvm-project/commit/5635b5e8d07954a0a0f9cd9b464c65ef9380dd61
Author: Joseph Huber <huberjn at outlook.com>
Date: 2026-09-11 (Fri, 11 Sep 2026)
Changed paths:
M llvm/lib/Object/OffloadBinary.cpp
Log Message:
-----------
fix alignment
Commit: 648acda86a106558ece532359efc19c94419383d
https://github.com/llvm/llvm-project/commit/648acda86a106558ece532359efc19c94419383d
Author: Joseph Huber <huberjn at outlook.com>
Date: 2026-09-11 (Fri, 11 Sep 2026)
Changed paths:
M llvm/tools/llvm-offload-binary/llvm-offload-binary.cpp
Log Message:
-----------
unnecessary
Commit: 7895606ab9ed5622d7f01b5f850061316c220e25
https://github.com/llvm/llvm-project/commit/7895606ab9ed5622d7f01b5f850061316c220e25
Author: Joseph Huber <huberjn at outlook.com>
Date: 2026-09-11 (Fri, 11 Sep 2026)
Changed paths:
M llvm/include/llvm/Object/OffloadBinary.h
M llvm/lib/Object/OffloadBinary.cpp
A llvm/test/ObjectYAML/Offload/malformed-compressed-offset.yaml
M llvm/test/tools/llvm-offload-binary/compress.test
M llvm/tools/llvm-offload-binary/llvm-offload-binary.cpp
M llvm/tools/obj2yaml/offload2yaml.cpp
M llvm/unittests/Object/OffloadingTest.cpp
Log Message:
-----------
comments
Commit: f2a282a6d7488501b7ab96d424915d119d48a3fe
https://github.com/llvm/llvm-project/commit/f2a282a6d7488501b7ab96d424915d119d48a3fe
Author: Joseph Huber <huberjn at outlook.com>
Date: 2026-09-11 (Fri, 11 Sep 2026)
Changed paths:
M llvm/lib/Object/OffloadBinary.cpp
A llvm/test/ObjectYAML/Offload/compressed-zlib.yaml
M llvm/tools/obj2yaml/offload2yaml.cpp
M llvm/unittests/Object/OffloadingTest.cpp
Log Message:
-----------
zlib add
Commit: 62bfafe1e338937ec11fc224bd0193515eddbdd5
https://github.com/llvm/llvm-project/commit/62bfafe1e338937ec11fc224bd0193515eddbdd5
Author: Joseph Huber <huberjn at outlook.com>
Date: 2026-09-11 (Fri, 11 Sep 2026)
Changed paths:
M llvm/tools/obj2yaml/offload2yaml.cpp
Log Message:
-----------
Fix yaml memory corruption
Commit: 877c4a9fc84a9da850f4bfe6a7a7c052aaa09ab1
https://github.com/llvm/llvm-project/commit/877c4a9fc84a9da850f4bfe6a7a7c052aaa09ab1
Author: Joseph Huber <huberjn at outlook.com>
Date: 2026-09-11 (Fri, 11 Sep 2026)
Changed paths:
M llvm/lib/Object/OffloadBinary.cpp
M llvm/tools/llvm-offload-binary/llvm-offload-binary.cpp
Log Message:
-----------
Small validation tweak
Commit: 9e1b2f9ceb4610a55eb9e34ec2e4b5cb3554ef4a
https://github.com/llvm/llvm-project/commit/9e1b2f9ceb4610a55eb9e34ec2e4b5cb3554ef4a
Author: Joseph Huber <huberjn at outlook.com>
Date: 2026-09-14 (Mon, 14 Sep 2026)
Changed paths:
M llvm/unittests/Object/OffloadingTest.cpp
Log Message:
-----------
Better concat test
Compare: https://github.com/llvm/llvm-project/compare/ed11abe1c4fe...9e1b2f9ceb46
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list