Ignore:
Timestamp:
Jun 13, 2016, 9:26:31 AM (3 years ago)
Author:
cameron
Message:

getScalarIndex, getParameter

File:
1 edited

Legend:

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

    r5047 r5050  
    4343    // all required methods.  The init and accumulator output methods will be
    4444    // defined, while the doBlock and finalBlock methods will initially be empty.
    45     std::unique_ptr<llvm::Module> createKernelModule();
     45    virtual std::unique_ptr<llvm::Module> createKernelModule();
    4646   
    4747protected:
    4848    // Get the index of a named scalar within the kernel state struct.
    49     llvm::Value * getInputStreamSetIndex(std::string);
    50     llvm::Value * getOutputStreamSetIndex(std::string);
    5149    llvm::Value * getScalarIndex(std::string);
    52    
    53    
    54 private:
     50    // Get a parameter by name.
     51    llvm::Value * getParameter(Function * f, std::string paramName);
     52
    5553    IDISA::IDISA_Builder * iBuilder;
    5654    std::string mKernelName;
     
    6361    llvm::Type *               mKernelStateType;
    6462    NameMap                    mInternalStateNameMap;
    65 
     63    NameMap                    mStreamSetNameMap;
    6664};
    6765
Note: See TracChangeset for help on using the changeset viewer.