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

Refactor binary expression compilation to be reusable in builtins #1489

Merged
merged 4 commits into from
Oct 15, 2020

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Oct 6, 2020

In #1484 it became apparent that we can share the code the compiler uses when compiling binary expressions, including taking care of SMI wrapping, during implementation of #1310, so this refactors just making the IR out of compileBinaryExpression.

  • I've read the contributing guidelines

@MaxGraey
Copy link
Member

Could you add also shl, shr_s and shr_u unifications/builtins plz? It required for #1495

@dcodeIO
Copy link
Member Author

dcodeIO commented Oct 12, 2020

I think the make helpers should be there now, with the builtins still to do. Does the linked issue require the builtins as well?

@MaxGraey
Copy link
Member

I guess we should have built-ins for of all kind of bin operations?

@dcodeIO
Copy link
Member Author

dcodeIO commented Oct 12, 2020

Agree, yes, just wondering whether these can be follow-up PRs :)

@MaxGraey
Copy link
Member

Yeah, just mentioned this but if it will be another pr it will be fine as well)

@dcodeIO dcodeIO merged commit a4dc45e into master Oct 15, 2020
@github-actions
Copy link

🎉 This PR is included in version 0.16.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@dcodeIO dcodeIO deleted the binary-refactor branch June 1, 2021 15:20
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