Ignore:
Timestamp:
Jun 19, 2016, 3:00:47 PM (3 years ago)
Author:
cameron
Message:

New kernel infrastructure

File:
1 edited

Legend:

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

    r5055 r5063  
    77
    88#include "streamset.h"
    9 #include "interface.h"
     9#include "kernel.h"
    1010
    1111namespace llvm { class Module; class Function;}
     
    1414
    1515namespace kernel {
    16 
    17 class KernelBuilder;
    18 
    19 void generateScanMatch(llvm::Module * m, IDISA::IDISA_Builder * iBuilder, unsigned scanWordBitWidth, KernelBuilder * kBuilder, bool isNameExpression);
    20 
    2116   
    22    
    23 class scanMatchKernel : public KernelInterface {
     17class scanMatchKernel : public KernelBuilder {
    2418public:
    2519    scanMatchKernel(IDISA::IDISA_Builder * iBuilder, unsigned scanwordBitWidth, bool isNameExpression) :
    26     KernelInterface(iBuilder, "scanMatch",
     20    KernelBuilder(iBuilder, "scanMatch",
    2721                    {StreamSetBinding{StreamSetType(2, 1), "matchResults"}},
    2822                    {},
     
    3428    mIsNameExpression(isNameExpression) {}
    3529       
    36     std::unique_ptr<llvm::Module> createKernelModule() override;
     30    void generateKernel() override;
    3731
    3832private:
Note: See TracChangeset for help on using the changeset viewer.