Changeset 6200 for icGREP


Ignore:
Timestamp:
Nov 14, 2018, 10:02:05 PM (5 months ago)
Author:
cameron
Message:

Modify stream compress kernel to use PopCountOf? extraction mask

File:
1 edited

Legend:

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

    r6199 r6200  
    189189{Binding{"sourceStreamSet", source},
    190190Binding{"extractionMask", extractionMask}},
    191 {Binding{"compressedOutput", compressedOutput, BoundedRate(0, 1)}},
     191{Binding{"compressedOutput", compressedOutput, PopcountOf("extractionMask")}},
    192192{}, {}, {})
    193193, mCompressedFieldWidth(FieldWidth)
     
    378378
    379379    b->SetInsertPoint(updateProducedCount);
    380     Value * produced = b->getProducedItemCount("compressedOutput");
    381     Value * const blockOffset = b->CreateMul(nextOutputBlk, b->getSize(b->getBitBlockWidth()));
    382     produced = b->CreateAdd(produced, blockOffset);
    383     newPending = b->CreateZExtOrTrunc(newPending, sizeTy);
    384     produced = b->CreateSelect(mIsFinal, b->CreateAdd(produced, newPending), produced);
    385     b->setProducedItemCount("compressedOutput", produced);
     380    //Value * produced = b->getProducedItemCount("compressedOutput");
     381    //Value * const blockOffset = b->CreateMul(nextOutputBlk, b->getSize(b->getBitBlockWidth()));
     382    //produced = b->CreateAdd(produced, blockOffset);
     383    //newPending = b->CreateZExtOrTrunc(newPending, sizeTy);
     384    //produced = b->CreateSelect(mIsFinal, b->CreateAdd(produced, newPending), produced);
     385    //b->setProducedItemCount("compressedOutput", produced);
    386386}
    387387
Note: See TracChangeset for help on using the changeset viewer.