source: icGREP/icgrep-devel/icgrep/kernels/bitstream_pdep_kernel.h @ 6135

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

Init checkin for lz4_grep count-only pipeline with multiplexing

File size: 814 bytes
Line 
1/*
2 *  Copyright (c) 2017 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 */
5#ifndef BITSTREAM_PDEP_KERNEL_H
6#define BITSTREAM_PDEP_KERNEL_H
7
8#include <kernels/kernel.h>
9#include <llvm/IR/Value.h>
10#include <string>
11
12namespace kernel {
13
14class BitStreamPDEPKernel final : public MultiBlockKernel {
15public:
16    BitStreamPDEPKernel(const std::unique_ptr<kernel::KernelBuilder> & b, const unsigned numberOfStream = 8, std::string name = "BitStreamPDEPKernel");
17    bool isCachable() const override { return true; }
18    bool hasSignature() const override { return false; }
19
20protected:
21    void generateMultiBlockLogic(const std::unique_ptr<KernelBuilder> & b, llvm::Value * const numOfStrides) final;
22private:
23    const unsigned mNumberOfStream;
24};
25
26}
27
28#endif
Note: See TracBrowser for help on using the repository browser.