Ignore:
Timestamp:
Jan 5, 2017, 3:54:40 PM (3 years ago)
Author:
nmedfort
Message:

Code clean up to enforce proper calling order of KernelBuilder? methods

File:
1 edited

Legend:

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

    r5230 r5246  
    1616namespace kernel {
    1717
    18 class KernelBuilder;
    19 
    20 //void generateS2P_16Kernel(llvm::Module *, IDISA::IDISA_Builder * iBuilder, KernelBuilder * kBuilder);
    21 
    22 
    23 
    2418class S2PKernel : public KernelBuilder {
    2519public:
    2620   
    27     S2PKernel(IDISA::IDISA_Builder * iBuilder) :
    28     KernelBuilder(iBuilder, "s2p",
    29                   {Binding{iBuilder->getStreamSetTy(1, 8), "byteStream"}},
    30                   {Binding{iBuilder->getStreamSetTy(8, 1), "basisBits"}},
    31                   {}, {}, {}) {}
    32    
    33    
     21    S2PKernel(IDISA::IDISA_Builder * builder);
     22
     23    virtual ~S2PKernel() {}
     24       
    3425private:
    35     void generateDoBlockLogic(Value * self, Value * blockNo) override;
    36     void generateDoBlockMethod() override;
    37     void generateFinalBlockMethod() override;
     26    void generateDoBlockLogic(Value * self, Value * blockNo) const override;
     27    void generateDoBlockMethod() const override;
     28    void generateFinalBlockMethod() const override;
    3829   
    3930};
Note: See TracChangeset for help on using the changeset viewer.