Lines Matching full:zlib

21 #include <zlib.h>
32 case compression::Format::Zlib: in getReasonIfUnsupported()
33 if (zlib::isAvailable()) in getReasonIfUnsupported()
35 return "LLVM was not built with LLVM_ENABLE_ZLIB or did not find zlib at " in getReasonIfUnsupported()
49 case compression::Format::Zlib: in compress()
50 zlib::compress(Input, Output, P.level); in compress()
61 case compression::Format::Zlib: in decompress()
62 return zlib::decompress(Input, Output, UncompressedSize); in decompress()
73 case compression::Format::Zlib: in decompress()
74 return zlib::decompress(Input, Output, UncompressedSize); in decompress()
92 return "zlib error: Z_MEM_ERROR"; in convertZlibCodeToString()
94 return "zlib error: Z_BUF_ERROR"; in convertZlibCodeToString()
96 return "zlib error: Z_STREAM_ERROR"; in convertZlibCodeToString()
98 return "zlib error: Z_DATA_ERROR"; in convertZlibCodeToString()
101 llvm_unreachable("unknown or unexpected zlib status code"); in convertZlibCodeToString()
105 bool zlib::isAvailable() { return true; } in isAvailable()
107 void zlib::compress(ArrayRef<uint8_t> Input, in compress()
116 // Tell MemorySanitizer that zlib output buffer is fully initialized. in compress()
117 // This avoids a false report when running LLVM with uninstrumented ZLib. in compress()
123 Error zlib::decompress(ArrayRef<uint8_t> Input, uint8_t *Output, in decompress()
127 // Tell MemorySanitizer that zlib output buffer is fully initialized. in decompress()
128 // This avoids a false report when running LLVM with uninstrumented ZLib. in decompress()
135 Error zlib::decompress(ArrayRef<uint8_t> Input, in decompress()
139 Error E = zlib::decompress(Input, Output.data(), UncompressedSize); in decompress()
146 bool zlib::isAvailable() { return false; } in isAvailable()
147 void zlib::compress(ArrayRef<uint8_t> Input, in compress()
149 llvm_unreachable("zlib::compress is unavailable"); in compress()
151 Error zlib::decompress(ArrayRef<uint8_t> Input, uint8_t *UncompressedBuffer, in decompress()
153 llvm_unreachable("zlib::decompress is unavailable"); in decompress()
155 Error zlib::decompress(ArrayRef<uint8_t> Input, in decompress()
158 llvm_unreachable("zlib::decompress is unavailable"); in decompress()
210 // This avoids a false report when running LLVM with uninstrumented ZLib. in decompress()