Ignore:
Timestamp:
Jul 18, 2015, 10:18:34 AM (4 years ago)
Author:
nmedfort
Message:

First attempt to intergrate 'generate_predefined_ucd_functions' into build process.

File:
1 edited

Legend:

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

    r4680 r4684  
    55namespace pablo {
    66
    7 Prototype::Prototype(const PabloAST::ClassTypeId type, std::string && name, const unsigned numOfParameters, const unsigned numOfResults, const unsigned requiredStateSpace)
     7Prototype::Prototype(const PabloAST::ClassTypeId type, std::string && name, const unsigned numOfParameters, const unsigned numOfResults, const unsigned requiredStateSpace, void * functionPtr)
    88: PabloAST(type)
    99, mName(new String(name, false)) // <-- Should there be a global pool to assert that no two prototypes have the same name?
    1010, mNumOfParameters(numOfParameters)
    1111, mNumOfResults(numOfResults)
    12 , mRequiredStateSpace(requiredStateSpace) {
     12, mRequiredStateSpace(requiredStateSpace)
     13, mFunctionPtr(functionPtr) {
    1314
    1415}
    1516
    1617PabloFunction::PabloFunction(std::string && name, const unsigned numOfParameters, const unsigned numOfResults)
    17 : Prototype(ClassTypeId::Function, std::move(name), numOfParameters, numOfResults, 0)
     18: Prototype(ClassTypeId::Function, std::move(name), numOfParameters, numOfResults, 0, nullptr)
    1819, mEntryBlock(PabloBlock::Create(mSymbolTable))
    1920, mParameters(reinterpret_cast<Var **>(mAllocator.allocate(sizeof(Var *) * numOfParameters)))
Note: See TracChangeset for help on using the changeset viewer.