Ignore:
Timestamp:
Dec 21, 2016, 3:53:58 PM (3 years ago)
Author:
nmedfort
Message:

Bug fixes for Carry Manager and issues reported by Fahad

File:
1 edited

Legend:

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

    r5230 r5233  
    122122    Function::arg_iterator args = initFunction->arg_begin();
    123123    Value * self = &*(args++);
    124     iBuilder->CreateStore(Constant::getNullValue(mKernelStateType), self);
     124    initializeKernelState(self);
    125125    for (auto binding : mScalarInputs) {
    126126        Value * parm = &*(args++);
     
    130130    iBuilder->CreateRetVoid();
    131131    iBuilder->restoreIP(savePoint);
     132}
     133
     134void KernelBuilder::initializeKernelState(Value * self) {
     135    iBuilder->CreateStore(Constant::getNullValue(mKernelStateType), self);
    132136}
    133137
Note: See TracChangeset for help on using the changeset viewer.