Ignore:
Timestamp:
Jan 7, 2017, 12:26:09 PM (2 years ago)
Author:
cameron
Message:

Separate processedItemCounts and producedItemCounts for each stream set

File:
1 edited

Legend:

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

    r5246 r5247  
    8383    /* Stream deletion has only been applied within fields; the actual number of data items
    8484     * has not yet changed.   */
    85     Value * produced = getProducedItemCount(self);
     85    Value * produced = getProducedItemCount(self, "outputStreamSet");
    8686    produced = iBuilder->CreateAdd(produced, iBuilder->getSize(iBuilder->getStride()));
    87     setProducedItemCount(self, produced);
     87    setProducedItemCount(self, "outputStreamSet", produced);
     88    setProducedItemCount(self, "deletionCounts", produced);
    8889    iBuilder->CreateRetVoid();
    8990    iBuilder->restoreIP(savePoint);
     
    110111    iBuilder->CreateCall(doBlockFunction, {self});
    111112    /* Adjust the produced item count */
    112     Value * produced = getProducedItemCount(self);
     113    Value * produced = getProducedItemCount(self, "outputStreamSet");
    113114    produced = iBuilder->CreateSub(produced, iBuilder->getSize(iBuilder->getStride()));
    114     setProducedItemCount(self, iBuilder->CreateAdd(produced, remainingBytes));
     115    produced =  iBuilder->CreateAdd(produced, remainingBytes);
     116    setProducedItemCount(self, "outputStreamSet", produced);
     117    setProducedItemCount(self, "deletionCounts", produced);
    115118
    116119    iBuilder->CreateRetVoid();
Note: See TracChangeset for help on using the changeset viewer.