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/grep_engine.cpp

    r5860 r5861  
    4949using namespace llvm;
    5050using namespace cc;
     51using namespace kernel;
    5152
    5253static cl::opt<int> Threads("t", cl::desc("Total number of threads."), cl::init(2));
     
    116117
    117118    #ifdef USE_DIRECT_LF_BUILDER
    118     kernel::Kernel * linefeedK = mGrepDriver->addKernelInstance<kernel::LineFeedKernelBuilder>(idb, encodingBits);
     119    kernel::Kernel * linefeedK = mGrepDriver->addKernelInstance<kernel::LineFeedKernelBuilder>(idb, Binding{idb->getStreamSetTy(1, 8), "byteStream", FixedRate(), Principal()});
    119120    mGrepDriver->makeKernelCall(linefeedK, {ByteStream}, {LineFeedStream});
    120121    #endif
     
    131132
    132133    #ifndef USE_DIRECT_LF_BUILDER
    133     kernel::Kernel * linefeedK = mGrepDriver->addKernelInstance<kernel::LineFeedKernelBuilder>(idb, encodingBits);
     134    kernel::Kernel * linefeedK = mGrepDriver->addKernelInstance<kernel::LineFeedKernelBuilder>(idb, Binding{idb->getStreamSetTy(8), "basis", FixedRate(), Principal()});
    134135    mGrepDriver->makeKernelCall(linefeedK, {BasisBits}, {LineFeedStream});
    135136    #endif
Note: See TracChangeset for help on using the changeset viewer.