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

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

lz4_grep: Init checkin for utf8 character class multiplexing

File size: 1.2 KB
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}
24
25std::vector<parabix::StreamSetBuffer *>
26LZ4GrepBitStreamGenerator::decompressBitStreams(parabix::StreamSetBuffer *compressedByteStream,
27                                                std::vector<parabix::StreamSetBuffer *> compressedBitStreams) {
28    return this->convertCompressedBitsStreamWithBitStreamAioApproach(compressedByteStream, compressedBitStreams);
29}
Note: See TracBrowser for help on using the repository browser.