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

Location:
icGREP/icgrep-devel/icgrep/kernels
Files:
2 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
  • icGREP/icgrep-devel/icgrep/kernels/kernel.h

    r5229 r5233  
    5353    virtual llvm::Value * getProcessedItemCount(llvm::Value * kernelInstance) override;
    5454    virtual llvm::Value * getProducedItemCount(llvm::Value * kernelInstance) override;
     55    virtual void initializeKernelState(Value * self);
    5556    llvm::Value * getTerminationSignal(llvm::Value * kernelInstance);
    5657   
Note: See TracChangeset for help on using the changeset viewer.