Ignore:
Timestamp:
Jan 16, 2018, 4:22:13 PM (16 months ago)
Author:
nmedfort
Message:

Added PabloBlock/Builder? createScope() methods + minor code changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/toolchain/grep_pipeline.cpp

    r5793 r5836  
    6262    pxDriver.makeKernelCall(sourceK, {}, {ByteStream});
    6363   
     64    StreamSetBuffer * LineFeedStream = pxDriver.addBuffer<CircularBuffer>(idb, idb->getStreamSetTy(1, 1), segmentSize);
     65    #ifdef USE_DIRECT_LF_BUILDER
     66    kernel::Kernel * linefeedK = pxDriver.addKernelInstance<kernel::LineFeedKernelBuilder>(idb, 8);
     67    pxDriver.makeKernelCall(linefeedK, {ByteStream}, {LineFeedStream});
     68    #endif
     69
    6470    StreamSetBuffer * BasisBits = pxDriver.addBuffer<CircularBuffer>(idb, idb->getStreamSetTy(8, 1), segmentSize);
    6571    kernel::Kernel * s2pk = pxDriver.addKernelInstance<kernel::S2PKernel>(idb);
    6672    pxDriver.makeKernelCall(s2pk, {ByteStream}, {BasisBits});
    67    
     73
     74    #ifndef USE_DIRECT_LF_BUILDER
    6875    kernel::Kernel * linefeedK = pxDriver.addKernelInstance<kernel::LineFeedKernelBuilder>(idb, 8);
    69     StreamSetBuffer * LineFeedStream = pxDriver.addBuffer<CircularBuffer>(idb, idb->getStreamSetTy(1, 1), segmentSize);
    7076    pxDriver.makeKernelCall(linefeedK, {BasisBits}, {LineFeedStream});
     77    #endif
    7178
    7279    kernel::Kernel * linebreakK = pxDriver.addKernelInstance<kernel::LineBreakKernelBuilder>(idb, 8);
Note: See TracChangeset for help on using the changeset viewer.