Ignore:
Timestamp:
Jan 16, 2017, 9:55:26 AM (3 years ago)
Author:
cameron
Message:

Move responsibility for ProducedItemCount? into doSegment unless overridden

File:
1 edited

Legend:

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

    r5260 r5261  
    1919class P2SKernel : public KernelBuilder {
    2020public:
    21     P2SKernel(IDISA::IDISA_Builder * iBuilder) :
    22     KernelBuilder(iBuilder, "p2s",
    23                   {Binding{iBuilder->getStreamSetTy(8, 1), "basisBits"}},
    24                   {Binding{iBuilder->getStreamSetTy(1, 8), "byteStream"}},
    25                   {}, {}, {}) {}
     21    P2SKernel(IDISA::IDISA_Builder * iBuilder);
    2622   
    2723private:
     
    3228class P2SKernelWithCompressedOutput : public KernelBuilder {
    3329public:
    34     P2SKernelWithCompressedOutput(IDISA::IDISA_Builder * iBuilder) :
    35     KernelBuilder(iBuilder, "p2s_compress",
    36                   {Binding{iBuilder->getStreamSetTy(8, 1), "basisBits"}, Binding{iBuilder->getStreamSetTy(1, 1), "deletionCounts"}},
    37                   {Binding{iBuilder->getStreamSetTy(1, 8), "byteStream"}},
    38                   {}, {}, {}) {}
    39    
     30    P2SKernelWithCompressedOutput(IDISA::IDISA_Builder * iBuilder);   
    4031private:
    4132    void generateDoBlockMethod() const override;
     
    4536class P2S16Kernel : public KernelBuilder {
    4637public:
    47     P2S16Kernel(IDISA::IDISA_Builder * iBuilder) :
    48     KernelBuilder(iBuilder, "p2s_16",
    49                   {Binding{iBuilder->getStreamSetTy(16, 1), "basisBits"}},
    50                   {Binding{iBuilder->getStreamSetTy(1, 16), "i16Stream"}},
    51                   {}, {}, {}) {}
    52    
     38    P2S16Kernel(IDISA::IDISA_Builder * iBuilder);   
    5339private:
    5440    void generateDoBlockMethod() const override;
     
    5945class P2S16KernelWithCompressedOutput : public KernelBuilder {
    6046public:
    61     P2S16KernelWithCompressedOutput(IDISA::IDISA_Builder * iBuilder) :
    62     KernelBuilder(iBuilder, "p2s_16_compress",
    63                   {Binding{iBuilder->getStreamSetTy(16, 1), "basisBits"}, Binding{iBuilder->getStreamSetTy(1, 1), "deletionCounts"}},
    64                   {Binding{iBuilder->getStreamSetTy(1, 16), "i16Stream"}},
    65                   {},
    66                   {},
    67                   {Binding{iBuilder->getSizeTy(), "unitsGenerated"}, Binding{iBuilder->getSizeTy(), "unitsWritten"}}) {}
     47    P2S16KernelWithCompressedOutput(IDISA::IDISA_Builder * iBuilder);
    6848       
    6949private:
Note: See TracChangeset for help on using the changeset viewer.