Skip to content

[SR-3727] Determine the layout algorithm for payloaded enums #46312

Closed
@ematejska

Description

@ematejska
mannequin
Previous ID SR-3727
Radar rdar://problem/31411198
Original Reporter @ematejska
Type Task
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s
Labels Task, AffectsABI
Assignee None
Priority Medium

md5: fe502935ae3aee66b438641e4a3b8d0a

relates to:

  • SR-5267 Optional layout is inefficient

Issue Description:

Ahead of ABI Stability, determine the layout algorithm for multi-payload enums. The algorithm should try to rearrange payloads so as to coalesce cases and save space. This rearrangement can also improve performance and code size. For example, if ARC-ed payload components reside in the same location, operations like copy can be done directly on the values without extensive switching.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions