source: icGREP/icgrep-devel/icgrep/pablo/function.cpp @ 4656

Last change on this file since 4656 was 4656, checked in by nmedfort, 4 years ago

Temporary check-in.

File size: 603 bytes
Line 
1#include "function.h"
2
3namespace pablo {
4
5Function::Function(std::initializer_list<Argument> args)
6: 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    }
11}
12
13Function::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    }
19}
20
21
22}
Note: See TracBrowser for help on using the repository browser.