Ignore:
Timestamp:
Jan 25, 2017, 11:01:55 AM (2 years ago)
Author:
cameron
Message:

Elimination of StreamSetStructs? wrapping StreamSetBuffers?

File:
1 edited

Legend:

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

    r5267 r5276  
    100100   
    101101    const unsigned packAlign = iBuilder->getBitBlockWidth()/8;
     102
    102103    Function::arg_iterator args = doSegmentFunction->arg_begin();
    103104    Value * self = &*(args++);
    104     Value * blocksToDo = &*(args);
    105     Value * streamStructPtr = getStreamSetStructPtr(self, "sourceStream");
    106 
    107     LoadInst * producerPos = iBuilder->CreateAtomicLoadAcquire(mStreamSetInputBuffers[0]->getProducerPosPtr(streamStructPtr));
     105    Value * doFinal = &*(args++);
     106    Value * producerPos = &*(args++);
    108107    Value * processed = getProcessedItemCount(self, "sourceStream");
    109108    Value * itemsAvail = iBuilder->CreateSub(producerPos, processed);
     
    266265    Value * totalProduced = iBuilder->CreateAdd(iBuilder->CreateMul(iBuilder->CreateUDiv(processed, Const3), Const4), iBuilder->CreateURem(processed, Const3));
    267266    setProducedItemCount(self, "expandedStream", totalProduced);
    268     Value * ssStructPtr = getStreamSetStructPtr(self, "expandedStream");
    269 
    270     Value * producerPosPtr = mStreamSetOutputBuffers[0]->getProducerPosPtr(ssStructPtr);
    271 
    272     iBuilder->CreateAtomicStoreRelease(totalProduced, producerPosPtr);
    273267   
    274268    iBuilder->CreateCondBr(inFinalSegment, setTermination, expand3_4_exit);
Note: See TracChangeset for help on using the changeset viewer.