Ignore:
Timestamp:
Apr 3, 2016, 4:31:22 PM (3 years ago)
Author:
nmedfort
Message:

Redesigned buffer system to allow the pipeline to control selection of the current input and output streams; DoBlock? functions containing lookahead now take multiple input stream arguments. Selection and passing occurs automatically. Some work on Symbol Table.

File:
1 edited

Legend:

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

    r4991 r5000  
    3737
    3838void PipelineBuilder::CreateKernels(PabloFunction * function, bool isNameExpression){
    39     mS2PKernel = new KernelBuilder("s2p", mMod, iBuilder, SegmentSize);
    40     mICgrepKernel = new KernelBuilder("icgrep", mMod, iBuilder, SegmentSize);
    41     mScanMatchKernel = new KernelBuilder("scanMatch", mMod, iBuilder, SegmentSize);
     39    mS2PKernel = new KernelBuilder(iBuilder, "s2p", SegmentSize);
     40    mICgrepKernel = new KernelBuilder(iBuilder, "icgrep", SegmentSize);
     41    mScanMatchKernel = new KernelBuilder(iBuilder, "scanMatch", SegmentSize);
    4242    generateS2PKernel(mMod, iBuilder, mS2PKernel);
    4343    generateScanMatch(mMod, iBuilder, 64, mScanMatchKernel, isNameExpression);
     
    9595
    9696    Instance * s2pInstance = mS2PKernel->instantiate(inputStream);
    97     Instance * icGrepInstance = mICgrepKernel->instantiate(s2pInstance->getOutputStreamSet());
    98     Instance * scanMatchInstance = mScanMatchKernel->instantiate(icGrepInstance->getOutputStreamSet());
     97    Instance * icGrepInstance = mICgrepKernel->instantiate(s2pInstance->getResultSet());
     98    Instance * scanMatchInstance = mScanMatchKernel->instantiate(icGrepInstance->getResultSet());
    9999
    100100    Value * ptr = iBuilder->CreateBitCast(inputStream, int8PtrTy);
Note: See TracChangeset for help on using the changeset viewer.