Ignore:
Timestamp:
Jul 23, 2018, 4:56:33 AM (11 months ago)
Author:
xwa163
Message:
  1. More experiment on lz4 grep
  2. Improve performance of lzparabix grep
File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/lz4/aio/lz4_bytestream_aio.h

    r6111 r6132  
    99    class LZ4ByteStreamAioKernel : public LZ4SequentialAioBaseKernel {
    1010    public:
    11         LZ4ByteStreamAioKernel(const std::unique_ptr<kernel::KernelBuilder> &b, unsigned blockSize = 4 * 1024 * 1024);
     11        LZ4ByteStreamAioKernel(const std::unique_ptr<kernel::KernelBuilder> &b, bool copyOtherByteStream = false, unsigned blockSize = 4 * 1024 * 1024);
     12
    1213
    1314    protected:
    1415        virtual void doLiteralCopy(const std::unique_ptr<KernelBuilder> &b, llvm::Value *literalStart,
    15                                    llvm::Value *literalLength) override;
     16                                   llvm::Value *literalLength, llvm::Value* blockStart) override;
    1617        virtual void doMatchCopy(const std::unique_ptr<KernelBuilder> &b, llvm::Value *matchOffset,
    1718                                 llvm::Value *matchLength) override;
    1819        virtual void setProducedOutputItemCount(const std::unique_ptr<KernelBuilder> &b, llvm::Value* produced) override;
     20
     21        virtual void initializationMethod(const std::unique_ptr<KernelBuilder> &b) override;
     22        virtual void prepareProcessBlock(const std::unique_ptr<KernelBuilder> &b, llvm::Value* blockStart, llvm::Value* blockEnd) override;
     23        virtual void beforeTermination(const std::unique_ptr<KernelBuilder> &b) override;
     24
     25    private:
     26        inline std::string getCopyByteStreamName();
     27        bool mCopyOtherByteStream;
     28
    1929    };
    2030
Note: See TracChangeset for help on using the changeset viewer.