Ignore:
Timestamp:
Nov 18, 2016, 1:46:55 PM (2 years ago)
Author:
nmedfort
Message:

Merged PabloFunction? and PabloKernel? classes. Updated projects where necessary.

File:
1 edited

Legend:

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

    r5202 r5217  
    162162   
    163163void s2pKernel::generateDoBlockLogic(Value * self, Value * blockNo) {
    164     Value * byteStream = getStreamSetBlockPtr(self, "byteStream", blockNo);
     164
     165    Value * bytePtr = iBuilder->CreateMul(blockNo, ConstantInt::get(blockNo->getType(), 8));
     166    Value * byteStream = getStreamSetBlockPtr(self, "byteStream", bytePtr);
    165167    Value * basisBits = getStreamSetBlockPtr(self, "basisBits", blockNo);
    166168
    167169    Value * bytepack[8];
    168170    for (unsigned i = 0; i < 8; i++) {
    169         bytepack[i] = iBuilder->CreateBlockAlignedLoad(byteStream, {iBuilder->getInt32(0), iBuilder->getInt32(0), iBuilder->getInt32(i)});
     171        Value * ptr = iBuilder->CreateGEP(byteStream, {iBuilder->getInt32(0), iBuilder->getInt32(i)});
     172        bytepack[i] = iBuilder->CreateBlockAlignedLoad(ptr);
    170173    }
    171174    Value * bitblock[8];
Note: See TracChangeset for help on using the changeset viewer.