13#ifndef LLVM_SUPPORT_COMPRESSION_H
14#define LLVM_SUPPORT_COMPRESSION_H
20template <
typename T>
class SmallVectorImpl;
33namespace compression {
48 size_t &UncompressedSize);
51 size_t UncompressedSize);
69 size_t &UncompressedSize);
72 size_t UncompressedSize);
96 : zstd::DefaultCompression) {}
121 uint8_t *Output,
size_t UncompressedSize);
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Lightweight error class with error context and mandatory checking.
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
The instances of the Type class are immutable: once they are created, they are never changed.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
void compress(ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &CompressedBuffer, int Level=DefaultCompression)
Error decompress(ArrayRef< uint8_t > Input, uint8_t *Output, size_t &UncompressedSize)
constexpr int NoCompression
constexpr int BestSizeCompression
constexpr int DefaultCompression
constexpr int BestSpeedCompression
Error decompress(ArrayRef< uint8_t > Input, uint8_t *Output, size_t &UncompressedSize)
constexpr int NoCompression
void compress(ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &CompressedBuffer, int Level=DefaultCompression, bool EnableLdm=false)
constexpr int BestSpeedCompression
constexpr int DefaultCompression
constexpr int BestSizeCompression
const char * getReasonIfUnsupported(Format F)
Error decompress(DebugCompressionType T, ArrayRef< uint8_t > Input, uint8_t *Output, size_t UncompressedSize)
Format formatFor(DebugCompressionType Type)
void compress(Params P, ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &Output)
This is an optimization pass for GlobalISel generic memory operations.
Params(DebugCompressionType Type)
constexpr Params(Format F)
constexpr Params(Format F, int L, bool Ldm=false)