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

Last change on this file since 4410 was 4410, checked in by nmedfort, 5 years ago

Changes to support 3-operand form for all instructions. CSE disabled but partially redundant now.

File size: 354 bytes
Line 
1#include <pablo/ps_while.h>
2#include <pablo/codegenstate.h>
3
4namespace pablo {
5
6While::While(PabloAST * expr, PabloBlock & body, PabloBlock * parent)
7: Statement(ClassTypeId::While, nullptr, parent)
8, mExpr(expr)
9, mBody(body)
10, mCarryCount(0)
11, mAdvanceCount(0)
12{
13    expr->addUser(this);
14    for (Statement * s : body) {
15        addUser(s);
16    }
17}
18
19}
Note: See TracBrowser for help on using the repository browser.