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

Last change on this file since 5497 was 5464, checked in by nmedfort, 2 years ago

Restructuring work for the Driver classes. Start of work to eliminate the memory leaks with the ExecutionEngine?. Replaced custom AlignedMalloc? with backend call to std::aligned_malloc. Salvaged some work on DistributionPass? for reevaluation.

File size: 1.8 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> & iBuilder);
17    bool isCachable() const override { return true; }
18    bool hasSignature() const override { return false; }
19private:
20    void generateDoBlockMethod(const std::unique_ptr<kernel::KernelBuilder> & iBuilder) override;
21};
22
23class P2SKernelWithCompressedOutput final : public BlockOrientedKernel {
24public:
25    P2SKernelWithCompressedOutput(const std::unique_ptr<kernel::KernelBuilder> & iBuilder);
26    bool isCachable() const override { return true; }
27    bool hasSignature() const override { return false; }
28private:
29    void generateDoBlockMethod(const std::unique_ptr<kernel::KernelBuilder> & iBuilder) override;
30};
31
32class P2S16Kernel final : public BlockOrientedKernel {
33public:
34    P2S16Kernel(const std::unique_ptr<kernel::KernelBuilder> & iBuilder);
35    bool isCachable() const override { return true; }
36    bool hasSignature() const override { return false; }
37private:
38    void generateDoBlockMethod(const std::unique_ptr<kernel::KernelBuilder> & iBuilder) override;
39};
40   
41class P2S16KernelWithCompressedOutput final : public BlockOrientedKernel {
42public:
43    P2S16KernelWithCompressedOutput(const std::unique_ptr<kernel::KernelBuilder> & iBuilder);
44    bool isCachable() const override { return true; }
45    bool hasSignature() const override { return false; }
46private:
47    void generateDoBlockMethod(const std::unique_ptr<kernel::KernelBuilder> & iBuilder) override;
48};
49   
50}
51
52#endif
Note: See TracBrowser for help on using the repository browser.