source: icGREP/icgrep-devel/icgrep/lz4/grep/lz4_grep_bitstream_generator.cpp @ 6143

Last change on this file since 6143 was 6143, checked in by xwa163, 10 months ago

lz4_grep: some bug fixing and refactor

File size: 905 bytes
Line 
1
2
3#include "lz4_grep_bitstream_generator.h"
4
5
6namespace re { class CC; }
7
8using namespace llvm;
9using namespace parabix;
10using namespace kernel;
11using namespace grep;
12
13parabix::StreamSetBuffer* LZ4GrepBitStreamGenerator::generateUncompressedBitStreams() {
14    StreamSetBuffer *compressedByteStream = nullptr, *compressedBasisBits = nullptr;
15    std::tie(compressedByteStream, compressedBasisBits) = this->loadByteStreamAndBitStream();
16    return this->bitStreamDecompression(compressedByteStream, compressedBasisBits);
17}
18
19parabix::StreamSetBuffer *LZ4GrepBitStreamGenerator::decompressBitStream(parabix::StreamSetBuffer *compressedByteStream,
20                                                                         parabix::StreamSetBuffer *compressedBitStream) {
21    auto ret = this->convertCompressedBitsStreamWithBitStreamAioApproach(compressedByteStream, {compressedBitStream});
22    return ret[0];
23}
Note: See TracBrowser for help on using the repository browser.