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/scanmatchgen.cpp

    r5063 r5074  
    4040
    4141       
    42 void scanMatchKernel::generateKernel() {
     42void scanMatchKernel::generateDoBlockMethod() {
    4343    IDISA::IDISA_Builder::InsertPoint savePoint = iBuilder->saveIP();
    44     if (mKernelStateType == nullptr) finalizeKernelStateType();
    45     KernelBuilder::generateKernel();
    4644    Module * m = iBuilder->getModule();
    47    
    4845    Function * scanWordFunction = generateScanWordRoutine(m);
    4946    const unsigned fieldCount = iBuilder->getBitBlockWidth() / mScanwordBitWidth;
     
    7774    setScalarField(kernelStuctParam, "BlockNo", iBuilder->CreateAdd(getScalarField(kernelStuctParam, "BlockNo"), iBuilder->getInt64(1)));
    7875    iBuilder -> CreateRetVoid();
    79    
    80     // scanMatch FinalBlock function simply dispatches to the DoBlock function
    81     addTrivialFinalBlockMethod(m);
    8276    iBuilder->restoreIP(savePoint);
    8377}
Note: See TracChangeset for help on using the changeset viewer.