LLVM: include/llvm/Support/Compression.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13#ifndef LLVM_SUPPORT_COMPRESSION_H

14#define LLVM_SUPPORT_COMPRESSION_H

15

19

20namespace llvm {

23

24

25

26

27

33

36

41

43

47

49 size_t &UncompressedSize);

50

53 size_t UncompressedSize);

54

55}

56

58

63

65

69

71 size_t &UncompressedSize);

72

75 size_t UncompressedSize);

76

77}

78

83

85 switch (Type) {

92 }

94}

95

111

112

113

114

116

117

118

121

122

124 uint8_t *Output, size_t UncompressedSize);

127 size_t UncompressedSize);

130 size_t UncompressedSize);

131

132}

133

134}

135

136#endif

The Input class is used to parse a yaml document into in-memory structs and vectors.

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.

Definition Compression.h:35

LLVM_ABI void compress(ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &CompressedBuffer, int Level=DefaultCompression)

LLVM_ABI Error decompress(ArrayRef< uint8_t > Input, uint8_t *Output, size_t &UncompressedSize)

LLVM_ABI bool isAvailable()

constexpr int NoCompression

Definition Compression.h:37

constexpr int BestSizeCompression

Definition Compression.h:40

constexpr int DefaultCompression

Definition Compression.h:39

constexpr int BestSpeedCompression

Definition Compression.h:38

Definition Compression.h:57

LLVM_ABI Error decompress(ArrayRef< uint8_t > Input, uint8_t *Output, size_t &UncompressedSize)

constexpr int NoCompression

Definition Compression.h:59

LLVM_ABI bool isAvailable()

LLVM_ABI void compress(ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &CompressedBuffer, int Level=DefaultCompression, bool EnableLdm=false)

constexpr int BestSpeedCompression

Definition Compression.h:60

constexpr int DefaultCompression

Definition Compression.h:61

constexpr int BestSizeCompression

Definition Compression.h:62

Definition Compression.h:34

LLVM_ABI const char * getReasonIfUnsupported(Format F)

LLVM_ABI Error decompress(DebugCompressionType T, ArrayRef< uint8_t > Input, uint8_t *Output, size_t UncompressedSize)

Format

Definition Compression.h:79

@ Zstd

Definition Compression.h:81

@ Zlib

Definition Compression.h:80

Format formatFor(DebugCompressionType Type)

Definition Compression.h:84

LLVM_ABI void compress(Params P, ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &Output)

This is an optimization pass for GlobalISel generic memory operations.

DebugCompressionType

Definition Compression.h:28

@ Zstd

Zstandard.

Definition Compression.h:31

@ None

No compression.

Definition Compression.h:29

@ Zlib

zlib

Definition Compression.h:30

Definition Compression.h:96

Params(DebugCompressionType Type)

Definition Compression.h:102

int level

Definition Compression.h:105

constexpr Params(Format F)

Definition Compression.h:97

bool zstdEnableLdm

Definition Compression.h:106

Format format

Definition Compression.h:104

constexpr Params(Format F, int L, bool Ldm=false)

Definition Compression.h:100