FIR2IR: add two-statements block with iterator + while for 'for' loops

Before this commit we had two statements blocks for 'for' loops:
range variable declaration + iterator variable declaration + while loop.
However, BE requires a bit different loop structure to make lowerings
properly so in this commit iterator declaration & while loop were
extracted to separate block.
This commit is contained in:
Mikhail Glukhikh
2020-02-17 17:20:44 +03:00
parent 2bfce4f127
commit 56c819f06e
16 changed files with 336 additions and 300 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME