[llvm] Fix compress/decompress in LLVM Offloading API (PR #150064)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 23 00:22:30 PDT 2025
================
@@ -260,11 +299,233 @@ static std::string formatWithCommas(unsigned long long Value) {
}
llvm::Expected<std::unique_ptr<llvm::MemoryBuffer>>
-CompressedOffloadBundle::decompress(llvm::MemoryBufferRef &Input,
+CompressedOffloadBundle::compress(llvm::compression::Params P,
+ const llvm::MemoryBuffer &Input,
+ uint16_t Version, bool Verbose) {
+ if (!llvm::compression::zstd::isAvailable() &&
----------------
jh7370 wrote:
What's with all the `llvm::` qualifiers throughout this function? You've done `using namespace llvm` at the top of the file...
https://github.com/llvm/llvm-project/pull/150064
More information about the llvm-commits
mailing list