Ignore:
Timestamp:
Oct 1, 2016, 12:03:14 PM (3 years ago)
Author:
cameron
Message:

Kernel/pipeline progress: sychronize with logicalSegmentNo

File:
1 edited

Legend:

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

    r5135 r5174  
    117117}
    118118
    119 Value * KernelInterface::createInstance(std::vector<Value *> args,
    120                                         std::vector<StreamSetBuffer *> inputBuffers,
    121                                         std::vector<StreamSetBuffer *> outputBuffers) {
    122     Value * kernelInstance = iBuilder->CreateAlloca(mKernelStateType);
    123     Module * m = iBuilder->getModule();
    124     std::vector<Value *> init_args = {kernelInstance};
    125     for (auto a : args) {
    126         init_args.push_back(a);
    127     }
    128     for (auto b : inputBuffers) {
    129         init_args.push_back(b->getStreamSetStructPtr());
    130     }
    131     for (auto b : outputBuffers) {
    132         init_args.push_back(b->getStreamSetStructPtr());
    133     }
    134     std::string initFnName = mKernelName + init_suffix;
    135     Function * initMethod = m->getFunction(initFnName);
    136     if (!initMethod) {
    137         throw std::runtime_error("Cannot find " + initFnName);
    138     }
    139     iBuilder->CreateCall(initMethod, init_args);
    140     return kernelInstance;
    141 }
    142 
    143119Value * KernelInterface::createDoBlockCall(Value * self) {
    144120    Module * m = iBuilder->getModule();
Note: See TracChangeset for help on using the changeset viewer.