JVM IR: invoke codegen after lowering all files in the module

Inspired by discussion in #2316
This commit is contained in:
Alexander Udalov
2019-05-28 17:56:42 +02:00
parent b060acf01d
commit e72388895b
6 changed files with 19 additions and 13 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// FILE: util.kt
inline fun ieq(x: Int, y: Int) = x == y
@@ -23,4 +22,4 @@ fun testge(x: Int) = ige(x, 0)
// 0 IF_ICMPGE
// 0 IF_ICMPGT
// 0 IF_ICMPLE
// 0 IF_ICMPLT
// 0 IF_ICMPLT
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// FILE: util.kt
const val FLAG = true
const val OTHER_FLAG = false
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// FILE: util.kt
const val MAGIC = 42
@@ -56,4 +55,4 @@ fun test() {
// 0 IFLT
// 0 IFLE
// 0 IFGE
// 0 IFGT
// 0 IFGT