[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
@@ -203,7 +203,8 @@ class CheckIrElementVisitor(
IrTypeOperator.IMPLICIT_COERCION_TO_UNIT,
IrTypeOperator.IMPLICIT_INTEGER_COERCION,
IrTypeOperator.SAM_CONVERSION,
IrTypeOperator.IMPLICIT_DYNAMIC_CAST ->
IrTypeOperator.IMPLICIT_DYNAMIC_CAST,
IrTypeOperator.REINTERPRET_CAST ->
typeOperand
IrTypeOperator.SAFE_CAST ->