Files
swift-mirror/lib/IRGen
Slava Pestov ca7254c53d IRGen: Preliminary support for resilient enums
Resilient enums are manipulated as opaque values.

Clients are still allowed to assume physical case indices and case
payload types for now -- we might add a level of indirection here,
which would require designing a new case dispatch mechanism.

Resilient enums are never constructed directly, only by calling
case constructor functions. Case constructors already get emitted,
however they're [transparent] -- this will change in a subsequent
patch.

We could save on code size by emitting an InjectEnumTag value
witness function that can construct any case given a physical case
number, rather than emitting constructors for each case, but for
now going through case constructor functions will suffice.
2015-11-30 13:32:55 -08:00
..
2015-11-11 16:07:41 -08:00
2015-11-11 16:07:41 -08:00
2015-11-16 11:11:08 -08:00
2015-11-11 16:07:41 -08:00
2015-11-16 11:11:08 -08:00
2015-11-11 16:07:41 -08:00
2015-11-16 09:51:54 -08:00
2015-11-15 15:20:39 -08:00
2015-11-16 13:05:19 -08:00
2015-11-17 14:13:48 -08:00