Ignore:
Timestamp:
Aug 9, 2016, 11:57:23 AM (3 years ago)
Author:
cameron
Message:

AddrSpace? parameter for external buffers

File:
1 edited

Legend:

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

    r5106 r5122  
    7777    static inline bool classof(const StreamSetBuffer * b) {return b->getBufferKind() == BufferKind::ExternalUnboundedBuffer;}
    7878   
    79     ExternalUnboundedBuffer(IDISA::IDISA_Builder * b, StreamSetType ss_type) :
     79    ExternalUnboundedBuffer(IDISA::IDISA_Builder * b, StreamSetType ss_type, unsigned AddressSpace = 0) :
    8080        StreamSetBuffer(BufferKind::ExternalUnboundedBuffer, b, ss_type) {
    8181            mBufferBlocks = 0;
     82            mAddrSpace = AddressSpace;
    8283        }
    8384   
    84     void setStreamSetBuffer(llvm::Value * ptr) {mStreamSetBufferPtr = ptr;}
     85    void setStreamSetBuffer(llvm::Value * ptr);
    8586   
    8687    size_t getBufferSize() override;
     
    8889    llvm::Value * allocateBuffer() override;
    8990    llvm::Value * getStreamSetBlockPointer(llvm::Value * bufferBasePtr, llvm::Value * blockNo) override;
     91
     92private:
     93    unsigned mAddrSpace;
    9094};
    9195
Note: See TracChangeset for help on using the changeset viewer.