Ignore:
Timestamp:
Jul 10, 2015, 4:51:39 PM (4 years ago)
Author:
nmedfort
Message:

Initial introduction of a PabloFunction? type.

File:
1 edited

Legend:

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

    r4656 r4657  
    11#include "function.h"
     2#include <pablo/codegenstate.h>
    23
    34namespace pablo {
    45
    5 Function::Function(std::initializer_list<Argument> args)
     6PabloFunction::PabloFunction()
    67: PabloAST(ClassTypeId::Function)
    7 , mArgumentList(args.begin(), args.end(), reinterpret_cast<ArgumentListAllocator &>(mVectorAllocator)) {
    8     for (Argument & arg : args) {
    9         std::get<1>(arg)->addUser(this);
    10     }
     8, mEntryBlock(PabloBlock::Create(mSymbolTable))
     9, mParameters(reinterpret_cast<ParamAllocator &>(mVectorAllocator))
     10, mResults(reinterpret_cast<ResultAllocator &>(mVectorAllocator)) {
     11
    1112}
    1213
    13 Function::Function(const std::vector<Argument> & args)
    14 : PabloAST(ClassTypeId::Function)
    15 , mArgumentList(args.begin(), args.end(), reinterpret_cast<ArgumentListAllocator &>(mVectorAllocator)) {
    16     for (Argument & arg : args) {
    17         std::get<1>(arg)->addUser(this);
    18     }
    1914}
    20 
    21 
    22 }
Note: See TracChangeset for help on using the changeset viewer.