Ignore:
Timestamp:
Jul 21, 2016, 6:55:10 AM (3 years ago)
Author:
cameron
Message:

getStreamSetBlockPtr

File:
1 edited

Legend:

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

    r5103 r5104  
    2222   
    2323class KernelBuilder : public KernelInterface {
    24     using NameMap = boost::container::flat_map<std::string, llvm::ConstantInt *>;
     24    using NameMap = boost::container::flat_map<std::string, unsigned>;
    2525
    2626public:
     
    9292    // Get a parameter by name.
    9393    llvm::Value * getParameter(llvm::Function * f, std::string paramName);
    94 
     94   
     95    // Stream set helpers.
     96    unsigned getStreamSetIndex(std::string ssName);
     97   
     98    llvm::Value * getStreamSetBasePtr(Value * self, std::string ssName);
     99   
     100    llvm::Value * getStreamSetBlockPtr(Value * self, std::string ssName, Value * blockNo);
     101       
    95102protected:
    96103
    97104    std::vector<llvm::Type *>  mKernelFields;
    98105    NameMap                    mInternalStateNameMap;
     106    NameMap                    mStreamSetNameMap;
    99107};
    100108}
Note: See TracChangeset for help on using the changeset viewer.