Ignore:
Timestamp:
Jan 31, 2017, 4:08:11 PM (2 years ago)
Author:
nmedfort
Message:

Removed 'function' and 'self' parameters from generateXXXMethod() functions.

File:
1 edited

Legend:

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

    r5287 r5292  
    4545
    4646    const std::vector<Binding> & getScalarOutputs() const { return mScalarOutputs;}
    47    
    48    
     47       
    4948    // Add ExternalLinkage method declarations for the kernel to a given client module.
    50     void addKernelDeclarations(llvm::Module * client) const;
     49    void addKernelDeclarations(llvm::Module * client);
    5150
    5251    virtual void createInstance() = 0;
     
    6463    }
    6564
    66     virtual llvm::Value * getProcessedItemCount(llvm::Value * self, const std::string & ssName) const = 0;
     65    virtual llvm::Value * getProcessedItemCount(llvm::Value * instance, const std::string & name) const = 0;
    6766
    68     virtual llvm::Value * getProducedItemCount(llvm::Value * self, const std::string & ssName) const = 0;
     67    virtual void setProcessedItemCount(llvm::Value * instance, const std::string & name, llvm::Value * value) const = 0;
    6968
    70     virtual llvm::Value * getTerminationSignal(llvm::Value * self) const = 0;
     69    virtual llvm::Value * getProducedItemCount(llvm::Value * instance, const std::string & name) const = 0;
     70
     71    virtual void setProducedItemCount(llvm::Value * instance, const std::string & name, llvm::Value * value) const = 0;
     72
     73    virtual llvm::Value * getTerminationSignal(llvm::Value * instance) const = 0;
     74
     75    virtual void setTerminationSignal(llvm::Value * instance) const = 0;
    7176   
    7277    void setLookAhead(unsigned lookAheadPositions) {
     
    102107    }
    103108   
    104     virtual void addAdditionalKernelDeclarations(llvm::Module * module, llvm::PointerType * selfType) const;
     109    virtual void addAdditionalKernelDeclarations(llvm::Module * module, llvm::PointerType * selfType) {}
    105110
    106111protected:
Note: See TracChangeset for help on using the changeset viewer.