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/p2s_kernel.cpp

    r5097 r5104  
    5151    Value * self = getParameter(doBlockFunction, "self");
    5252    Value * blockNo = getScalarField(self, blockNoScalar);
    53     Value * basisBitsBlock_ptr = getCircularBufferBlockPointer(self, "basisBits", blockNo);
    54     Value * byteStreamBlock_ptr = getCircularBufferBlockPointer(self, "byteStream", blockNo);
     53    Value * basisBitsBlock_ptr = getStreamSetBlockPtr(self, "basisBits", blockNo);
     54    Value * byteStreamBlock_ptr = getStreamSetBlockPtr(self, "byteStream", blockNo);
    5555
    5656    Value * p_bitblock[8];
     
    8383   
    8484    iBuilder->SetInsertPoint(BasicBlock::Create(iBuilder->getContext(), "entry", doBlockFunction, 0));
    85    
    86    
    87     Value * self = getParameter(doBlockFunction, "self");
    88     Value * blockNo = getScalarField(self, blockNoScalar);
    89     Value * basisBitsBlock_ptr = getCircularBufferBlockPointer(self, "basisBits", blockNo);
    90     Value * delCountBlock_ptr = getCircularBufferBlockPointer(self, "deletionCounts", blockNo);
    91     Value * byteStreamBlock_ptr = getCircularBufferBlockPointer(self, "byteStream", blockNo);
    92 
     85    Value * self = getParameter(doBlockFunction, "self");
     86    Value * blockNo = getScalarField(self, blockNoScalar);
     87    Value * basisBitsBlock_ptr = getStreamSetBlockPtr(self, "basisBits", blockNo);
     88    Value * delCountBlock_ptr = getStreamSetBlockPtr(self, "deletionCounts", blockNo);
     89    Value * byteStreamBlock_ptr = getStreamSetBlockPtr(self, "byteStream", blockNo);
     90   
    9391    Value * p_bitblock[8];
    9492    for (unsigned i = 0; i < 8; i++) {
     
    121119   
    122120    iBuilder->SetInsertPoint(BasicBlock::Create(iBuilder->getContext(), "entry", doBlockFunction, 0));
    123    
    124     Value * self = getParameter(doBlockFunction, "self");
    125     Value * blockNo = getScalarField(self, blockNoScalar);
    126     Value * basisBitsBlock_ptr = getCircularBufferBlockPointer(self, "basisBits", blockNo);
    127     Value * i16StreamBlock_ptr = getCircularBufferBlockPointer(self, "i16Stream", blockNo);
     121    Value * self = getParameter(doBlockFunction, "self");
     122    Value * blockNo = getScalarField(self, blockNoScalar);
     123    Value * basisBitsBlock_ptr = getStreamSetBlockPtr(self, "basisBits", blockNo);
     124    Value * i16StreamBlock_ptr = getStreamSetBlockPtr(self, "i16Stream", blockNo);
    128125   
    129126    Value * hi_input[8];
     
    166163   
    167164    iBuilder->SetInsertPoint(BasicBlock::Create(iBuilder->getContext(), "entry", doBlockFunction, 0));
    168    
    169     Value * self = getParameter(doBlockFunction, "self");
    170     Value * blockNo = getScalarField(self, blockNoScalar);
    171     Value * basisBitsBlock_ptr = getCircularBufferBlockPointer(self, "basisBits", blockNo);
    172     Value * delCountBlock_ptr = getCircularBufferBlockPointer(self, "deletionCounts", blockNo);
    173     Value * i16StreamBlock_ptr = getCircularBufferBlockPointer(self, "i16Stream", blockNo);
    174 
     165    Value * self = getParameter(doBlockFunction, "self");
     166    Value * blockNo = getScalarField(self, blockNoScalar);
     167    Value * basisBitsBlock_ptr = getStreamSetBlockPtr(self, "basisBits", blockNo);
     168    Value * delCountBlock_ptr = getStreamSetBlockPtr(self, "deletionCounts", blockNo);
     169    Value * i16StreamBlock_ptr = getStreamSetBlockPtr(self, "i16Stream", blockNo);
     170   
    175171    Value * hi_input[8];
    176172    for (unsigned j = 0; j < 8; ++j) {
Note: See TracChangeset for help on using the changeset viewer.