[PATCH] D130506: [Support] Add llvm::compression::{isAvailable,compress,uncompress}

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 25 11:26:40 PDT 2022


MaskRay created this revision.
MaskRay added reviewers: ckissane, dblaikie, leonardchan, jhenderson.
Herald added subscribers: StephenFan, hiraditya, emaste.
Herald added a reviewer: alexander-shaposhnikov.
Herald added a project: All.
MaskRay requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

as high-level API on top of `llvm::compression::{zlib,zstd}::*`.

Move `llvm::DebugCompressionType` from MC to Support. There are 40+ uses in
llvm-project. I am considering renaming it to `llvm::CompressionFormat` (or
possibly under llvm::compression).

See D130458 <https://reviews.llvm.org/D130458> (llvm-objcopy --{,de}compress-debug-sections for zstd) for a use
case.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130506

Files:
  llvm/include/llvm/MC/MCTargetOptions.h
  llvm/include/llvm/Support/Compression.h
  llvm/lib/ObjCopy/ELF/ELFObject.cpp
  llvm/lib/Support/Compression.cpp
  llvm/unittests/Support/CompressionTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130506.447417.patch
Type: text/x-patch
Size: 5877 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220725/67d4568c/attachment.bin>


More information about the llvm-commits mailing list