Add support for unconditional checked cast instruction for opaque value types + SILGen support for it

This commit is contained in:
Joe Shajrawi
2017-02-22 16:17:00 -08:00
parent 20bdedf17e
commit ec1e3ee20e
20 changed files with 158 additions and 15 deletions

View File

@@ -266,6 +266,7 @@ ABSTRACT_VALUE(SILInstruction, ValueBase)
INST(ObjCMetatypeToObjectInst, ConversionInst, objc_metatype_to_object, None, DoesNotRelease)
INST(ObjCExistentialMetatypeToObjectInst, ConversionInst, objc_existential_metatype_to_object, None,
DoesNotRelease)
INST(UnconditionalCheckedCastOpaqueInst, ConversionInst, unconditional_checked_cast_opaque, None, DoesNotRelease)
INST(UnconditionalCheckedCastInst, ConversionInst, unconditional_checked_cast, None, DoesNotRelease)
VALUE_RANGE(ConversionInst, UpcastInst, UnconditionalCheckedCastInst)
INST(IsNonnullInst, SILInstruction, is_nonnull, None, DoesNotRelease)