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][CIRGen] Replace LLVMIntrinsicCallOp with ACosOp in __builtin_elementwise_acos #1425

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ayokunle321
Copy link

@ayokunle321 ayokunle321 commented Feb 28, 2025

Fixes issue #1374

@bcardosolopes @FantasqueX This is a draft PR to see if everything's good. Was also wondering if we need to add ACosOp to CIR documentation and also implement the other Ops such as asin.

@ayokunle321 ayokunle321 changed the title Replace LLVMIntrinsicCallOp with ACosOp in __builtin_elementwise_acos [CIR][CIRGen] Replace LLVMIntrinsicCallOp with ACosOp in __builtin_elementwise_acos Feb 28, 2025
@bcardosolopes
Copy link
Member

Seems like tests are failing. You also need to add tests for this (or maybe fixing the current failures would do that).

@ayokunle321
Copy link
Author

Seems like tests are failing. You also need to add tests for this (or maybe fixing the current failures would do that).

Thanks for the reply! The tests are failing because of a build error: no member named 'ACosOp' in namespace 'mlir::LLVM' from LowerToLLVM.cpp. I think it would be fine after the rebase with llvm-project since it's been patched up there. There are already tests for builtin_acos. I was wondering if the implementation I did was right though.

@bcardosolopes
Copy link
Member

mlir::LLVM::ACosOp is only going to be available once the next rebase against upstream happens!

@bcardosolopes
Copy link
Member

Anyways, your PR should add a test when ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants