Ignore:
Timestamp:
Feb 10, 2017, 3:55:14 PM (2 years ago)
Author:
nmedfort
Message:

Removed BlockNo? + updated LookAhead? to use getInputStream.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/editd/editdscan_kernel.cpp

    r5297 r5311  
    2626    Type * T = iBuilder->getIntNTy(mScanwordBitWidth);
    2727    VectorType * scanwordVectorType =  VectorType::get(T, fieldCount);
    28     Value * blockNo = getBlockNo();
     28    Value * blockNo = getScalarField("BlockNo");
    2929    Value * scanwordPos = iBuilder->CreateMul(blockNo, ConstantInt::get(blockNo->getType(), iBuilder->getBitBlockWidth()));
    3030   
     
    4343        scanwordPos = iBuilder->CreateAdd(scanwordPos, ConstantInt::get(T, mScanwordBitWidth));
    4444    }
     45
     46    setScalarField("BlockNo", iBuilder->CreateAdd(blockNo, iBuilder->getSize(1)));
    4547}
    4648
     
    9496BlockOrientedKernel(iBuilder, "scanMatch",
    9597              {Binding{iBuilder->getStreamSetTy(dist + 1), "matchResults"}},
    96               {}, {}, {}, {}),
     98              {}, {}, {}, {Binding{iBuilder->getSizeTy(), "BlockNo"}}),
    9799mEditDistance(dist),
    98100mScanwordBitWidth(iBuilder->getSizeTy()->getBitWidth()) {
Note: See TracChangeset for help on using the changeset viewer.