Ignore:
Timestamp:
Apr 11, 2017, 5:13:07 PM (2 years ago)
Author:
cameron
Message:

Grep kernels with signatures and object caching

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_compiler.cpp

    r5401 r5404  
    205205    PabloAST * matches = mPB.createAnd(match_follow, mLineBreak, "matches");
    206206    if (mCountOnly) {
    207         Var * const output = mKernel->addOutput("matchedLineCount", mKernel->getSizeTy());
     207        Var * const output = mKernel->getOutputScalarVar("matchedLineCount");
    208208        PabloBuilder nestedCount = PabloBuilder::Create(mPB);
    209209        mPB.createIf(matches, nestedCount);
    210210        nestedCount.createAssign(output, nestedCount.createCount(matches));
    211211    } else {
    212         Var * const output = mKernel->addOutput("output", mKernel->getStreamSetTy(1));
     212        Var * const output = mKernel->getOutputStreamVar("matches");
    213213        mPB.createAssign(mPB.createExtract(output, mPB.getInteger(0)), matches);
    214214    }
Note: See TracChangeset for help on using the changeset viewer.