Ignore:
Timestamp:
Mar 22, 2016, 5:14:05 PM (3 years ago)
Author:
nmedfort
Message:

First attempt at dynamic segment size intergration.

File:
1 edited

Legend:

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

    r4983 r4986  
    1313public:
    1414
    15     void call(llvm::Value * inputStreams) {
    16         assert (inputStreams);
    17         return mDefinition->call(mMemory, inputStreams);
     15    void CreateDoBlockCall() {
     16        mDefinition->CreateDoBlockCall(mMemory);
    1817    }
    1918
     
    5049    }
    5150
    52     llvm::Value * getOutputStreamSet(const unsigned streamOffset = 0) {
    53         return mDefinition->getOutputStreamSet(mMemory, streamOffset);
     51    void clearOutputStream(const unsigned streamOffset = 0) {
     52        mDefinition->clearOutputStream(mMemory, streamOffset);
     53    }
     54
     55    inline std::pair<llvm::Value *, unsigned> getOutputStreamSet() const {
     56        return std::make_pair(mMemory, mDefinition->getBufferSize());
    5457    }
    5558
     
    6063    llvm::Value * getBlockNo() {
    6164        return mDefinition->getBlockNo(mMemory);
     65    }
     66
     67    unsigned getBufferSize() const {
     68        return mDefinition->getBufferSize();
    6269    }
    6370
Note: See TracChangeset for help on using the changeset viewer.