Ignore:
Timestamp:
Jul 17, 2016, 12:11:52 PM (3 years ago)
Author:
cameron
Message:

Kernel/interface progress

File:
1 edited

Legend:

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

    r5079 r5097  
    4949    iBuilder->SetInsertPoint(BasicBlock::Create(iBuilder->getContext(), "entry", doBlockFunction, 0));
    5050   
    51     Value * basisBitsBlock_ptr = getParameter(doBlockFunction, "basisBits");  // input
    52     Value * byteStreamBlock_ptr = getParameter(doBlockFunction, "byteStream"); // output
     51    Value * self = getParameter(doBlockFunction, "self");
     52    Value * blockNo = getScalarField(self, blockNoScalar);
     53    Value * basisBitsBlock_ptr = getCircularBufferBlockPointer(self, "basisBits", blockNo);
     54    Value * byteStreamBlock_ptr = getCircularBufferBlockPointer(self, "byteStream", blockNo);
     55
    5356    Value * p_bitblock[8];
    5457    for (unsigned i = 0; i < 8; i++) {
     
    8184    iBuilder->SetInsertPoint(BasicBlock::Create(iBuilder->getContext(), "entry", doBlockFunction, 0));
    8285   
    83     Value * basisBitsBlock_ptr = getParameter(doBlockFunction, "basisBits");  // input
    84     Value * delCountBlock_ptr = getParameter(doBlockFunction, "deletionCounts");
    85     Value * byteStreamBlock_ptr = getParameter(doBlockFunction, "byteStream"); // output
    86    
     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
    8793    Value * p_bitblock[8];
    8894    for (unsigned i = 0; i < 8; i++) {
     
    116122    iBuilder->SetInsertPoint(BasicBlock::Create(iBuilder->getContext(), "entry", doBlockFunction, 0));
    117123   
    118     Value * basisBitsBlock_ptr = getParameter(doBlockFunction, "basisBits");  // input
    119     Value * i16StreamBlock_ptr = getParameter(doBlockFunction, "i16Stream"); // output
     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);
    120128   
    121129    Value * hi_input[8];
     
    159167    iBuilder->SetInsertPoint(BasicBlock::Create(iBuilder->getContext(), "entry", doBlockFunction, 0));
    160168   
    161     Value * basisBitsBlock_ptr = getParameter(doBlockFunction, "basisBits");  // input
    162     Value * delCountBlock_ptr = getParameter(doBlockFunction, "deletionCounts");
    163     Value * i16StreamBlock_ptr = getParameter(doBlockFunction, "i16Stream"); // output
     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);
    164174
    165175    Value * hi_input[8];
Note: See TracChangeset for help on using the changeset viewer.