Ignore:
Timestamp:
May 13, 2018, 9:40:44 PM (11 months ago)
Author:
cameron
Message:

StreamCompressionCompiler? initial check-in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/character_deletion.cpp

    r6032 r6037  
    119119    pxDriver.makeKernelCall(ccK, {BasisBits}, {CharacterMarkerBuffer});
    120120
    121     StreamSetBuffer * deletedBits = pxDriver.addBuffer<CircularBuffer>(iBuilder, iBuilder->getStreamSetTy(8), inputBufferBlocks);
    122     StreamSetBuffer * deletionCounts = pxDriver.addBuffer<CircularBuffer>(iBuilder, iBuilder->getStreamSetTy(8), inputBufferBlocks);
    123 
    124     Kernel * delK = pxDriver.addKernelInstance<PEXTFieldCompressKernel>(iBuilder, 64, 8);
    125     pxDriver.makeKernelCall(delK, {BasisBits, CharacterMarkerBuffer}, {deletedBits, deletionCounts});
    126 
    127121    StreamSetBuffer * compressedBits = pxDriver.addBuffer<CircularBuffer>(iBuilder, iBuilder->getStreamSetTy(8), inputBufferBlocks);
    128     Kernel * streamCompressionK = pxDriver.addKernelInstance<StreamCompressKernel>(iBuilder, 64, 8);
    129     pxDriver.makeKernelCall(streamCompressionK, {deletedBits, deletionCounts}, {compressedBits});
    130 
     122    StreamFilterCompiler filterCompiler(pxDriver, iBuilder->getStreamSetTy(8), inputBufferBlocks);
     123    filterCompiler.makeCall(CharacterMarkerBuffer, BasisBits, compressedBits);
    131124    return compressedBits;
    132125}
Note: See TracChangeset for help on using the changeset viewer.