Skip to content

Conversation

@Andres-Salamanca
Copy link
Contributor

This PR adds support for the discrete bit-field layout, which is used in the Microsoft bit-field ABI.

Since ClangIR does not currently support the Microsoft ABI, this uses the compiler flag

-mms-bitfields          Set the default structure layout to be compatible with the Microsoft compiler standard

Fixes #1798

Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after few nits

@bcardosolopes bcardosolopes merged commit ba35004 into llvm:main Aug 26, 2025
8 of 9 checks passed
Andres-Salamanca added a commit to llvm/llvm-project that referenced this pull request Sep 4, 2025
This PR adds support for the discrete bit-field layout.
It is the same as this PR: llvm/clangir#1860
llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Sep 4, 2025
This PR adds support for the discrete bit-field layout.
It is the same as this PR: llvm/clangir#1860
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CIR][CodeGen] Discrete bitfield layout

2 participants