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

[CIR][ABI] Add X86_64 and AArch64 bool CC lowering #755

Merged

Conversation

sitio-couto
Copy link
Collaborator

Implements calling convention lowering of bool arguments and return value calling conventions for X86_64 and AArch64.

For x86_64, this is a bit of an odd case. In the orignal codegen bools are represented as i8 everywhere, except for function arguments/return values. In CIR, we don't allow i1 types, so bools are still represented as cir.bool when in functions. However, when lowering to LLVM Dialect, we need to ensure bools will be converted to i1 when in function's argument/return values.

Implements calling convention lowering of bool arguments and return
value calling conventions for X86_64 and AArch64.

For x86_64, this is a bit of an odd case. In the orignal codegen bools
are represented as i8 everywhere, except for function arguments/return
values. In CIR, we don't allow i1 types, so bools are still represented
as `cir.bool` when in functions. However, when lowering to LLVM Dialect,
we need to ensure bools will be converted to i1 when in function's
argument/return values.
@sitio-couto sitio-couto self-assigned this Jul 27, 2024
@bcardosolopes bcardosolopes merged commit eefdc8f into llvm:main Jul 29, 2024
7 checks passed
@sitio-couto sitio-couto deleted the vinicius/add-x86-bool-cc-lowering branch September 10, 2024 22:45
Hugobros3 pushed a commit to shady-gang/clangir that referenced this pull request Oct 2, 2024
Implements calling convention lowering of bool arguments and return
value calling conventions for X86_64 and AArch64.

For x86_64, this is a bit of an odd case. In the orignal codegen bools
are represented as i8 everywhere, except for function arguments/return
values. In CIR, we don't allow i1 types, so bools are still represented
as `cir.bool` when in functions. However, when lowering to LLVM Dialect,
we need to ensure bools will be converted to i1 when in function's
argument/return values.
smeenai pushed a commit to smeenai/clangir that referenced this pull request Oct 9, 2024
Implements calling convention lowering of bool arguments and return
value calling conventions for X86_64 and AArch64.

For x86_64, this is a bit of an odd case. In the orignal codegen bools
are represented as i8 everywhere, except for function arguments/return
values. In CIR, we don't allow i1 types, so bools are still represented
as `cir.bool` when in functions. However, when lowering to LLVM Dialect,
we need to ensure bools will be converted to i1 when in function's
argument/return values.
smeenai pushed a commit to smeenai/clangir that referenced this pull request Oct 9, 2024
Implements calling convention lowering of bool arguments and return
value calling conventions for X86_64 and AArch64.

For x86_64, this is a bit of an odd case. In the orignal codegen bools
are represented as i8 everywhere, except for function arguments/return
values. In CIR, we don't allow i1 types, so bools are still represented
as `cir.bool` when in functions. However, when lowering to LLVM Dialect,
we need to ensure bools will be converted to i1 when in function's
argument/return values.
keryell pushed a commit to keryell/clangir that referenced this pull request Oct 19, 2024
Implements calling convention lowering of bool arguments and return
value calling conventions for X86_64 and AArch64.

For x86_64, this is a bit of an odd case. In the orignal codegen bools
are represented as i8 everywhere, except for function arguments/return
values. In CIR, we don't allow i1 types, so bools are still represented
as `cir.bool` when in functions. However, when lowering to LLVM Dialect,
we need to ensure bools will be converted to i1 when in function's
argument/return values.
lanza pushed a commit that referenced this pull request Nov 5, 2024
Implements calling convention lowering of bool arguments and return
value calling conventions for X86_64 and AArch64.

For x86_64, this is a bit of an odd case. In the orignal codegen bools
are represented as i8 everywhere, except for function arguments/return
values. In CIR, we don't allow i1 types, so bools are still represented
as `cir.bool` when in functions. However, when lowering to LLVM Dialect,
we need to ensure bools will be converted to i1 when in function's
argument/return values.
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.

2 participants