Ignore:
Timestamp:
Jan 25, 2017, 11:01:55 AM (2 years ago)
Author:
cameron
Message:

Elimination of StreamSetStructs? wrapping StreamSetBuffers?

File:
1 edited

Legend:

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

    r5260 r5276  
    1515namespace parabix {
    1616   
    17 // Stream Set Structs hold information about the current state of a stream set buffer.
    18 
    19 llvm::Value * getProducerPosPtr(IDISA::IDISA_Builder * b, llvm::Value * self);
    20 llvm::Value * getConsumerPosPtr(IDISA::IDISA_Builder * b, llvm::Value * self);
    21 llvm::Value * getEndOfInputPtr(IDISA::IDISA_Builder * b, llvm::Value * self);
    22 llvm::Value * getStreamSetBufferPtr(IDISA::IDISA_Builder * b, llvm::Value * self);
    23 
    2417class StreamSetBuffer {
    2518    friend class kernel::KernelBuilder;
     
    4134    }
    4235
    43     llvm::PointerType * getStreamSetStructPointerType() const {
    44         return mStreamSetStructType->getPointerTo();
    45     }
    46 
    4736    size_t getBufferSize() const { return mBufferBlocks; }
    4837
    4938    llvm::Value * getStreamSetBasePtr() const { return mStreamSetBufferPtr; }
    50 
    51     llvm::Value * getStreamSetStructPtr() const { return mStreamSetStructPtr; }
    5239
    5340    virtual void allocateBuffer();
     
    6148    virtual llvm::Value * getStreamView(llvm::Type * type, llvm::Value * self, llvm::Value * blockNo, llvm::Value * index) const;
    6249
    63     llvm::Value * getProducerPosPtr(llvm::Value * self) const;
    64 
    65     void setProducerPos(llvm::Value * self, llvm::Value * pos) const;
    66 
    67     llvm::Value * getConsumerPosPtr(llvm::Value * self) const;
    68 
    69     virtual void setConsumerPos(llvm::Value * self, llvm::Value * pos) const;
    70 
    71     llvm::Value * getEndOfInputPtr(llvm::Value * self) const;
    72 
    73     void setEndOfInput(llvm::Value * self) const;
    74    
    7550    llvm::Type * resolveStreamTypes(llvm::Type * type);
    7651   
     
    8964    const int                       mAddrSpace;
    9065    llvm::Value *                   mStreamSetBufferPtr;
    91     llvm::Value *                   mStreamSetStructPtr;
    92     llvm::Type * const              mStreamSetStructType;
    9366};   
    9467
     
    147120    // Reset the buffer to contain data starting at the base block of new_consumer_pos,
    148121    // copying back any data beyond that position.
    149     void setConsumerPos(llvm::Value * self, llvm::Value * newConsumerPos) const override;
     122    //void setConsumerPos(llvm::Value * self, llvm::Value * newConsumerPos) const override;
    150123
    151124protected:
Note: See TracChangeset for help on using the changeset viewer.