Ignore:
Timestamp:
Jan 21, 2016, 5:15:33 PM (3 years ago)
Author:
nmedfort
Message:

Work on lowering + some timing and papi information that will be cleaned up later.

File:
1 edited

Legend:

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

    r4870 r4919  
    3939static cl::opt<bool> DisableLog2BoundedRepetition("disable-log2-bounded-repetition", cl::init(false),
    4040                     cl::desc("disable log2 optimizations for bounded repetition of bytes"), cl::cat(fREcompilationOptions));
     41static cl::opt<bool> DisableIfHierarchy("disable-if-hierarchy-strategy", cl::init(false),
     42                     cl::desc("disable nested if hierarchy for generated Unicode classes (not recommended)"), cl::cat(fREcompilationOptions));
    4143static cl::opt<int> IfInsertionGap("if-insertion-gap", cl::init(3), cl::desc("minimum number of nonempty elements between inserted if short-circuit tests"), cl::cat(fREcompilationOptions));
    4244static cl::opt<bool> DisableMatchStar("disable-matchstar", cl::init(false),
     
    303305    if (LLVM_LIKELY(nameMap.size() > 0)) {
    304306        UCD::UCDCompiler ucdCompiler(mCCCompiler);
    305         ucdCompiler.generateWithDefaultIfHierarchy(nameMap, mPB);
     307        if (LLVM_UNLIKELY(DisableIfHierarchy)) {
     308            ucdCompiler.generateWithoutIfHierarchy(nameMap, mPB);
     309        } else {
     310            ucdCompiler.generateWithDefaultIfHierarchy(nameMap, mPB);
     311        }
    306312        for (auto t : nameMap) {
    307313            if (t.second) {
Note: See TracChangeset for help on using the changeset viewer.