Ignore:
Timestamp:
Jul 21, 2016, 6:55:10 AM (3 years ago)
Author:
cameron
Message:

getStreamSetBlockPtr

File:
1 edited

Legend:

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

    r5103 r5104  
    147147    iBuilder->SetInsertPoint(finalEmptyBlock);
    148148    Value * blockNo = getScalarField(self, blockNoScalar);
    149     Value * basisBitsBase_ptr = getScalarField(self, mStreamSetOutputs[0].ssName + basePtrSuffix);
    150     Value * basisBitsBlock_ptr = mStreamSetOutputs[0].ssType.getStreamSetBlockPointer(basisBitsBase_ptr, blockNo);
     149    Value * basisBitsBlock_ptr = getStreamSetBlockPtr(self, "basisBits", blockNo);
    151150    iBuilder->CreateStore(Constant::getNullValue(basisBitsBlock_ptr->getType()->getPointerElementType()), basisBitsBlock_ptr);
    152151    iBuilder->CreateBr(exitBlock);
     
    167166   
    168167    Value * self = getParameter(doBlockFunction, "self");
    169     Value * byteStreamBase_ptr = getScalarField(self, mStreamSetInputs[0].ssName + basePtrSuffix);
    170     Value * basisBitsBase_ptr = getScalarField(self, mStreamSetOutputs[0].ssName + basePtrSuffix);
    171168    Value * blockNo = getScalarField(self, blockNoScalar);
    172    
    173    
    174     Value * byteStreamBlock_ptr = mStreamSetInputs[0].ssType.getStreamSetBlockPointer(byteStreamBase_ptr, blockNo);
    175     Value * basisBitsBlock_ptr = mStreamSetOutputs[0].ssType.getStreamSetBlockPointer(basisBitsBase_ptr, blockNo);
     169    Value * byteStreamBlock_ptr = getStreamSetBlockPtr(self, "byteStream", blockNo);
     170    Value * basisBitsBlock_ptr = getStreamSetBlockPtr(self, "basisBits", blockNo);
    176171   
    177172    Value * s_bytepack[8];
Note: See TracChangeset for help on using the changeset viewer.