Ignore:
Timestamp:
Mar 10, 2016, 4:10:02 PM (3 years ago)
Author:
nmedfort
Message:

Some fixes for threading and kernel builder.

File:
1 edited

Legend:

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

    r4959 r4968  
    3737    KernelBuilder(std::string name, llvm::Module * m, IDISA::IDISA_Builder * b);
    3838
    39     unsigned addInternalStateType(llvm::Type * type);
     39    unsigned addInternalStateType(llvm::Type * const type);
    4040    void addOutputStream(const unsigned fields);
    41     void addOutputAccum(llvm::Type * t);
     41    void addOutputAccum(llvm::Type * const type);
    4242    void addInputStream(const unsigned fields, std::string name);
    43     void addInputScalar(llvm::Type * t, std::string name);
     43    void addInputScalar(llvm::Type * const type, std::string name);
    4444
    4545    llvm::Function * prepareFunction();
     
    4949
    5050    llvm::Value * getInputStream(const unsigned index, const unsigned streamOffset = 0);
     51    llvm::Value * getInputScalar(const unsigned index);
    5152    llvm::Value * getKernelState(const unsigned index, const unsigned streamOffset = 0);
    5253    llvm::Value * getOutputStream(const unsigned index, const unsigned streamOffset = 0);
    53     llvm::Value * getOutputScalar(const unsigned index, const unsigned streamOffset = 0);
     54    llvm::Value * getOutputScalar(const unsigned index);
    5455
    5556    void finalize();
     
    6465    llvm::Value * getKernelStructParam() const;
    6566
    66     void setCircularBufferSize(const unsigned blocks);
     67    void setLongestLookaheadAmount(const unsigned bits);
    6768    void setBlocksPerSegment(const unsigned blocks);
    6869
     
    7273protected:
    7374
    74     llvm::Value * getOffset(const unsigned offset);
     75    llvm::Value * getOffset(const unsigned value);
    7576
    7677private:
     
    118119}
    119120
    120 inline void KernelBuilder::setCircularBufferSize(const unsigned blocks) {
    121     mCircularBufferModulo = blocks;
    122 }
    123 
    124121inline void KernelBuilder::setBlocksPerSegment(const unsigned blocks) {
    125122    mBlocksPerSegment = blocks;
Note: See TracChangeset for help on using the changeset viewer.