Skip to content

Compute padding outside of codegen #959

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

Open
fitzgen opened this issue Sep 7, 2017 · 0 comments
Open

Compute padding outside of codegen #959

fitzgen opened this issue Sep 7, 2017 · 0 comments

Comments

@fitzgen
Copy link
Member

fitzgen commented Sep 7, 2017

Right now, we compute a struct's padding fields while we are codegen'ing it.

Instead, we should have a dedicated phase for computing implicit padding fields that transforms from structs-with-only-explicit-fields to structs-with-explicit-fields-and-implicit-padding-fields.

Benefits this will give us:

This new phase should probably happen either right before or right after we compute allocation units for bitfields. I'm not 100% sure which, and determining it requires further investigation/experimentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant