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

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

Next nodes for While statements must be declared similar to how Defined Vars are for Ifs. (Temporarily breaks multiplexing correctness.)

File size: 650 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, PabloBlock * parent)
7: Statement(ClassTypeId::While, {expr}, nullptr, parent)
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, PabloBlock * parent)
15: Statement(ClassTypeId::While, {expr}, nullptr, parent)
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.