Ignore:
Timestamp:
Aug 20, 2017, 10:19:39 PM (21 months ago)
Author:
cameron
Message:

Automatic expansion of dynamic buffers in pipeline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/toolchain/pipeline.cpp

    r5597 r5615  
    536536        const auto & outputs = kernel->getStreamOutputs();
    537537
     538        std::vector<Value *> inputAvail;
    538539        std::vector<Value *> args = {kernel->getInstance(), terminated};
     540       
    539541        for (unsigned i = 0; i < inputs.size(); ++i) {
    540542            const auto f = producedPos.find(kernel->getStreamSetInputBuffer(i));
     
    542544                report_fatal_error(kernel->getName() + " uses stream set " + inputs[i].name + " prior to its definition");
    543545            }
     546            inputAvail.push_back(f->second);
    544547            args.push_back(f->second);
    545548        }
     549        applyOutputBufferExpansions(iBuilder, inputAvail, terminated);
    546550
    547551        iBuilder->createDoSegmentCall(args);
Note: See TracChangeset for help on using the changeset viewer.