Ignore:
Timestamp:
Feb 3, 2017, 1:25:53 PM (3 years ago)
Author:
nmedfort
Message:

Partial removal of BlockNo?

File:
1 edited

Legend:

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

    r5292 r5297  
    3838}
    3939       
    40 void ScanMatchKernel::generateDoBlockMethod(Value * blockNo) {
     40void ScanMatchKernel::generateDoBlockMethod() {
    4141
    4242    auto savePoint = iBuilder->saveIP();
     
    4747    const unsigned fieldCount = iBuilder->getBitBlockWidth() / T->getBitWidth();
    4848    Type * scanwordVectorType =  VectorType::get(T, fieldCount);
     49    Value * blockNo = getBlockNo();
    4950    Value * scanwordPos = iBuilder->CreateMul(blockNo, ConstantInt::get(blockNo->getType(), iBuilder->getBitBlockWidth()));   
    5051    Value * recordStart = getScalarField("LineStart");
    5152    Value * recordNum = getScalarField("LineNum");
    52     Value * matches = iBuilder->CreateBlockAlignedLoad(getStream("matchResults", blockNo, iBuilder->getInt32(0)));
    53     Value * linebreaks = iBuilder->CreateBlockAlignedLoad(getStream("matchResults", blockNo, iBuilder->getInt32(1)));
     53    Value * matches = iBuilder->CreateBlockAlignedLoad(getInputStream("matchResults", iBuilder->getInt32(0)));
     54    Value * linebreaks = iBuilder->CreateBlockAlignedLoad(getInputStream("matchResults", iBuilder->getInt32(1)));
    5455    Value * matchWordVector = iBuilder->CreateBitCast(matches, scanwordVectorType);
    5556    Value * breakWordVector = iBuilder->CreateBitCast(linebreaks, scanwordVectorType);
Note: See TracChangeset for help on using the changeset viewer.