Ignore:
Timestamp:
Apr 7, 2017, 4:59:04 PM (2 years ago)
Author:
nmedfort
Message:

Continued work on processing stdin input. Partial integration of ParabixDriver? methods into icgrep and editd. Object cache does not currently work for recursive REs.

File:
1 edited

Legend:

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

    r5371 r5398  
    198198}
    199199
     200//void RE_Compiler::finalizeMatchResult(MarkerType match_result, bool InvertMatches) {
     201//    PabloAST * match_follow = mPB.createMatchStar(markerVar(match_result), mAny);
     202//    if (InvertMatches) {
     203//        match_follow = mPB.createNot(match_follow);
     204//    }
     205//    PabloAST * matches = mPB.createAnd(match_follow, mLineBreak, "matches");
     206//    if (mCountOnly) {
     207//        Var * const output = mKernel->getOutputScalarVar("matchedLineCount");
     208//        PabloBuilder nestedCount = PabloBuilder::Create(mPB);
     209//        mPB.createIf(matches, nestedCount);
     210//        nestedCount.createAssign(output, nestedCount.createCount(matches));
     211//    } else {
     212//        Var * const output = mKernel->getOutputStreamVar("output");
     213//        mPB.createAssign(mPB.createExtract(output, mPB.getInteger(0)), matches);
     214//    }
     215//}
     216
    200217void RE_Compiler::finalizeMatchResult(MarkerType match_result, bool InvertMatches) {
    201218    PabloAST * match_follow = mPB.createMatchStar(markerVar(match_result), mAny);
     
    212229        Var * const output = mKernel->addOutput("output", mKernel->getStreamSetTy(1));
    213230        mPB.createAssign(mPB.createExtract(output, mPB.getInteger(0)), matches);
    214         //mPB.createAssign(mPB.createExtract(output, mPB.getInteger(1)), mLineBreak);
    215231    }
    216232}
Note: See TracChangeset for help on using the changeset viewer.