Skip to content

[CIR] Use ComplexRealOp for RValue __imag__ operator #1690

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AmrDeveloper
Copy link
Member

Update __imag__ operation to use ComplexRealOp and act directly on the complex value.

Ref: llvm/llvm-project#144235 (review)

@AmrDeveloper
Copy link
Member Author

CC. @andykaylor

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.

Similar question from other PR: complex.imag_ptr should be removed?

@AmrDeveloper
Copy link
Member Author

Similar question from other PR: complex.imag_ptr should be removed?

Not yet, it's used in case like

__imag__ c = 10;

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 fixing test failure

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