compiler/AST/ForallStmt.cpp
// Return the index variable of the parallel loop.
// Valid after addParIdxVarsAndRestruct().
Return the index variable of the parallel loop.
Return the index variable of the parallel loop .
VarSymbol* parIdxVar(ForallStmt* fs) {
  INT_ASSERT(fs->inductionVariables().length == 1);
  DefExpr* ivdef = toDefExpr(fs->inductionVariables().head);
  VarSymbol* ivsym = toVarSymbol(ivdef->sym);
  INT_ASSERT(ivsym != NULL);
  return ivsym;
}
VarSymbol * parIdxVar ( ForallStmt * fs ) { INT_ASSERT ( fs -> inductionVariables ( ) . length == 1 ) ; DefExpr * ivdef = toDefExpr ( fs -> inductionVariables ( ) . head ) ; VarSymbol * ivsym = toVarSymbol ( ivdef -> sym ) ; INT_ASSERT ( ivsym != NULL ) ; return ivsym ; }
Return the index variable of the parallel loop.
Return the index variable of the parallel loop .