Ignore:
Timestamp:
Feb 14, 2017, 12:45:42 PM (2 years ago)
Author:
cameron
Message:

Simplify stream set access; better naming of access functions

File:
1 edited

Legend:

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

    r5297 r5317  
    125125    Value * bytepack[8];
    126126    for (unsigned i = 0; i < 8; i++) {
    127         Value * byteStream = getInputStream("byteStream", iBuilder->getInt32(0), iBuilder->getInt32(i));
    128         bytepack[i] = iBuilder->CreateBlockAlignedLoad(byteStream);
     127        bytepack[i] = loadInputStreamPack("byteStream", iBuilder->getInt32(0), iBuilder->getInt32(i));
    129128    }
    130129    Value * basisbits[8];
    131130    s2p(iBuilder, bytepack, basisbits);
    132131    for (unsigned i = 0; i < 8; ++i) {
    133         Value * basisBits = getOutputStream("basisBits", iBuilder->getInt32(i));
    134         iBuilder->CreateBlockAlignedStore(basisbits[i], basisBits);
     132        storeOutputStreamBlock("basisBits", iBuilder->getInt32(i), basisbits[i]);
    135133    }
    136134}
     
    156154
    157155    for (unsigned i = 0; i < 8; ++i) {
    158         Value * basisBitsPtr = getOutputStream("basisBits", iBuilder->getInt64(i));
    159         iBuilder->CreateBlockAlignedStore(Constant::getNullValue(iBuilder->getBitBlockType()), basisBitsPtr);
     156        storeOutputStreamBlock("basisBits", iBuilder->getInt32(i), Constant::getNullValue(iBuilder->getBitBlockType()));
    160157    }
    161158
Note: See TracChangeset for help on using the changeset viewer.