Ignore:
Timestamp:
Nov 1, 2017, 2:26:02 PM (2 years ago)
Author:
cameron
Message:

Log2 bounded repetition: complex subexpressions and if-hierarchies

File:
1 edited

Legend:

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

    r5682 r5720  
    313313//Cases that not include bounded repetition, assertion, start and end type can suit for local language compile pipeline.
    314314bool isTypeForLocal(const RE * re) {
    315     if (const Alt * alt = dyn_cast<Alt>(re)) {
     315    if (const Name * n = dyn_cast<Name>(re)) {
     316        return isTypeForLocal(n->getDefinition());
     317    } else if (const Alt * alt = dyn_cast<Alt>(re)) {
    316318        for (const RE * re : *alt) {
    317319            if (!isTypeForLocal(re)) {
Note: See TracChangeset for help on using the changeset viewer.