Ignore:
Timestamp:
Jun 25, 2016, 9:07:07 AM (3 years ago)
Author:
cameron
Message:

Kernel infrastructure: move common logic into KernelBuilder? base class; demo linking in wc

File:
1 edited

Legend:

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

    r5063 r5074  
    121121   
    122122void s2pKernel::generateFinalBlockMethod() {
    123     /* Now the prepare the s2p final block function:
     123    /* Prepare the s2p final block function:
    124124     assumption: if remaining bytes is greater than 0, it is safe to read a full block of bytes.
    125125     if remaining bytes is zero, no read should be performed (e.g. for mmapped buffer).
     
    156156}
    157157
    158 void s2pKernel::generateKernel() {
     158   
     159void s2pKernel::generateDoBlockMethod() {
    159160    IDISA::IDISA_Builder::InsertPoint savePoint = iBuilder->saveIP();
    160     if (mKernelStateType == nullptr) finalizeKernelStateType();
    161     KernelBuilder::generateKernel();
    162     generateFinalBlockMethod();
     161    Module * m = iBuilder->getModule();
    163162
    164     Module * m = iBuilder->getModule();
    165163    Function * doBlockFunction = m->getFunction(mKernelName + doBlock_suffix);
    166164   
Note: See TracChangeset for help on using the changeset viewer.