Ignore:
Timestamp:
Feb 3, 2018, 12:02:14 PM (16 months ago)
Author:
cameron
Message:

Using DirectCC builder updates; speedup wc -l

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/charclasses.cpp

    r5854 r5861  
    7878void CharClassesKernel::generatePabloMethod() {
    7979    PabloBuilder pb(getEntryScope());
    80     CC_Compiler * ccc;
     80    std::unique_ptr<CC_Compiler> ccc;
    8181    if (mUseDirectCC) {
    82         ccc = new Direct_CC_Compiler(this, pb.createExtract(getInputStreamVar("byteData"), pb.getInteger(0)));
     82        ccc = make_unique<cc::Direct_CC_Compiler>(this, pb.createExtract(getInput(0), pb.getInteger(0)));
     83    } else {
     84        ccc = make_unique<cc::Parabix_CC_Compiler>(this, getInputStreamSet("basis"));
    8385    }
    84     else {
    85         ccc = new Parabix_CC_Compiler(this, getInputStreamSet("basis"));
    86     }
    87 
    8886    unsigned n = mCCs.size();
    8987
     
    9694    }
    9795
    98     UCD::UCDCompiler ucdCompiler(*ccc);
     96    UCD::UCDCompiler ucdCompiler(*ccc.get());
    9997    if (LLVM_UNLIKELY(AlgorithmOptionIsSet(DisableIfHierarchy))) {
    10098        ucdCompiler.generateWithoutIfHierarchy(nameMap, pb);
     
    114112        }
    115113    }
    116     delete ccc;
    117114}
    118115
Note: See TracChangeset for help on using the changeset viewer.