[IR] Add REINTERPRET_CAST operator in IrTypeOperatorCall

- fix BE
 - fix Serializer
 - implement builder
 - make Ir a bit more type-correct
 - support developer mode (lowering [dynamic]implicit cast meterialized as general cast)
 - fix autoboxing lowering
This commit is contained in:
Roman Artemev
2019-11-13 17:16:49 +03:00
committed by romanart
parent 3795897fb7
commit 52b24ead91
10 changed files with 57 additions and 26 deletions
@@ -738,6 +738,8 @@ open class IrFileSerializer(
ProtoTypeOperator.SAM_CONVERSION
IrTypeOperator.IMPLICIT_DYNAMIC_CAST ->
ProtoTypeOperator.IMPLICIT_DYNAMIC_CAST
IrTypeOperator.REINTERPRET_CAST ->
error("Unreachable execution")
}
private fun serializeTypeOp(expression: IrTypeOperatorCall): ProtoTypeOp {