Ignore:
Timestamp:
Mar 29, 2017, 2:29:52 PM (2 years ago)
Author:
nmedfort
Message:

Support for stdin. Needs more testing.

File:
1 edited

Legend:

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

    r5370 r5377  
    4747
    4848    virtual void setProducedItemCount(llvm::Value * instance, const std::string & name, llvm::Value * value) const;
     49
     50    virtual llvm::Value * reserveItemCount(llvm::Value * instance, const std::string & name, llvm::Value * requested) const;
    4951
    5052    bool hasNoTerminateAttribute() { return mNoTerminateAttribute;}
     
    194196    llvm::Value * getRawOutputPointer(const std::string & name, llvm::Value * streamIndex, llvm::Value * absolutePosition) const;
    195197
     198    llvm::Value * reserveItemCount(const std::string & name, llvm::Value * requested) const {
     199        return reserveItemCount(getSelf(), name, requested);
     200    }
     201
    196202    llvm::Value * getScalarFieldPtr(const std::string & name) const {
    197203        return getScalarFieldPtr(getSelf(), name);
     
    225231        return setTerminationSignal(getSelf());
    226232    }
    227 
    228233
    229234    llvm::Value * getSelf() const {
Note: See TracChangeset for help on using the changeset viewer.