Ignore:
Timestamp:
May 7, 2017, 4:34:48 PM (2 years ago)
Author:
nmedfort
Message:

Continued refactoring work. PabloKernel? now abstract base type with a 'generatePabloMethod' hook to generate Pablo code.

File:
1 edited

Legend:

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

    r5435 r5436  
    1414class ICgrepKernelBuilder: public pablo::PabloKernel {
    1515public:
    16     ICgrepKernelBuilder(const std::unique_ptr<IDISA::IDISA_Builder> & iBuilder, re::RE * const re_ast);
    17    
     16    ICgrepKernelBuilder(const std::unique_ptr<kernel::KernelBuilder> & iBuilder, re::RE * const re_ast);   
    1817    std::string makeSignature() override;
    1918    bool isCachable() const override { return true; }
    20 
    21     void prepareKernel() override;
    22 
     19protected:
     20    void generatePabloMethod() override;
    2321private:
    2422    re::RE * const  mRE;
     
    2826class InvertMatchesKernel : public BlockOrientedKernel {
    2927public:
    30     InvertMatchesKernel(const std::unique_ptr<IDISA::IDISA_Builder> & builder);
     28    InvertMatchesKernel(const std::unique_ptr<kernel::KernelBuilder> & builder);
    3129private:
    3230    void generateDoBlockMethod() override;
     
    3634class PopcountKernel : public pablo::PabloKernel {
    3735public:
    38     PopcountKernel(const std::unique_ptr<IDISA::IDISA_Builder> & builder);
     36    PopcountKernel(const std::unique_ptr<kernel::KernelBuilder> & builder);
    3937};
    4038
Note: See TracChangeset for help on using the changeset viewer.