Add __foreach_active statement to loop over active prog. instances.

For now this has the __ prefix, as an experimental feature currently only
used in the standard library implementation.  It's probably worth making
something along these lines an official feature, but I'm not sure if this
in its current form is quite the right thing.
This commit is contained in:
Matt Pharr
2012-03-20 08:46:00 -07:00
parent 2c8a44e28b
commit 7dffd65609
5 changed files with 144 additions and 151 deletions

3
stmt.h
View File

@@ -459,4 +459,7 @@ public:
Expr *expr;
};
extern Stmt *CreateForeachActiveStmt(Symbol *iterSym, Stmt *stmts,
SourcePos pos);
#endif // ISPC_STMT_H