Ignore:
Timestamp:
May 8, 2016, 7:01:04 PM (3 years ago)
Author:
cameron
Message:

Add EOFmask internal state value to generated Pablo functions; implement pablo.inFile

File:
1 edited

Legend:

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

    r5023 r5035  
    4646}
    4747
     48
     49   
    4850template<typename PabloBlockOrBuilder>
    4951PabloAST * CC_Compiler::charset_expr(const CC * cc, PabloBlockOrBuilder & pb) {
     
    5153        return pb.createZeroes();
    5254    }
     55#ifdef CC_COMPILER_ENFORCES_INFILE
    5356    bool includes_codepoint_zero = lo_codepoint(cc->begin()) == 0;
     57#endif
    5458    if (cc->size() > 2) {
    5559        bool combine = true;
     
    8892        expr = (expr == nullptr) ? temp : pb.createOr(expr, temp);
    8993    }
     94#ifdef CC_COMPILER_ENFORCES_INFILE
    9095    if (includes_codepoint_zero) {
    9196        return pb.createInFile(expr);
     
    9499        return expr;
    95100    }
     101#else
     102    return expr;
     103#endif
     104   
    96105}
    97106
Note: See TracChangeset for help on using the changeset viewer.