Ignore:
Timestamp:
Sep 4, 2016, 8:47:47 PM (3 years ago)
Author:
cameron
Message:

pablo.Lookahead support updated for stream set access/kernel system

Location:
icGREP/icgrep-devel/icgrep/kernels
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/interface.h

    r5133 r5141  
    4747    mScalarOutputs(scalar_outputs),
    4848    mInternalScalars(internal_scalars),
    49     mKernelStateType(nullptr) {}
     49    mKernelStateType(nullptr),
     50    mLookAheadPositions(0) {}
    5051   
     52    unsigned getLookAhead() { return mLookAheadPositions; }
    5153   
    5254    // Add ExternalLinkage method declarations for the kernel to a given client module.
     
    6062    llvm::Value * createGetAccumulatorCall(llvm::Value * kernelInstance, std::string accumName);
    6163   
     64   
    6265protected:
    6366   
     
    7073    std::vector<ScalarBinding> mInternalScalars;
    7174    llvm::Type * mKernelStateType;
     75    unsigned mLookAheadPositions;
     76   
     77    void setLookAhead(unsigned lookAheadPositions) {mLookAheadPositions = lookAheadPositions;}
     78
    7279};
    7380#endif
  • icGREP/icgrep-devel/icgrep/kernels/p2s_kernel.cpp

    r5111 r5141  
    243243    IDISA::IDISA_Builder::InsertPoint savePoint = iBuilder->saveIP();
    244244    Module * m = iBuilder->getModule();
    245     Type * bitBlockPtrTy = llvm::PointerType::get(iBuilder->getBitBlockType(), 0);
    246245    Type * i8PtrTy = iBuilder->getInt8PtrTy();
    247246    Function * writefn = create_write(m);
  • icGREP/icgrep-devel/icgrep/kernels/pipeline.cpp

    r5139 r5141  
    8383    Value * initialBlockNo = nullptr;
    8484    BasicBlock * initialBlock = nullptr;
    85     Value * rslt = nullptr;
    8685   
    8786    if (segmentSize > 1) {
Note: See TracChangeset for help on using the changeset viewer.