source: icGREP/icgrep-devel/icgrep/pablo/ps_while.cpp @ 4744

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

Partial roll back of Trie structure. Seemed to introduce the potential of generating a cycle in the AST. More analysis is needed here before mixing together multiple Advance DAG traversals.

File size: 592 bytes
Line 
1#include <pablo/ps_while.h>
2#include <pablo/codegenstate.h>
3
4namespace pablo {
5
6While::While(PabloAST * expr, const std::initializer_list<Next *> nextVars, PabloBlock & body)
7: Statement(ClassTypeId::While, {expr}, nullptr)
8, mBody(body)
9, mNext(nextVars.begin(), nextVars.end(), reinterpret_cast<NextAllocator &>(mVectorAllocator))
10{
11
12}
13
14While::While(PabloAST * expr, const std::vector<Next *> & nextVars, PabloBlock & body)
15: Statement(ClassTypeId::While, {expr}, nullptr)
16, mBody(body)
17, mNext(nextVars.begin(), nextVars.end(), reinterpret_cast<NextAllocator &>(mVectorAllocator))
18{
19
20}
21
22}
Note: See TracBrowser for help on using the repository browser.