Ignore:
Timestamp:
May 19, 2017, 12:03:57 PM (2 years ago)
Author:
cameron
Message:

Deprecating SingleBlockBuffer?

Location:
icGREP/icgrep-devel/icgrep/kernels
Files:
2 edited

Legend:

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

    r5454 r5457  
    167167
    168168
    169 // Single Block Buffer
    170 
    171 // For a single block buffer, the block pointer is always the buffer base pointer.
    172 Value * SingleBlockBuffer::getStreamSetBlockPtr(IDISA::IDISA_Builder * const, Value * self, Value *) const {
    173     return self;
    174 }
    175 
    176169// Source File Buffer
    177170Value * SourceBuffer::getBufferedSize(IDISA::IDISA_Builder * const iBuilder, Value * self) const {
     
    472465}
    473466
    474 // Constructors
    475 SingleBlockBuffer::SingleBlockBuffer(const std::unique_ptr<kernel::KernelBuilder> &  b, Type * type)
    476 : StreamSetBuffer(BufferKind::BlockBuffer, type, resolveStreamSetType(b, type), 1, 0) {
    477     mUniqueID = "S";
    478 }
    479 
    480467SourceBuffer::SourceBuffer(const std::unique_ptr<kernel::KernelBuilder> & b, Type * type, unsigned MemoryAddressSpace, unsigned StructAddressSpace)
    481468: StreamSetBuffer(BufferKind::SourceBuffer, type, StructType::get(resolveStreamSetType(b, type)->getPointerTo(MemoryAddressSpace), b->getSizeTy(), nullptr), 0, StructAddressSpace) {
  • icGREP/icgrep-devel/icgrep/kernels/streamset.h

    r5452 r5457  
    2121
    2222    enum class BufferKind : unsigned {
    23         BlockBuffer
    24         , SourceBuffer
     23        SourceBuffer
    2524        , ExternalBuffer
    2625        , CircularBuffer
     
    132131};   
    133132
    134 class SingleBlockBuffer final : public StreamSetBuffer {
    135 public:
    136     static inline bool classof(const StreamSetBuffer * b) {
    137         return b->getBufferKind() == BufferKind::BlockBuffer;
    138     }   
    139 
    140     SingleBlockBuffer(const std::unique_ptr<kernel::KernelBuilder> & b, llvm::Type * type);
    141 
    142 protected:
    143 
    144     llvm::Value * getStreamSetBlockPtr(IDISA::IDISA_Builder * const iBuilder, llvm::Value * self, llvm::Value * blockNo) const override;
    145 };
    146 
    147133class SourceBuffer final : public StreamSetBuffer {
    148134public:
Note: See TracChangeset for help on using the changeset viewer.