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

Last change on this file since 6029 was 6029, checked in by xwa163, 13 months ago

Init checkin for bitstream_pdep_kernel

File size: 811 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; }
19private:
20    void generateMultiBlockLogic(const std::unique_ptr<KernelBuilder> & b, llvm::Value * const numOfStrides) final;
21private:
22    const unsigned mNumberOfStream;
23};
24
25}
26
27#endif
Note: See TracBrowser for help on using the repository browser.