Ignore:
Timestamp:
Dec 5, 2016, 1:08:23 PM (2 years ago)
Author:
cameron
Message:

Automate instance creation

File:
1 edited

Legend:

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

    r5202 r5220  
    5353    void addKernelDeclarations(Module * client);
    5454   
    55     virtual llvm::Value * createInstance(std::vector<llvm::Value *> initialParameters);
     55    void setInitialArguments(std::vector<llvm::Value *> initialParameters);
     56    virtual void createInstance();
     57    llvm::Value * getInstance() {return mKernelInstance;};
    5658
    5759    llvm::Value * createDoSegmentCall(llvm::Value * kernelInstance, llvm::Value * blkCount);
     
    101103    IDISA::IDISA_Builder * const iBuilder;
    102104    std::string mKernelName;
     105    std::vector<Value *> mInitialArguments;
    103106    std::vector<Binding> mStreamSetInputs;
    104107    std::vector<Binding> mStreamSetOutputs;
     
    107110    std::vector<Binding> mInternalScalars;
    108111    llvm::Type * mKernelStateType;
     112    llvm::Value * mKernelInstance;
    109113    unsigned mLookAheadPositions;
    110114   
Note: See TracChangeset for help on using the changeset viewer.