Allow 'continue' statements in 'foreach' loops.

This commit is contained in:
Matt Pharr
2011-12-03 09:31:02 -08:00
parent c3b55de1ad
commit a1c0b4f95a
17 changed files with 359 additions and 40 deletions

7
ctx.h
View File

@@ -159,8 +159,11 @@ public:
finished. */
void EndLoop();
/** */
void StartForeach();
/** Indicates that code generation for a 'foreach' or 'foreach_tiled'
loop is about to start. The provided basic block pointer indicates
where control flow should go if a 'continue' statement is executed
in the loop. */
void StartForeach(llvm::BasicBlock *continueTarget);
void EndForeach();
/** Emit code for a 'break' statement in a loop. If doCoherenceCheck