Ignore:
Timestamp:
Sep 14, 2017, 11:30:53 AM (20 months ago)
Author:
cameron
Message:

Modifying multiblock kernel builder for non-fixed input stream sets - temp check-in

File:
1 edited

Legend:

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

    r5621 r5638  
    161161
    162162inline MarkerType RE_Compiler::compileName(Name * name, MarkerType marker, PabloBuilder & pb) {
    163     if (isUnicodeUnitLength(name)) {
     163    const std::string nameString = name->getName();
     164    if (nameString == ".") {
     165        return compileAny(marker, pb);
     166    } else if (nameString == "^"){
     167        return compileStart(marker, pb);
     168    } else if (nameString == "$"){
     169        return compileEnd(marker, pb);
     170    } else if (isUnicodeUnitLength(name)) {
    164171        MarkerType nameMarker = compileName(name, pb);
    165172        MarkerType nextPos;
     
    176183        AlignMarkers(marker, zero, pb);
    177184        PabloAST * ze = markerVar(zero);
    178         const std::string value = name->getName();
    179         if (value == "NonGCB") {
     185        if (nameString == "NonGCB") {
    180186            ze = pb.createNot(ze);
    181187        }
Note: See TracChangeset for help on using the changeset viewer.