Ignore:
Timestamp:
Feb 7, 2017, 3:23:42 PM (2 years ago)
Author:
nmedfort
Message:

Continued work on eliminating BlockNo?

File:
1 edited

Legend:

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

    r5299 r5307  
    175175    }
    176176
    177     llvm::Value * getInputStream(const std::string & name, llvm::Value * index) const;
    178 
    179     llvm::Value * getInputStream(const std::string & name, llvm::Value * index1, llvm::Value * index2) const;
    180 
    181     llvm::Value * getOutputStream(const std::string & name, llvm::Value * index) const;
    182 
    183     llvm::Value * getOutputStream(const std::string & name, llvm::Value * index1, llvm::Value * index2) const;
    184 
    185     llvm::Value * getStreamView(llvm::Type * type, const std::string & name, llvm::Value * blockNo, llvm::Value * index) const;
    186 
     177    llvm::Value * getInputStream(const std::string & name, llvm::Value * streamIndex) const;
     178
     179    llvm::Value * getInputStream(const std::string & name, llvm::Value * streamIndex, llvm::Value * packIndex) const;
     180
     181    llvm::Value * getOutputStream(const std::string & name, llvm::Value * streamIndex) const;
     182
     183    llvm::Value * getOutputStream(const std::string & name, llvm::Value * streamIndex, llvm::Value * packIndex) const;
     184
     185    llvm::Value * getRawItemPointer(const std::string & name, llvm::Value * streamIndex, llvm::Value * absolutePosition) const;
    187186
    188187    llvm::Value * getScalarFieldPtr(const std::string & name) const {
     
    234233    llvm::Value * getStreamSetBufferPtr(const std::string & name) const;
    235234
    236     llvm::Value * getStreamSetBufferPtr(llvm::Value * index) const;
     235//    llvm::Value * getStreamSetBufferPtr(llvm::Value * index) const;
    237236
    238237    llvm::Value * getScalarFieldPtr(llvm::Value * instance, const std::string & name) const;
     
    247246
    248247    void callGenerateDoSegmentMethod();
     248
     249private:
     250
     251    llvm::Value * computeBlockIndex(const std::vector<Binding> & binding, const std::string & name, llvm::Value * itemCount) const;
    249252
    250253protected:
     
    316319    virtual ~BlockOrientedKernel() { }
    317320
     321    llvm::Value * loadBlock(const std::string & inputName, llvm::Value * const streamIndex) const;
     322
     323    llvm::Value * loadPack(const std::string & inputName, llvm::Value * const streamIndex, llvm::Value * const packIndex) const;
     324
    318325    llvm::Function * getDoBlockFunction() const;
    319326
Note: See TracChangeset for help on using the changeset viewer.