Changeset 5576


Ignore:
Timestamp:
Jul 24, 2017, 11:48:36 AM (4 weeks ago)
Author:
lindanl
Message:

minor fixes.

Location:
icGREP/icgrep-devel/icgrep
Files:
2 edited

Legend:

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

    r5528 r5576  
    285285    Type * const outputType = PointerType::get(ArrayType::get(iBuilder->getBitBlockType(), 4), 0);
    286286
     287    const unsigned segmentSize = codegen::SegmentSize;
     288    const unsigned bufferSegments = codegen::BufferSegments;
     289
    287290    Function * const main = cast<Function>(m->getOrInsertFunction("Main", voidTy, int32Ty, outputType, nullptr));
    288291    main->setCallingConv(CallingConv::C);
     
    302305    pxDriver.makeKernelCall(mmapK, {}, {ByteStream});
    303306
    304     auto BasisBits = pxDriver.addBuffer(make_unique<CircularBuffer>(iBuilder, iBuilder->getStreamSetTy(8), 1));
     307    auto BasisBits = pxDriver.addBuffer(make_unique<CircularBuffer>(iBuilder, iBuilder->getStreamSetTy(8), segmentSize * bufferSegments));
    305308    auto s2pk = pxDriver.addKernelInstance(make_unique<S2PKernel>(iBuilder));
    306 
    307309    pxDriver.makeKernelCall(s2pk, {ByteStream}, {BasisBits});
    308310
    309311    auto CCResults = pxDriver.addExternalBuffer(make_unique<ExternalBuffer>(iBuilder, iBuilder->getStreamSetTy(4), outputStream));
    310 
    311312    auto ccck = pxDriver.addKernelInstance(make_unique<PreprocessKernel>(iBuilder));
    312 
    313313    pxDriver.makeKernelCall(ccck, {BasisBits}, {CCResults});
    314314
  • icGREP/icgrep-devel/icgrep/kernels/cc_kernel.h

    r5440 r5576  
    1717    DirectCharacterClassKernelBuilder(const std::unique_ptr<KernelBuilder> & b, std::string ccSetName, std::vector<re::CC *> charClasses, unsigned codeUnitSize);
    1818    void generateDoBlockMethod(const std::unique_ptr<KernelBuilder> & iBuilder) override;
     19    bool isCachable() const override { return true;}
    1920private:
    2021    const std::vector<re::CC *> mCharClasses;
Note: See TracChangeset for help on using the changeset viewer.