|
LLVM 22.0.0git
|
Namespaces | |
| namespace | zlib |
| namespace | zstd |
Classes | |
| struct | Params |
Enumerations | |
| enum class | Format { Zlib , Zstd } |
Functions | |
| Format | formatFor (DebugCompressionType Type) |
| LLVM_ABI const char * | getReasonIfUnsupported (Format F) |
| LLVM_ABI void | compress (Params P, ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &Output) |
| LLVM_ABI Error | decompress (DebugCompressionType T, ArrayRef< uint8_t > Input, uint8_t *Output, size_t UncompressedSize) |
| LLVM_ABI Error | decompress (Format F, ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &Output, size_t UncompressedSize) |
| LLVM_ABI Error | decompress (DebugCompressionType T, ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &Output, size_t UncompressedSize) |
|
strong |
| Enumerator | |
|---|---|
| Zlib | |
| Zstd | |
Definition at line 79 of file Compression.h.
| void llvm::compression::compress | ( | Params | P, |
| ArrayRef< uint8_t > | Input, | ||
| SmallVectorImpl< uint8_t > & | Output ) |
Definition at line 46 of file Compression.cpp.
References llvm::compression::zlib::compress(), llvm::compression::zstd::compress(), P, Zlib, and Zstd.
Referenced by llvm::object::CompressedOffloadBundle::compress(), and llvm::objcopy::elf::CompressedSection::CompressedSection().
| Error llvm::compression::decompress | ( | DebugCompressionType | T, |
| ArrayRef< uint8_t > | Input, | ||
| SmallVectorImpl< uint8_t > & | Output, | ||
| size_t | UncompressedSize ) |
Definition at line 81 of file Compression.cpp.
References decompress(), formatFor(), and T.
| Error llvm::compression::decompress | ( | DebugCompressionType | T, |
| ArrayRef< uint8_t > | Input, | ||
| uint8_t * | Output, | ||
| size_t | UncompressedSize ) |
Definition at line 58 of file Compression.cpp.
References llvm::compression::zlib::decompress(), llvm::compression::zstd::decompress(), formatFor(), llvm_unreachable, T, Zlib, and Zstd.
Referenced by decompress(), llvm::object::CompressedOffloadBundle::decompress(), llvm::object::Decompressor::decompress(), and llvm::objcopy::elf::ELFSectionWriter< ELFT >::visit().
| Error llvm::compression::decompress | ( | compression::Format | F, |
| ArrayRef< uint8_t > | Input, | ||
| SmallVectorImpl< uint8_t > & | Output, | ||
| size_t | UncompressedSize ) |
Definition at line 69 of file Compression.cpp.
References llvm::compression::zlib::decompress(), llvm::compression::zstd::decompress(), F, llvm_unreachable, Zlib, and Zstd.
|
inline |
Definition at line 84 of file Compression.h.
References llvm_unreachable, llvm::None, Zlib, llvm::Zlib, Zstd, and llvm::Zstd.
Referenced by decompress(), decompress(), llvm::compression::Params::Params(), and llvm::objcopy::elf::ELFSectionWriter< ELFT >::visit().
| const char * llvm::compression::getReasonIfUnsupported | ( | compression::Format | F | ) |
Definition at line 30 of file Compression.cpp.
References F, llvm::compression::zlib::isAvailable(), llvm::compression::zstd::isAvailable(), llvm_unreachable, Zlib, and Zstd.
Referenced by llvm::objcopy::elf::ELFSectionWriter< ELFT >::visit().