Ignore:
Timestamp:
Jul 6, 2015, 9:35:48 AM (4 years ago)
Author:
nmedfort
Message:

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

File:
1 edited

Legend:

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

    r4541 r4641  
    44namespace pablo {
    55
    6 While::While(PabloAST * expr, PabloBlock & body, PabloBlock * parent)
     6While::While(PabloAST * expr, const std::initializer_list<Next *> nextVars, PabloBlock & body, PabloBlock * parent)
    77: Statement(ClassTypeId::While, {expr}, nullptr, parent)
    88, 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))
    918{
    1019
Note: See TracChangeset for help on using the changeset viewer.