Ignore:
Timestamp:
Aug 16, 2015, 3:55:50 PM (4 years ago)
Author:
cameron
Message:

Embed carry data in compiled LLVM module; eliminate passing of carry data pointers/size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/function.h

    r4692 r4726  
    2626    }
    2727
    28     static Prototype * Create(std::string name, const unsigned numOfParameters, const unsigned numOfResults, const unsigned requiredStateSpace, void * functionPtr = nullptr);
     28    static Prototype * Create(std::string name, const unsigned numOfParameters, const unsigned numOfResults, void * functionPtr = nullptr);
    2929
    3030    const String * getName() const {
     
    4040    }
    4141
    42     unsigned getRequiredStateSpace() const {
    43         return mRequiredStateSpace;
    44     }
    45 
    4642    void * getFunctionPtr() const {
    4743        return mFunctionPtr;
     
    4945
    5046protected:
    51     Prototype(const PabloAST::ClassTypeId type, std::string && name, const unsigned numOfParameters, const unsigned numOfResults, const unsigned requiredStateSpace, void * functionPtr);
     47    Prototype(const PabloAST::ClassTypeId type, std::string && name, const unsigned numOfParameters, const unsigned numOfResults, void * functionPtr);
    5248protected:
    5349    const String * const    mName;
    5450    const unsigned          mNumOfParameters;
    5551    const unsigned          mNumOfResults;
    56     unsigned                mRequiredStateSpace;
    5752    void *                  mFunctionPtr;
    5853};
    5954
    60 inline Prototype * Prototype::Create(std::string name, const unsigned numOfParameters, const unsigned numOfResults, const unsigned requiredStateSpace, void * functionPtr) {
    61     return new Prototype(PabloAST::ClassTypeId::Prototype, std::move(name), numOfParameters, numOfResults, requiredStateSpace, functionPtr);
     55inline Prototype * Prototype::Create(std::string name, const unsigned numOfParameters, const unsigned numOfResults, void * functionPtr) {
     56    return new Prototype(PabloAST::ClassTypeId::Prototype, std::move(name), numOfParameters, numOfResults, functionPtr);
    6257}
    6358
     
    143138    }
    144139
    145     void setRequiredStateSpace(const unsigned value) {
    146         mRequiredStateSpace = value;
    147     }
    148 
    149140    void setFunctionPtr(void * functionPtr) {
    150141        mFunctionPtr = functionPtr;
Note: See TracChangeset for help on using the changeset viewer.