[llvm] Fix compress/decompress in LLVM Offloading API (PR #150064)

Jacob Lambert via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 6 11:56:56 PDT 2025


================
@@ -259,87 +291,278 @@ static std::string formatWithCommas(unsigned long long Value) {
   return Num;
 }
 
-llvm::Expected<std::unique_ptr<llvm::MemoryBuffer>>
-CompressedOffloadBundle::decompress(llvm::MemoryBufferRef &Input,
-                                    bool Verbose) {
-  StringRef Blob = Input.getBuffer();
+Expected<std::unique_ptr<MemoryBuffer>>
+CompressedOffloadBundle::compress(compression::Params P,
----------------
lamb-j wrote:

@david-salinas can you remind me why we need compress here?

I'd assume the tools would only need decompress (as compression is done by the clang-offload-bundler)

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


More information about the llvm-commits mailing list