LLVM  16.0.0git
Classes | Namespaces | Enumerations | Functions | Variables
Compression.h File Reference
#include "llvm/ADT/ArrayRef.h"
#include "llvm/Support/DataTypes.h"
Include dependency graph for Compression.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  llvm::SmallVectorImpl< T >
 This class consists of common code factored out of the SmallVector class to reduce code duplication based on the SmallVector 'N' template parameter. More...
 
struct  llvm::compression::Params
 

Namespaces

 llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
 llvm::compression
 
 llvm::compression::zlib
 
 llvm::compression::zstd
 

Enumerations

enum  llvm::DebugCompressionType { llvm::DebugCompressionType::None, llvm::DebugCompressionType::Zlib, llvm::DebugCompressionType::Zstd }
 
enum  llvm::compression::Format { llvm::compression::Format::Zlib, llvm::compression::Format::Zstd }
 

Functions

bool llvm::compression::zlib::isAvailable ()
 
void llvm::compression::zlib::compress (ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &CompressedBuffer, int Level=DefaultCompression)
 
Error llvm::compression::zlib::decompress (ArrayRef< uint8_t > Input, uint8_t *Output, size_t &UncompressedSize)
 
Error llvm::compression::zlib::decompress (ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &Output, size_t UncompressedSize)
 
bool llvm::compression::zstd::isAvailable ()
 
void llvm::compression::zstd::compress (ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &CompressedBuffer, int Level=DefaultCompression)
 
Error llvm::compression::zstd::decompress (ArrayRef< uint8_t > Input, uint8_t *Output, size_t &UncompressedSize)
 
Error llvm::compression::zstd::decompress (ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &Output, size_t UncompressedSize)
 
Format llvm::compression::formatFor (DebugCompressionType Type)
 
const char * llvm::compression::getReasonIfUnsupported (Format F)
 
void llvm::compression::compress (Params P, ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &Output)
 
Error llvm::compression::decompress (DebugCompressionType T, ArrayRef< uint8_t > Input, uint8_t *Output, size_t UncompressedSize)
 
Error llvm::compression::decompress (Format F, ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &Output, size_t UncompressedSize)
 
Error llvm::compression::decompress (DebugCompressionType T, ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &Output, size_t UncompressedSize)
 

Variables

constexpr int llvm::compression::zlib::NoCompression = 0
 
constexpr int llvm::compression::zlib::BestSpeedCompression = 1
 
constexpr int llvm::compression::zlib::DefaultCompression = 6
 
constexpr int llvm::compression::zlib::BestSizeCompression = 9
 
constexpr int llvm::compression::zstd::NoCompression = -5
 
constexpr int llvm::compression::zstd::BestSpeedCompression = 1
 
constexpr int llvm::compression::zstd::DefaultCompression = 5
 
constexpr int llvm::compression::zstd::BestSizeCompression = 12