Ignore:
Timestamp:
Feb 20, 2017, 10:39:44 AM (2 years ago)
Author:
xuedongx
Message:

add LineBreak? kernel for icGrep

File:
1 edited

Legend:

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

    r5317 r5333  
    5151    Value * recordStart = getScalarField("LineStart");
    5252    Value * recordNum = getScalarField("LineNum");
    53     Value * matches = loadInputStreamBlock("matchResults", iBuilder->getInt32(0));
    54     Value * linebreaks = loadInputStreamBlock("matchResults", iBuilder->getInt32(1));
     53    Value * matches = loadInputStreamBlock("matchResult", iBuilder->getInt32(0));
     54    Value * linebreaks = loadInputStreamBlock("lineBreak", iBuilder->getInt32(0));
    5555    Value * matchWordVector = iBuilder->CreateBitCast(matches, scanwordVectorType);
    5656    Value * breakWordVector = iBuilder->CreateBitCast(linebreaks, scanwordVectorType);
     
    248248ScanMatchKernel::ScanMatchKernel(IDISA::IDISA_Builder * iBuilder, GrepType grepType)
    249249: BlockOrientedKernel(iBuilder, "scanMatch",
    250     {Binding{iBuilder->getStreamSetTy(2, 1), "matchResults"}},
     250    {Binding{iBuilder->getStreamSetTy(1, 1), "matchResult"}, Binding{iBuilder->getStreamSetTy(1, 1), "lineBreak"}},
    251251    {},
    252252    {Binding{iBuilder->getInt8PtrTy(), "FileBuf"}, Binding{iBuilder->getSizeTy(), "FileSize"}, Binding{iBuilder->getSizeTy(), "FileIdx"}},
Note: See TracChangeset for help on using the changeset viewer.