Skip to content

[CIR][CodeGen] Replace LLVMIntrinsicCallOp with ACosOp in __builtin_elementwise_acos #1507

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 9 commits into from
Mar 21, 2025

Conversation

ayokunle321
Copy link
Contributor

@ayokunle321 ayokunle321 commented Mar 20, 2025

Closes: #1374

Replaces LLVMIntrinsicCallOp with ACosOp in __builtin_elementwise_acos.

@bcardosolopes @FantasqueX! If this is all good I was wondering if I could do ASinOp and ATanOp.

@ayokunle321 ayokunle321 changed the title Replace builtin_acos [CIR][CIRGen] Replace LLVMIntrinsicCallOp with ACosOp in __builtin_elementwise_acos Mar 20, 2025
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 pending one minor nit. Thanks for the review @FantasqueX

Copy link

github-actions bot commented Mar 20, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

@bcardosolopes
Copy link
Member

@ayokunle321 please run clang-format before updating the PR

Copy link
Collaborator

@FantasqueX FantasqueX left a comment

Choose a reason for hiding this comment

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

LGTM once CI passed

@ayokunle321
Copy link
Contributor Author

@bcardosolopes done! could I work on atan and asin since they're similar?

@bcardosolopes
Copy link
Member

@bcardosolopes done! could I work on atan and asin since they're similar?

hell yea!

@ayokunle321 ayokunle321 changed the title [CIR][CIRGen] Replace LLVMIntrinsicCallOp with ACosOp in __builtin_elementwise_acos [CIR][CodeGen] Replace LLVMIntrinsicCallOp with ACosOp in __builtin_elementwise_acos Mar 21, 2025
@FantasqueX FantasqueX merged commit cfa859c into llvm:main Mar 21, 2025
9 checks passed
@FantasqueX
Copy link
Collaborator

Landed! Thanks for your contribution! @ayokunle321

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.

Use ACosOp instead of LLVMIntrinsicCallOp in __builtin_elementwise_acos
3 participants