-
Notifications
You must be signed in to change notification settings - Fork 138
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
CIRGen support for __sync_{and,or,xor,nand}_and_fetch
builtin
#1273
Comments
I would like to take this issue. |
@moar55 neat, assigned to you! |
Hey, I was looking at the previous tests. And was wondering why does
Wouldn't it be less instructions if |
One other thing more related to this task, I don't see the |
What have you found when you compared to LLVM output from OG? We go about the same |
Do you need it as part of implementing anything? If so yes, if just for completeness best we don't. |
Yes it seems so, because the allowed binary operations don't contain nand, and you need that for lowering |
Should I maybe create that in its own commit first? |
I suggest the opposite route: first create all variations that currently have binops, after that lands you go about introducing |
Sounds perfectly fine :) |
Actually I realized, that a |
This addresses #1273. `Nand` is missing here, as i didn't intuitively know how to implement it initially. I think I have figured it out and will push in an upcoming commit. Co-authored-by: Omar Ibrahim <[email protected]>
I think this can be closed now. |
Thanks @moar55 |
Sure! 😄 |
This addresses #1273. `Nand` is missing here, as i didn't intuitively know how to implement it initially. I think I have figured it out and will push in an upcoming commit. Co-authored-by: Omar Ibrahim <[email protected]>
This addresses llvm/clangir#1273. `Nand` is missing here, as i didn't intuitively know how to implement it initially. I think I have figured it out and will push in an upcoming commit. Co-authored-by: Omar Ibrahim <[email protected]>
add
andsub
are already supported.The text was updated successfully, but these errors were encountered: