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

fixup! [CIR][ABI] Implement basic struct CC lowering for x86_64 #939

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

smeenai
Copy link
Collaborator

@smeenai smeenai commented Oct 7, 2024

The ABI alignment and preferred alignment fields were swapped (per [1],
the ABI alignment should be 1 and the preferred alignment should be 8),
leading to incorrect struct size calculations.

Fixes #911
Fixes #915
Fixes #916
Fixes #917
Fixes #918
Fixes #919
Fixes #920
Fixes #921
Fixes #922
Fixes #925
Fixes #926
Fixes #929
Fixes #930

[1] llvm/llvm-project@8eadf21

The ABI alignment and preferred alignment fields were swapped (per [1],
the ABI alignment should be 1 and the preferred alignment should be 8),
leading to incorrect struct size calculations.

Fixes llvm#911
Fixes llvm#915
Fixes llvm#916
Fixes llvm#917
Fixes llvm#918
Fixes llvm#919
Fixes llvm#920
Fixes llvm#921
Fixes llvm#922
Fixes llvm#925
Fixes llvm#926
Fixes llvm#929
Fixes llvm#930

[1] llvm/llvm-project@8eadf21
@smeenai
Copy link
Collaborator Author

smeenai commented Oct 7, 2024

Hmm, looks like all of these XFAILs were incorporated into the rebase of 25a9860, so we probably want to amend that instead.

@lanza
Copy link
Member

lanza commented Oct 7, 2024

I guess you can just name this commit accordingly for the rebase so that it'll absorb properly next time.

@smeenai smeenai changed the title [CIR][CIRDataLayout] Fix struct datalayout fixup! [CIR][ABI] Implement basic struct CC lowering for x86_64 Oct 7, 2024
@smeenai
Copy link
Collaborator Author

smeenai commented Oct 7, 2024

Okay, the rebase won't be perfect because of subsequent changes, but this should be a good starting point for it.

@smeenai smeenai merged commit 10d6f4b into llvm:main Oct 7, 2024
7 checks passed
@smeenai smeenai deleted the fix-struct-datalayout branch October 7, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants