@@ -2434,11 +2434,22 @@ CONSTANT_TRANSLATION(CondBranchInst, TerminatorPhi)
24342434CONSTANT_TRANSLATION(CheckedCastBranchInst, TerminatorPhi)
24352435CONSTANT_TRANSLATION(DynamicMethodBranchInst, TerminatorPhi)
24362436
2437+ // ===---
2438+ // Existential Box
2439+ //
2440+
2441+ // NOTE: Today these can only be used with Errors. Since Error is a sub-protocol
2442+ // of Sendable, we actually do not have any way to truly test them. These are
2443+ // just hypothetical assignments so we are complete.
2444+ CONSTANT_TRANSLATION(AllocExistentialBoxInst, AssignFresh)
2445+ CONSTANT_TRANSLATION(ProjectExistentialBoxInst, Assign)
2446+ CONSTANT_TRANSLATION(OpenExistentialBoxValueInst, Assign)
2447+ CONSTANT_TRANSLATION(DeallocExistentialBoxInst, Ignored)
2448+
24372449// ===---
24382450// Unhandled Instructions
24392451//
24402452
2441- CONSTANT_TRANSLATION(AllocExistentialBoxInst, Unhandled)
24422453CONSTANT_TRANSLATION(IndexRawPointerInst, Unhandled)
24432454CONSTANT_TRANSLATION(UncheckedTrivialBitCastInst, Unhandled)
24442455CONSTANT_TRANSLATION(UncheckedBitwiseCastInst, Unhandled)
@@ -2460,7 +2471,6 @@ CONSTANT_TRANSLATION(StrongCopyUnmanagedValueInst, Unhandled)
24602471CONSTANT_TRANSLATION(DropDeinitInst, Unhandled)
24612472CONSTANT_TRANSLATION(IsUniqueInst, Unhandled)
24622473CONSTANT_TRANSLATION(LoadUnownedInst, Unhandled)
2463- CONSTANT_TRANSLATION(ProjectExistentialBoxInst, Unhandled)
24642474CONSTANT_TRANSLATION(ValueMetatypeInst, Unhandled)
24652475CONSTANT_TRANSLATION(ExistentialMetatypeInst, Unhandled)
24662476CONSTANT_TRANSLATION(VectorInst, Unhandled)
@@ -2472,7 +2482,6 @@ CONSTANT_TRANSLATION(InitExistentialValueInst, Unhandled)
24722482CONSTANT_TRANSLATION(InitExistentialMetatypeInst, Unhandled)
24732483CONSTANT_TRANSLATION(OpenExistentialMetatypeInst, Unhandled)
24742484CONSTANT_TRANSLATION(OpenExistentialValueInst, Unhandled)
2475- CONSTANT_TRANSLATION(OpenExistentialBoxValueInst, Unhandled)
24762485CONSTANT_TRANSLATION(OpenPackElementInst, Unhandled)
24772486CONSTANT_TRANSLATION(PackLengthInst, Unhandled)
24782487CONSTANT_TRANSLATION(DynamicPackIndexInst, Unhandled)
@@ -2494,7 +2503,6 @@ CONSTANT_TRANSLATION(DeallocPackInst, Unhandled)
24942503CONSTANT_TRANSLATION(DeallocStackRefInst, Unhandled)
24952504CONSTANT_TRANSLATION(DeallocRefInst, Unhandled)
24962505CONSTANT_TRANSLATION(DeallocPartialRefInst, Unhandled)
2497- CONSTANT_TRANSLATION(DeallocExistentialBoxInst, Unhandled)
24982506CONSTANT_TRANSLATION(UnmanagedRetainValueInst, Unhandled)
24992507CONSTANT_TRANSLATION(UnmanagedReleaseValueInst, Unhandled)
25002508CONSTANT_TRANSLATION(UnmanagedAutoreleaseValueInst, Unhandled)
0 commit comments