Changeset 5595


Ignore:
Timestamp:
Aug 4, 2017, 7:22:18 AM (4 months ago)
Author:
cameron
Message:

Fix LLVM type error

Location:
icGREP/icgrep-devel/icgrep/kernels
Files:
2 edited

Legend:

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

    r5594 r5595  
    756756    // First prepare the multi-block method that will be used.
    757757
    758     DataLayout DL(kb->getModule());
    759     IntegerType * const intAddrTy = DL.getIntPtrType(kb->getContext());
    760 
    761758    std::vector<Type *> multiBlockParmTypes;
    762759    multiBlockParmTypes.push_back(mKernelStateType->getPointerTo());
     
    938935    }
    939936    for (unsigned i = 0; i < mStreamSetInputs.size(); i++) {
    940         //Value * bufPtr = kb->getRawInputPointer(mStreamSetInputs[i].name, kb->getInt32(0), processedItemCount[i]);
    941         //bufPtr = kb->CreatePointerCast(bufPtr, mStreamSetInputBuffers[i]->getPointerType());
    942         doMultiBlockArgs.push_back(inputBlockPtr[i]);
     937        Value * bufPtr = kb->CreatePointerCast(inputBlockPtr[i], mStreamSetInputBuffers[i]->getPointerType());
     938        doMultiBlockArgs.push_back(bufPtr);
    943939    }
    944940    for (unsigned i = 0; i < mStreamSetOutputs.size(); i++) {
    945         //Value * bufPtr = kb->getRawOutputPointer(mStreamSetOutputs[i].name, kb->getInt32(0), producedItemCount[i]);
    946         //bufPtr = kb->CreatePointerCast(bufPtr, mStreamSetOutputBuffers[i]->getPointerType());
    947         doMultiBlockArgs.push_back(outputBlockPtr[i]);
     941        Value * bufPtr = kb->CreatePointerCast(outputBlockPtr[i], mStreamSetOutputBuffers[i]->getPointerType());
     942        doMultiBlockArgs.push_back(bufPtr);
    948943    }
    949944
  • icGREP/icgrep-devel/icgrep/kernels/kernel.h

    r5594 r5595  
    338338    * pointers to linear contiguous buffer areas for each of the input stream sets, and
    339339    * pointers to linear contiguous output buffer areas for each of the output stream sets.
     340    * in each pointers are to the beginning of the block corresponding to the
     341      processedItemCount or producedItemCount of the given stream set.
    340342 
    341343    Notes:
Note: See TracChangeset for help on using the changeset viewer.