Skip to content

[CIR] Add support for unary complex operations #750

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

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

Lancern
Copy link
Member

@Lancern Lancern commented Jul 20, 2024

This PR adds support for unary operations on complex numbers, namely plus(+), minus(-), and conjugate(~). This PR also adds support for the __builtin_conj builtin function which computes the conjugate of the input.

This patch adds support for unary operations on complex numbers, namely plus(+),
minus(-), and conjugate(~). This patch also adds support for the
`__builtin_conj` builtin function which computes the conjugate of the input.
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

@bcardosolopes bcardosolopes merged commit 4a9df20 into llvm:main Jul 23, 2024
7 checks passed
@Lancern Lancern deleted the complex-unary branch July 24, 2024 02:12
Hugobros3 pushed a commit to shady-gang/clangir that referenced this pull request Oct 2, 2024
This PR adds support for unary operations on complex numbers, namely
plus(+), minus(-), and conjugate(~). This PR also adds support for the
`__builtin_conj` builtin function which computes the conjugate of the
input.
smeenai pushed a commit to smeenai/clangir that referenced this pull request Oct 9, 2024
This PR adds support for unary operations on complex numbers, namely
plus(+), minus(-), and conjugate(~). This PR also adds support for the
`__builtin_conj` builtin function which computes the conjugate of the
input.
smeenai pushed a commit to smeenai/clangir that referenced this pull request Oct 9, 2024
This PR adds support for unary operations on complex numbers, namely
plus(+), minus(-), and conjugate(~). This PR also adds support for the
`__builtin_conj` builtin function which computes the conjugate of the
input.
keryell pushed a commit to keryell/clangir that referenced this pull request Oct 19, 2024
This PR adds support for unary operations on complex numbers, namely
plus(+), minus(-), and conjugate(~). This PR also adds support for the
`__builtin_conj` builtin function which computes the conjugate of the
input.
lanza pushed a commit that referenced this pull request Nov 5, 2024
This PR adds support for unary operations on complex numbers, namely
plus(+), minus(-), and conjugate(~). This PR also adds support for the
`__builtin_conj` builtin function which computes the conjugate of the
input.
lanza pushed a commit that referenced this pull request Mar 18, 2025
This PR adds support for unary operations on complex numbers, namely
plus(+), minus(-), and conjugate(~). This PR also adds support for the
`__builtin_conj` builtin function which computes the conjugate of the
input.
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