source: icGREP/icgrep-devel/icgrep/pablo/ps_if.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: 405 bytes
Line 
1#include <pablo/ps_if.h>
2#include <pablo/codegenstate.h>
3
4namespace pablo {
5
6If::If(PabloAST * expr, DefinedVars && definedVars, PabloBlock & body, PabloBlock * parent)
7: Statement(ClassTypeId::If, nullptr, parent)
8, mExpr(expr)
9, mBody(body)
10, mDefined(std::move(definedVars))
11, mCarryCount(0)
12, mAdvanceCount(0)
13{
14    expr->addUser(this);
15    for (Statement * s : body) {
16        addUser(s);
17    }
18}
19
20}
Note: See TracBrowser for help on using the repository browser.