Ignore:
Timestamp:
Oct 21, 2014, 9:54:49 AM (5 years ago)
Author:
nmedfort
Message:

Added Diff to RE Compiler/Parser?. Removed CC.negate()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/codegenstate.cpp

    r4254 r4255  
    1111/// UNARY CREATE FUNCTIONS
    1212
    13 Advance * PabloBlock::createAdvance(PabloAST * expr) {
     13PabloAST * PabloBlock::createAdvance(PabloAST * expr) {
     14//    if (isa<Zeroes>(expr)) {
     15//        return createZeroes();
     16//    }
    1417    return mUnary.findOrMake<Advance>(PabloAST::ClassTypeId::Advance, expr);
    1518}
     
    2023
    2124PabloAST * PabloBlock::createNot(PabloAST * expr) {
     25//    if (isa<Zeroes>(expr)) {
     26//        return createOnes();
     27//    }
     28//    else if (isa<Ones>(expr)) {
     29//        return createZeroes();
     30//    }
    2231    return mUnary.findOrCall<OptimizeNot>(PabloAST::ClassTypeId::Not, expr);
    2332}
     
    3544}
    3645
    37 MatchStar * PabloBlock::createMatchStar(PabloAST * marker, PabloAST * charclass) {
     46PabloAST * PabloBlock::createMatchStar(PabloAST * marker, PabloAST * charclass) {
     47//    if (isa<Zeroes>(marker)) {
     48//        return createZeroes();
     49//    }
     50//    else if (isa<Zeroes>(charclass)) {
     51//        return marker;
     52//    }
    3853    return mBinary.findOrMake<MatchStar>(PabloAST::ClassTypeId::MatchStar, marker, charclass);
    3954}
    4055
    41 ScanThru * PabloBlock::createScanThru(PabloAST * from, PabloAST * thru) {
     56PabloAST * PabloBlock::createScanThru(PabloAST * from, PabloAST * thru) {
     57//    if (isa<Zeroes>(from)) {
     58//        return createZeroes();
     59//    }
     60//    else if (isa<Zeroes>(thru)) {
     61//        return marker;
     62//    }
    4263    return mBinary.findOrMake<ScanThru>(PabloAST::ClassTypeId::ScanThru, from, thru);
    4364}
Note: See TracChangeset for help on using the changeset viewer.