Ignore:
Timestamp:
Sep 23, 2016, 4:12:41 PM (3 years ago)
Author:
nmedfort
Message:

Initial work for incorporating Types into Pablo AST.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/ps_while.cpp

    r5156 r5160  
    77
    88While::While(PabloAST * expr, const std::initializer_list<Next *> nextVars, PabloBlock * body)
    9 : Statement(ClassTypeId::While, {expr}, nullptr)
     9: Statement(ClassTypeId::While, nullptr, {expr}, nullptr)
    1010, mBody(body)
    1111, mVariant(nextVars.begin(), nextVars.end(), mVariantAllocator) {
    1212    mBody->setBranch(this);
    13     mBody->setParent(getParent());
     13    mBody->setPredecessor (getParent());
    1414    for (Next * variant : nextVars) {
    1515        variant->addUser(this);
     
    1919
    2020While::While(PabloAST * expr, const std::vector<Next *> & nextVars, PabloBlock * body)
    21 : Statement(ClassTypeId::While, {expr}, nullptr)
     21: Statement(ClassTypeId::While, nullptr, {expr}, nullptr)
    2222, mBody(body)
    2323, mVariant(nextVars.begin(), nextVars.end(), mVariantAllocator) {
    2424    mBody->setBranch(this);
    25     mBody->setParent(getParent());
     25    mBody->setPredecessor (getParent());
    2626    for (Next * variant : nextVars) {
    2727        variant->addUser(this);
     
    3232PabloBlock * While::setBody(PabloBlock * body) {
    3333    body->setBranch(this);
    34     body->setParent(mBody->getParent());
     34    body->setPredecessor (mBody->getPredecessor ());
    3535    std::swap(mBody, body);
    36     body->setParent(nullptr);
     36    body->setPredecessor (nullptr);
    3737    return body;
    3838}
Note: See TracChangeset for help on using the changeset viewer.