Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-3725] Determine if struct data members are addressable or bit-packed #46310

Closed
ematejska mannequin opened this issue Jan 25, 2017 · 2 comments
Closed

[SR-3725] Determine if struct data members are addressable or bit-packed #46310

ematejska mannequin opened this issue Jan 25, 2017 · 2 comments
Labels
affects ABI Flag: Affects ABI

Comments

@ematejska
Copy link
Mannequin

ematejska mannequin commented Jan 25, 2017

Previous ID SR-3725
Radar rdar://problem/31411205
Original Reporter @ematejska
Type Sub-task
Status Resolved
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s
Labels Sub-task, AffectsABI
Assignee None
Priority Medium

md5: 5a1de95d2cb7a398b3049ac4759aa21d

Parent-Task:

  • SR-7809 Define layout algorithm for structs

duplicates:

  • SR-5267 Optional layout is inefficient

Issue Description:

Ahead of ABI stability, consider if struct data members are addressable (i.e. byte-aligned) or if we'd rather do bit-packing to save space.

@bob-wilson
Copy link
Contributor

@swift-ci create

@bob-wilson
Copy link
Contributor

We do not plan to implement densely packed struct members for ABI stability. That is an important thing to do, but we can do it later. For resilient types, the fields are always accessed indirectly by accessors so we can change the layout later without affecting the ABI.

Since this issue was filed to track the work needed for ABI stability, I am going to resolve this as a duplicate of SR-5267, where we will track support for this in the future.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects ABI Flag: Affects ABI
Projects
None yet
Development

No branches or pull requests

1 participant