Ignore:
Timestamp:
Jun 23, 2016, 8:26:09 PM (3 years ago)
Author:
cameron
Message:

Update u8u16 to use new kernel infrastructure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/p2s_kernel.h

    r5009 r5071  
    66#define P2S_KERNEL_H
    77
     8#include "streamset.h"
     9#include "interface.h"
     10#include "kernel.h"
     11
    812namespace llvm { class Module; }
    913
     
    1216namespace kernel {
    1317
    14 class KernelBuilder;
    1518
    16     void generateP2SKernel(llvm::Module *, IDISA::IDISA_Builder * iBuilder, KernelBuilder * kBuilder);
     19//    void generateP2SKernel(llvm::Module *, IDISA::IDISA_Builder * iBuilder, KernelBuilder * kBuilder);
    1720
    18     void generateP2S_16Kernel(llvm::Module *, IDISA::IDISA_Builder * iBuilder, KernelBuilder * kBuilder);
     21//    void generateP2S_16Kernel(llvm::Module *, IDISA::IDISA_Builder * iBuilder, KernelBuilder * kBuilder);
    1922
    20     void generateP2S_16_withCompressedOutputKernel(llvm::Module *, IDISA::IDISA_Builder * iBuilder, KernelBuilder * kBuilder);
     23//    void generateP2S_16_withCompressedOutputKernel(llvm::Module *, IDISA::IDISA_Builder * iBuilder, KernelBuilder * kBuilder);
     24   
     25   
     26class p2sKernel : public KernelBuilder {
     27public:
     28    p2sKernel(IDISA::IDISA_Builder * iBuilder) :
     29    KernelBuilder(iBuilder, "p2s",
     30                  {StreamSetBinding{StreamSetType(8, 1), "basisBits"}},
     31                  {StreamSetBinding{StreamSetType(1, 8), "byteStream"}},
     32                  {}, {}, {}) {}
     33   
     34    void generateKernel() override;
     35   
     36};
    2137
     38class p2s_16Kernel : public KernelBuilder {
     39public:
     40    p2s_16Kernel(IDISA::IDISA_Builder * iBuilder) :
     41    KernelBuilder(iBuilder, "p2s_16",
     42                  {StreamSetBinding{StreamSetType(16, 1), "basisBits"}},
     43                  {StreamSetBinding{StreamSetType(1, 16), "i16Stream"}},
     44                  {}, {}, {}) {}
     45   
     46    void generateKernel() override;
     47   
     48};
     49
     50   
     51class p2s_16Kernel_withCompressedOutputKernel : public KernelBuilder {
     52public:
     53    p2s_16Kernel_withCompressedOutputKernel(IDISA::IDISA_Builder * iBuilder) :
     54    KernelBuilder(iBuilder, "p2s_16_compress",
     55                  {StreamSetBinding{StreamSetType(16, 1), "basisBits"}, StreamSetBinding{StreamSetType(1, 1), "deletionCounts"}},
     56                  {StreamSetBinding{StreamSetType(1, 16), "i16Stream"}},
     57                  {}, {}, {}) {}
     58       
     59    void generateKernel() override;
     60};
     61   
    2262}
    2363
Note: See TracChangeset for help on using the changeset viewer.