source: icGREP/icgrep-devel/icgrep/kernels/lz4_bytestream_decoder.h @ 5787

Last change on this file since 5787 was 5755, checked in by nmedfort, 20 months ago

Bug fixes and simplified MultiBlockKernel? logic

File size: 750 bytes
RevLine 
[5422]1/*
2 *  Copyright (c) 2017 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
6
7#ifndef LZ4_BYTESTREAM_DECODER_H
8#define LZ4_BYTESTREAM_DECODER_H
9
10#include "kernel.h"
11
12namespace IDISA { class IDISA_Builder; }
13
14namespace kernel {
15
[5755]16class LZ4ByteStreamDecoderKernel final : public MultiBlockKernel {
[5422]17public:
[5436]18    LZ4ByteStreamDecoderKernel(const std::unique_ptr<kernel::KernelBuilder> & iBuilder, size_t bufferSize);
[5422]19protected:
[5755]20    llvm::Value * generateMultiBlockLogic(const std::unique_ptr<kernel::KernelBuilder> & iBuilder, llvm::Value * numOfStrides) override;
[5422]21private:
22    size_t mBufferSize;
23};
24
25}
26
27#endif  // LZ4_BYTESTREAM_DECODER_H
Note: See TracBrowser for help on using the repository browser.