Ignore:
Timestamp:
Oct 4, 2018, 3:37:35 PM (10 months ago)
Author:
cameron
Message:

NullablePrefix/Suffix? removal using RE_Transformer; clean out some setters

File:
1 edited

Legend:

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

    r6170 r6171  
    9999
    100100    //Optimization passes to simplify the AST.
    101     r = RE_Nullable::removeNullablePrefix(r);
    102     if (PrintOptions.isSet(ShowAllREs) || PrintOptions.isSet(ShowStrippedREs)) {
    103         errs() << "RemoveNullablePrefix:\n" << Printer_RE::PrintRE(r) << '\n';
    104     }
    105     r = RE_Nullable::removeNullableSuffix(r);
    106     if (PrintOptions.isSet(ShowAllREs) || PrintOptions.isSet(ShowStrippedREs)) {
    107         errs() << "RemoveNullableSuffix:\n" << Printer_RE::PrintRE(r) << '\n';
    108     }
     101    r = removeNullablePrefix(r);
     102    r = removeNullableSuffix(r);
    109103    r = RE_Star_Normal().transformRE(r);
    110104    if (codegen::OptLevel > 1) {
Note: See TracChangeset for help on using the changeset viewer.