Ignore:
Timestamp:
Mar 29, 2017, 2:29:52 PM (2 years ago)
Author:
nmedfort
Message:

Support for stdin. Needs more testing.

File:
1 edited

Legend:

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

    r5318 r5377  
    245245    iBuilder->SetInsertPoint(BasicBlock::Create(m->getContext(), "entry", main,0));
    246246
    247     ChStream.setStreamSetBuffer(inputStream, fileSize);
     247    ChStream.setStreamSetBuffer(inputStream);
    248248    MatchResults.allocateBuffer();
    249249   
     
    324324    iBuilder->SetInsertPoint(BasicBlock::Create(m->getContext(), "entry", main,0));
    325325
    326     ByteStream.setStreamSetBuffer(inputStream, fileSize);
     326    ByteStream.setStreamSetBuffer(inputStream);
    327327    BasisBits.allocateBuffer();
    328     CCResults.setStreamSetBuffer(outputStream, fileSize);
     328    CCResults.setStreamSetBuffer(outputStream);
    329329   
    330330    generatePipelineLoop(iBuilder, {&mmapK, &s2pk, &ccck});
     
    516516
    517517    Value * inputSize = iBuilder->CreateLoad(inputSizePtr);
    518     CCStream.setStreamSetBuffer(inputThreadPtr, inputSize);
    519     ResultStream.setEmptyBuffer(resultStreamPtr);
     518    CCStream.setStreamSetBuffer(inputThreadPtr);
     519    ResultStream.setStreamSetBuffer(resultStreamPtr);
    520520    mmapK.setInitialArguments({inputSize});
    521521
     
    644644    iBuilder->SetInsertPoint(BasicBlock::Create(M->getContext(), "entry", main,0));
    645645
    646     MatchResults.setStreamSetBuffer(inputStream, fileSize);
     646    MatchResults.setStreamSetBuffer(inputStream);
    647647    mmapK.setInitialArguments({fileSize});
    648648   
Note: See TracChangeset for help on using the changeset viewer.