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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.