Ignore:
Timestamp:
Aug 29, 2016, 3:37:03 PM (3 years ago)
Author:
cameron
Message:

Some clean ups of encoding info for ccc restructuring.

File:
1 edited

Legend:

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

    r5134 r5137  
    6363
    6464
    65 RE * regular_expression_passes(const Encoding encoding, RE * re_ast)  {
     65RE * regular_expression_passes(RE * re_ast)  {
    6666    if (PrintOptions.isSet(PrintAllREs) || PrintOptions.isSet(PrintParsedREs)) {
    6767        std::cerr << "Parser:" << std::endl << Printer_RE::PrintRE(re_ast) << std::endl;
     
    8686}
    8787   
    88 PabloFunction * re2pablo_compiler(const Encoding encoding, RE * re_ast, bool CountOnly) {
    89     PabloFunction * function = PabloFunction::Create("process_block", encoding.getBits(), CountOnly ? 0 : 2);
    90     cc::CC_Compiler cc_compiler(*function, encoding);
     88PabloFunction * re2pablo_compiler(const unsigned encodingBits, RE * re_ast, bool CountOnly) {
     89    PabloFunction * function = PabloFunction::Create("process_block", encodingBits, CountOnly ? 0 : 2);
     90    cc::CC_Compiler cc_compiler(*function, encodingBits);
    9191    re::RE_Compiler re_compiler(*function, cc_compiler, CountOnly);
    92     re_compiler.initializeRequiredStreams(encoding);
     92    re_compiler.initializeRequiredStreams(encodingBits);
    9393    re_compiler.compileUnicodeNames(re_ast);
    9494    re_compiler.finalizeMatchResult(re_compiler.compile(re_ast), AlgorithmOptions.isSet(InvertMatches));
Note: See TracChangeset for help on using the changeset viewer.