Ignore:
Timestamp:
Jul 23, 2016, 1:04:44 PM (3 years ago)
Author:
cameron
Message:

Use dynamic size_t determination

File:
1 edited

Legend:

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

    r5100 r5106  
    3636    llvm::Type * getStreamSetBlockType();
    3737
    38     virtual uint64_t getBufferSize() = 0;
     38    virtual size_t getBufferSize() = 0;
    3939   
    4040    virtual llvm::Value * allocateBuffer() = 0;
     
    5454    IDISA::IDISA_Builder * iBuilder;
    5555    StreamSetType mStreamSetType;
    56     uint64_t mBufferBlocks;
     56    size_t mBufferBlocks;
    5757    int mAddrSpace;
    5858    llvm::Value * mStreamSetBufferPtr;
     
    6868    StreamSetBuffer(BufferKind::BlockBuffer, b, ss_type) {}
    6969   
    70     uint64_t getBufferSize() override;
     70    size_t getBufferSize() override;
    7171    llvm::Value * allocateBuffer() override;
    7272    llvm::Value * getStreamSetBlockPointer(llvm::Value * bufferBasePtr, llvm::Value * blockNo) override;
     
    8484    void setStreamSetBuffer(llvm::Value * ptr) {mStreamSetBufferPtr = ptr;}
    8585   
    86     uint64_t getBufferSize() override;
     86    size_t getBufferSize() override;
    8787    // Can't allocate - raise an error. */
    8888    llvm::Value * allocateBuffer() override;
     
    9494    static inline bool classof(const StreamSetBuffer * b) {return b->getBufferKind() == BufferKind::CircularBuffer;}
    9595 
    96     CircularBuffer(IDISA::IDISA_Builder * b, StreamSetType ss_type, uint64_t bufferBlocks) :
     96    CircularBuffer(IDISA::IDISA_Builder * b, StreamSetType ss_type, size_t bufferBlocks) :
    9797        StreamSetBuffer(BufferKind::CircularBuffer, b, ss_type) {
    9898            mBufferBlocks = bufferBlocks;
     
    102102        }
    103103
    104     uint64_t getBufferSize() override;
     104    size_t getBufferSize() override;
    105105    llvm::Value * allocateBuffer() override;
    106106    llvm::Value * getStreamSetBlockPointer(llvm::Value * bufferBasePtr, llvm::Value * blockNo) override;
Note: See TracChangeset for help on using the changeset viewer.