-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support break in non-parallel for statements by translate range-for into while #578 #583
Conversation
Why transform my BinaryOpStmt(cmp_lt) into |
May because that cond_stmt not inserted into stmts. |
Too hard, can't do this at all. |
What exactly stopped you? :-) |
Don't have a clear image of how block (and thus insert_before_me) works. |
Can I just translate it into FrontendWhileStmt instead of WhileStmt? (in somewhere before lower_ast) |
Actually, after taking a look at your current implementation, I think it's very very close! We should probably stick to the current one. |
Close? Don't understand why it make my |
Seems whilestmt used a diff way from forstmt to insert: insert-before-me and flattened. Go bed now. |
Thanks. I'll take a look after a meeting. |
Is there a way to reproduce your issue? Which test case should I run? I think your implementation looks promising. Just need to figure out what's wrong in detail. |
b1b7c47
to
c136290
Compare
Added a simple test and rebase your commits after code reformatting to avoid future merge conflicts. Please update locally. |
You've made TAB=4??! Great to know the process of style enforcing but I would suggest to use TAB="\t" so that user can make themselves happy with editor settings.. |
Done! Run |
Exactly this caused problem, fixed using flattened2. |
Next: how to detect if is_good_range_for. |
Can we disable print_ir for snode accessors? |
I think that's already disabled by default? |
No, still print something like 2d_ten_arr. |
Hello? Have time tonight. |
Fixed one, stupid error. |
If |
Do we have |
Can we merge this now? |
|
…s to unordered_set
Well,
Will do it once CI passes. Just now rebased on master to avoid merge conflicts. This will be shipped with v0.5.9 tonight/tomorrow. |
Related issue id = #578