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/s2p_kernel.h

    r5051 r5063  
    88#include "streamset.h"
    99#include "interface.h"
     10#include "kernel.h"
    1011
    1112namespace llvm { class Module; }
     
    1718class KernelBuilder;
    1819
    19 void generateS2PKernel(llvm::Module *, IDISA::IDISA_Builder * iBuilder, KernelBuilder * kBuilder);
    20 void generateS2P_16Kernel(llvm::Module *, IDISA::IDISA_Builder * iBuilder, KernelBuilder * kBuilder);
    21 void generateS2P_idealKernel(llvm::Module *, IDISA::IDISA_Builder * iBuilder, KernelBuilder * kBuilder);
     20//void generateS2P_16Kernel(llvm::Module *, IDISA::IDISA_Builder * iBuilder, KernelBuilder * kBuilder);
    2221
    2322
    2423
    25 class s2pKernel : public KernelInterface {
     24class s2pKernel : public KernelBuilder {
    2625public:
    2726    s2pKernel(IDISA::IDISA_Builder * iBuilder) :
    28     KernelInterface(iBuilder, "s2p",
    29                     {StreamSetBinding{StreamSetType(1, 8), "byteStream"}},
    30                     {StreamSetBinding{StreamSetType(8, 1), "basisBits"}},
    31                     {}, {}, {}) {}
     27    KernelBuilder(iBuilder, "s2p",
     28                  {StreamSetBinding{StreamSetType(1, 8), "byteStream"}},
     29                  {StreamSetBinding{StreamSetType(8, 1), "basisBits"}},
     30                  {}, {}, {}) {}
    3231   
    33     std::unique_ptr<llvm::Module> createKernelModule() override;
     32    void generateFinalBlockMethod();
     33    void generateKernel() override;
     34   
     35};
    3436
    35 };
     37   
     38
    3639}
    3740#endif
Note: See TracChangeset for help on using the changeset viewer.