[FIR] Promote numeric types during comparisons

Added support for comparing platform types. Extracted logic to convert
operator expressions to OperatorExpressionGenerator.
This commit is contained in:
Mark Punzalan
2020-04-14 00:51:19 -07:00
committed by Mikhail Glukhikh
parent 1d9967013b
commit d4cbfcb79e
18 changed files with 310 additions and 547 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
//FILE: Holder.java
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
//FILE: JavaClass.java
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// !LANGUAGE: +ProperIeee754Comparisons +NewInference
fun box(): String {
@@ -1,5 +1,4 @@
// !LANGUAGE: +ProperIeee754Comparisons
// IGNORE_BACKEND_FIR: JVM_IR
fun ltDI(x: Any, y: Any) =
x is Double && y is Int && x < y