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][Builtin] Support __builtin_elementwise_abs and extend AbsOp to take vector input #1099

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

ghehg
Copy link
Collaborator

@ghehg ghehg commented Nov 11, 2024

Extend AbsOp to take vector of int input. With it, we can support __builtin_elementwise_abs.
We should in the next PR extend FpUnaryOps to support vector type input so we won't have blocker to implement all elementwise builtins completely. Now just temporarily have missingFeature fpUnaryOPsSupportVectorType.
Currently, int type UnaryOp support vector type.

FYI:
clang's documentation about elementwise builtins

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 with minor nit

clang/include/clang/CIR/Dialect/IR/CIRTypes.h Outdated Show resolved Hide resolved
@ghehg
Copy link
Collaborator Author

ghehg commented Nov 14, 2024

LGTM with minor nit

changed the helper function name as suggested.

@bcardosolopes bcardosolopes merged commit 329aca9 into llvm:main Nov 14, 2024
6 checks passed
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