Ignore:
Timestamp:
May 3, 2016, 10:39:29 AM (3 years ago)
Author:
cameron
Message:

pablo.InFile? initial support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/cc/cc_compiler.cpp

    r4890 r5023  
    5151        return pb.createZeroes();
    5252    }
     53    bool includes_codepoint_zero = lo_codepoint(cc->begin()) == 0;
    5354    if (cc->size() > 2) {
    5455        bool combine = true;
     
    8788        expr = (expr == nullptr) ? temp : pb.createOr(expr, temp);
    8889    }
    89     return expr;
     90    if (includes_codepoint_zero) {
     91        return pb.createInFile(expr);
     92    }
     93    else {
     94        return expr;
     95    }
    9096}
    9197
Note: See TracChangeset for help on using the changeset viewer.