-
Notifications
You must be signed in to change notification settings - Fork 178
[CIR][CIRGen] Simplify __builtin_elementwise_abs #1393
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
Conversation
Lancern
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK, emitUnaryFPBuiltin does not check for CGF.getBuilder().getIsFPConstrained(), while emitUnaryMaybeConstrainedFPBuiltin does. Although constraint FP arithmetic is not implemented yet, we intentionally leave it there thus we could more easily implement it in the future.
|
OG uses |
Lancern
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If type of operand is not integer, it can be handled like what I do in `__builtin_elementwise_exp`.
If type of operand is not integer, it can be handled like what I do in `__builtin_elementwise_exp`.
|
@Lancern Hi, I agree with you that |
If type of operand is not integer, it can be handled like what I do in `__builtin_elementwise_exp`.
If type of operand is not integer, it can be handled like what I do in `__builtin_elementwise_exp`.
If type of operand is not integer, it can be handled like what I do in
__builtin_elementwise_exp.