Changeset 5443


Ignore:
Timestamp:
May 11, 2017, 10:20:55 PM (21 months ago)
Author:
cameron
Message:

Save and set/restore instance before/after dispatch to generateMultiBlockLogic

File:
1 edited

Legend:

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

    r5442 r5443  
    608608    auto ip = iBuilder->saveIP();
    609609    Function * const cp = mCurrentMethod;
     610    const auto saveInstance = getInstance();
    610611   
    611612    // First prepare the multi-block method that will be used.
     
    627628    auto args = multiBlockFunction->arg_begin();
    628629    args->setName("self");
     630    setInstance(&*args);
    629631    (++args)->setName("itemsToDo");
    630632    for (auto binding : mStreamSetInputs) {
     
    645647    iBuilder->restoreIP(ip);
    646648    mCurrentMethod = cp;
     649    setInstance(saveInstance);
    647650   
    648651    // Now proceed with creation of the doSegment method.
Note: See TracChangeset for help on using the changeset viewer.