Changeset 5098


Ignore:
Timestamp:
Jul 17, 2016, 2:10:56 PM (3 years ago)
Author:
cameron
Message:

Eliminate args when DoSegment? routine calls DoBlock? routine.

File:
1 edited

Legend:

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

    r5096 r5098  
    149149    Value * blocksToDo = &*(args);
    150150   
    151     std::vector<Value *> basePtrs;
    152     std::vector<Value *> blockMasks;
    153 /*    for (auto sSet : mStreamSetInputs) {
    154         basePtrs.push_back(getScalarField(self, sSet.ssName + basePtrSuffix));
    155         blockMasks.push_back(getScalarField(self, sSet.ssName + blkMaskSuffix));
    156     }
    157     for (auto sSet : mStreamSetOutputs) {
    158         basePtrs.push_back(getScalarField(self, sSet.ssName + basePtrSuffix));
    159         blockMasks.push_back(getScalarField(self, sSet.ssName + blkMaskSuffix));
    160     }*/
    161    
    162151    iBuilder->CreateBr(blockLoop);
    163152   
     
    169158    std::vector<Value *> doBlockArgs = {self};
    170159
    171     for (auto sSet : mStreamSetInputs) {
    172         doBlockArgs.push_back(getCircularBufferBlockPointer(self, sSet.ssName, blockNo));
    173     }
    174     for (auto sSet : mStreamSetOutputs) {
    175         doBlockArgs.push_back(getCircularBufferBlockPointer(self, sSet.ssName, blockNo));
    176     }
    177 //    for (unsigned i = 0; i < basePtrs.size(); i++) {
    178 //        doBlockArgs.push_back(iBuilder->CreateGEP(basePtrs[i], iBuilder->CreateAnd(blockNo, blockMasks[i])));
    179 //    }
    180160    Value * rslt = iBuilder->CreateCall(doBlockFunction, doBlockArgs);
    181161    setScalarField(self, blockNoScalar, iBuilder->CreateAdd(blockNo, iBuilder->getInt64(1)));
Note: See TracChangeset for help on using the changeset viewer.