Ignore:
Timestamp:
Jul 5, 2017, 10:34:41 AM (21 months ago)
Author:
cameron
Message:

Decouple finalizeMatchResults, creating separate MatchedLinesKernel?

File:
1 edited

Legend:

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

    r5413 r5548  
    198198}
    199199
    200 void RE_Compiler::finalizeMatchResult(MarkerType match_result) {
    201     PabloAST * match_follow = mPB.createMatchStar(markerVar(match_result), mAny);
    202     PabloAST * matches = mPB.createAnd(match_follow, mLineBreak, "matchedLine3s");
     200void RE_Compiler::compile(RE * re) {
     201    MarkerType match_results = compile(re, mPB);
    203202    Var * const output = mKernel->getOutputStreamVar("matches");
    204     mPB.createAssign(mPB.createExtract(output, mPB.getInteger(0)), matches);
    205 }
    206 
     203    mPB.createAssign(mPB.createExtract(output, mPB.getInteger(0)), markerVar(match_results));
     204}
     205   
    207206MarkerType RE_Compiler::compile(RE * re, PabloBuilder & pb) {
    208207    return process(re, makeMarker(MarkerPosition::FinalPostPositionUnit, pb.createOnes()), pb);
    209208}
    210 
     209   
    211210MarkerType RE_Compiler::process(RE * re, MarkerType marker, PabloBuilder & pb) {
    212211    if (isa<Name>(re)) {
Note: See TracChangeset for help on using the changeset viewer.