Ignore:
Timestamp:
Jul 28, 2016, 11:31:36 AM (3 years ago)
Author:
cameron
Message:

u8u16 pipeline

File:
1 edited

Legend:

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

    r5106 r5109  
    201201}
    202202
     203
     204
    203205Value * KernelBuilder::getScalarField(Value * self, std::string fieldName) {
    204206    Value * ptr = iBuilder->CreateGEP(self, {iBuilder->getInt32(0), getScalarIndex(fieldName)});
     
    226228    }
    227229    return f->second;
     230}
     231
     232size_t KernelBuilder::getStreamSetBufferSize(Value * self, std::string ssName) {
     233    unsigned ssIndex = getStreamSetIndex(ssName);
     234    if (ssIndex < mStreamSetInputs.size()) {
     235        return mStreamSetInputs[ssIndex].ssType.getBufferSize();
     236    }
     237    else {
     238        return mStreamSetOutputs[ssIndex - mStreamSetInputs.size()].ssType.getBufferSize();
     239    }
    228240}
    229241
Note: See TracChangeset for help on using the changeset viewer.