Ignore:
Timestamp:
Jul 21, 2016, 6:55:10 AM (3 years ago)
Author:
cameron
Message:

getStreamSetBlockPtr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/pablo_compiler.cpp

    r5102 r5104  
    6464     
    6565    Value * blockNo = mKernelBuilder->getScalarField(mSelf, blockNoScalar);
    66     Value * inputBase_ptr = mKernelBuilder->getScalarField(mSelf, mKernelBuilder->mStreamSetInputs[0].ssName + basePtrSuffix);
    67     Value * inputSet_ptr  = mKernelBuilder->mStreamSetInputs[0].ssType.getStreamSetBlockPointer(inputBase_ptr, blockNo);
     66    std::string inputName = mKernelBuilder->mStreamSetInputs[0].ssName;
     67    Value * inputSet_ptr  = mKernelBuilder->getStreamSetBlockPtr(mSelf, inputName, blockNo);
    6868
    6969    Value * outputSet_ptr = nullptr;
    7070    if (mPabloFunction->getNumOfResults() > 0) {
    71         Value * outputBase_ptr = mKernelBuilder->getScalarField(mSelf, mKernelBuilder->mStreamSetOutputs[0].ssName + basePtrSuffix);
    72         outputSet_ptr = mKernelBuilder->mStreamSetOutputs[0].ssType.getStreamSetBlockPointer(outputBase_ptr, blockNo);
     71        std::string outputName = mKernelBuilder->mStreamSetOutputs[0].ssName;
     72        outputSet_ptr = mKernelBuilder->getStreamSetBlockPtr(mSelf, outputName, blockNo);
    7373    }
    7474    for (unsigned j = 0; j < mPabloFunction->getNumOfParameters(); ++j) {
Note: See TracChangeset for help on using the changeset viewer.