source: icGREP/icgrep-devel/icgrep/kernels/p2s_kernel.h @ 5805

Last change on this file since 5805 was 5755, checked in by nmedfort, 17 months ago

Bug fixes and simplified MultiBlockKernel? logic

File size: 1.7 KB
Line 
1/*
2 *  Copyright (c) 2016 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 */
5#ifndef P2S_KERNEL_H
6#define P2S_KERNEL_H
7
8#include "kernel.h"  // for KernelBuilder
9namespace IDISA { class IDISA_Builder; }
10
11namespace kernel {
12
13   
14class P2SKernel final : public BlockOrientedKernel {
15public:
16    P2SKernel(const std::unique_ptr<kernel::KernelBuilder> & b);
17    bool isCachable() const override { return true; }
18    bool hasSignature() const override { return false; }
19private:
20    void generateDoBlockMethod(const std::unique_ptr<kernel::KernelBuilder> & b) override;
21};
22
23class P2SKernelWithCompressedOutput final : public BlockOrientedKernel {
24public:
25    P2SKernelWithCompressedOutput(const std::unique_ptr<kernel::KernelBuilder> & b);
26    bool isCachable() const override { return true; }
27    bool hasSignature() const override { return false; }
28private:
29    void generateDoBlockMethod(const std::unique_ptr<kernel::KernelBuilder> & b) override;
30};
31
32class P2S16Kernel final : public BlockOrientedKernel {
33public:
34    P2S16Kernel(const std::unique_ptr<kernel::KernelBuilder> & b);
35    bool isCachable() const override { return true; }
36    bool hasSignature() const override { return false; }
37private:
38    void generateDoBlockMethod(const std::unique_ptr<kernel::KernelBuilder> & b) override;
39};
40   
41class P2S16KernelWithCompressedOutput final : public BlockOrientedKernel {
42public:
43    P2S16KernelWithCompressedOutput(const std::unique_ptr<kernel::KernelBuilder> & b);
44    bool isCachable() const override { return true; }
45    bool hasSignature() const override { return false; }
46private:
47    void generateDoBlockMethod(const std::unique_ptr<kernel::KernelBuilder> & b) override;
48};
49   
50}
51
52#endif
Note: See TracBrowser for help on using the repository browser.