Ignore:
Timestamp:
Feb 10, 2017, 1:48:34 PM (2 years ago)
Author:
nmedfort
Message:

Adjusted pablo compiler to use getInputStream and getOutputStream when accessing packed stream fields.

File:
1 edited

Legend:

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

    r5307 r5310  
    183183    llvm::Value * getOutputStream(const std::string & name, llvm::Value * streamIndex, llvm::Value * packIndex) const;
    184184
    185     llvm::Value * getRawItemPointer(const std::string & name, llvm::Value * streamIndex, llvm::Value * absolutePosition) const;
     185    llvm::Value * getRawInputPointer(const std::string & name, llvm::Value * streamIndex, llvm::Value * absolutePosition) const;
     186
     187    llvm::Value * getRawOutputPointer(const std::string & name, llvm::Value * streamIndex, llvm::Value * absolutePosition) const;
    186188
    187189    llvm::Value * getScalarFieldPtr(const std::string & name) const {
     
    193195    }
    194196
    195     llvm::Value * getStreamSetPtr(const std::string & name, llvm::Value * blockNo) const;
     197    llvm::Value * getInputStreamSetPtr(const std::string & name, llvm::Value * blockNo) const;
    196198
    197199    inline llvm::Value * getProcessedItemCount(const std::string & name) const {
     
    241243    unsigned getStreamSetIndex(const std::string & name) const;
    242244
    243     const parabix::StreamSetBuffer * getStreamSetBuffer(const std::string & name) const;
     245    const parabix::StreamSetBuffer * getInputStreamSetBuffer(const std::string & name) const {
     246        return mStreamSetInputBuffers[getStreamSetIndex(name)];
     247    }
     248
     249    const parabix::StreamSetBuffer * getOutputStreamSetBuffer(const std::string & name) const {
     250        return mStreamSetOutputBuffers[getStreamSetIndex(name)];
     251    }
    244252
    245253    void callGenerateInitMethod();
Note: See TracChangeset for help on using the changeset viewer.