compiler/AST/ForallStmt.cpp
/////////////////////////////////////////////////////////////////////////////
// support for converting from a for loop
/////////////////////////////////////////////////////////////////////////////
support for converting from a for loop
support for converting from a for loop
ForallStmt* ForallStmt::fromForLoop(ForLoop* forLoop) {
  INT_ASSERT(forLoop->isForLoop());
  INT_ASSERT(forLoop->zipperedGet() == false);
  ForallStmt* result = new ForallStmt(false, new BlockStmt());
  result->fFromForLoop = true;
  return result;
}
ForallStmt * ForallStmt :: fromForLoop ( ForLoop * forLoop ) { INT_ASSERT ( forLoop -> isForLoop ( ) ) ; INT_ASSERT ( forLoop -> zipperedGet ( ) == false ) ; ForallStmt * result = new ForallStmt ( false , new BlockStmt ( ) ) ; result -> fFromForLoop = true ; return result ; }
support for converting from a for loop
support for converting from a for loop
// intended only for for-loops // conversion from zippered is not implemented