Ignore:
Timestamp:
Jul 2, 2017, 8:06:05 AM (2 years ago)
Author:
cameron
Message:

Buffer handles: bug fix

File:
1 edited

Legend:

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

    r5525 r5542  
    149149            report_fatal_error(getName() + ": " + mStreamSetInputs[i].name + " requires buffer size " + std::to_string(requiredBlocks));
    150150        }
    151         mScalarInputs.emplace_back(mStreamSetInputBuffers[i]->getPointerType(), mStreamSetInputs[i].name + BUFFER_PTR_SUFFIX);
     151        mScalarInputs.emplace_back(mStreamSetInputBuffers[i]->getStreamSetHandle()->getType(), mStreamSetInputs[i].name + BUFFER_PTR_SUFFIX);
    152152        if ((i == 0) || !mStreamSetInputs[i].rate.isExact()) {
    153153            addScalar(idb->getSizeTy(), mStreamSetInputs[i].name + PROCESSED_ITEM_COUNT_SUFFIX);
     
    168168
    169169        }
    170         mScalarInputs.emplace_back(mStreamSetOutputBuffers[i]->getPointerType(), mStreamSetOutputs[i].name + BUFFER_PTR_SUFFIX);
     170        mScalarInputs.emplace_back(mStreamSetOutputBuffers[i]->getStreamSetHandle()->getType(), mStreamSetOutputs[i].name + BUFFER_PTR_SUFFIX);
    171171        if ((mStreamSetInputs.empty() && (i == 0)) || !mStreamSetOutputs[i].rate.isExact()) {
    172172            addScalar(sizeTy, mStreamSetOutputs[i].name + PRODUCED_ITEM_COUNT_SUFFIX);
     
    330330    for (unsigned i = 0; i < mStreamSetInputBuffers.size(); ++i) {
    331331        assert (mStreamSetInputBuffers[i]);
    332         Value * arg = mStreamSetInputBuffers[i]->getStreamSetBasePtr();
     332        Value * arg = mStreamSetInputBuffers[i]->getStreamSetHandle();
    333333        if (LLVM_UNLIKELY(arg == nullptr)) {
    334334            report_fatal_error(getName() + ": input stream set " + std::to_string(i)
     
    340340    for (unsigned i = 0; i < mStreamSetOutputBuffers.size(); ++i) {
    341341        assert (mStreamSetOutputBuffers[i]);
    342         Value * arg = mStreamSetOutputBuffers[i]->getStreamSetBasePtr();
     342        Value * arg = mStreamSetOutputBuffers[i]->getStreamSetHandle();
    343343        if (LLVM_UNLIKELY(arg == nullptr)) {
    344344            report_fatal_error(getName() + ": output stream set " + std::to_string(i)
Note: See TracChangeset for help on using the changeset viewer.