Ignore:
Timestamp:
Apr 28, 2017, 2:50:59 PM (2 years ago)
Author:
nmedfort
Message:

Refactored source kernels. icgrep from stdin should now be able to handle any file size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/array-test.cpp

    r5425 r5429  
    77#include <IR_Gen/idisa_builder.h>                  // for IDISA_Builder
    88#include <IR_Gen/idisa_target.h>                   // for GetIDISA_Builder
    9 #include <kernels/mmap_kernel.h>                   // for MMapSourceKernel
     9#include <kernels/source_kernel.h>
    1010#include <kernels/s2p_kernel.h>                    // for S2PKernel
    1111#include <kernels/alignedprint.h>
     
    142142    const unsigned bufferSegments = codegen::BufferSegments;
    143143   
    144     ExternalFileBuffer ByteStream(iBuilder, iBuilder->getStreamSetTy(1, 8));
     144    SourceBuffer ByteStream(iBuilder, iBuilder->getStreamSetTy(1, 8));
    145145
    146146    MMapSourceKernel mmapK(iBuilder, segmentSize);
     
    170170    iBuilder->SetInsertPoint(BasicBlock::Create(mod->getContext(), "entry", main, 0));
    171171
    172     ByteStream.setStreamSetBuffer(inputStream);
     172 //   ByteStream.setExternalBuffer(inputStream);
    173173    BasisBits.allocateBuffer();
    174174    matches.allocateBuffer();
Note: See TracChangeset for help on using the changeset viewer.