You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Concisely describe the proposed feature
It would be good to support continue in loops. E.g.,
@ti.kerneldeftest():
foriinx:
ifx[i] <0:
continue# skip the rest of this loop bodyx[i] -=1
Note that there are a few different cases: parallel range/struct for loops, serial range for loops, and while loops. However, the semantics is the same: jump to the end of the loop body so that the next iteration can start after this instruction.
Describe the solution you'd like (if any)
Add FrontendContinueStmt and ContinueStmt
Modify Python frontend
Modify lower_ast, ir_printer etc.
Implement the statement in each backend
The text was updated successfully, but these errors were encountered:
Right, just a jump to the loop body (if you are using SSA + CFG as in LLVM), or simply a return (in the parallel loop_body_function)/continue in serial loops in source-2-source.
Concisely describe the proposed feature
It would be good to support
continue
in loops. E.g.,Note that there are a few different cases: parallel range/struct for loops, serial range for loops, and while loops. However, the semantics is the same: jump to the end of the loop body so that the next iteration can start after this instruction.
Describe the solution you'd like (if any)
FrontendContinueStmt
andContinueStmt
lower_ast
,ir_printer
etc.The text was updated successfully, but these errors were encountered: