-
Notifications
You must be signed in to change notification settings - Fork 381
feat: unchecked math operations in SSA #7011
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
Merged
Merged
Changes from 20 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
6331a91
Add some unchecked math operations
asterite 3bb465a
Use unchecked add in `make_offset`
asterite 41ee955
Use correct names when printing
asterite 63af351
Parse unchecked ops
asterite a308767
Induction variable now uses unchecked add
asterite 199a980
A few more cases where we need to check for unchecked ops
asterite f279e3d
A few more
asterite a2beb78
Use a boolean instead of another variant
asterite 84de854
increment and decrement slice length
asterite 20b323e
Merge branch 'master' into ab/unchecked-math
TomAFrench d230098
Merge branch 'master' into ab/unchecked-math
TomAFrench 7dff466
Handle some TODOs
asterite 626f0a2
Merge branch 'ab/unchecked-math' of github.com:noir-lang/noir into ab…
asterite dfad378
chore: address some todos
TomAFrench 7840ced
Handle more TODOs
asterite c10520c
Merge branch 'ab/unchecked-math' of github.com:noir-lang/noir into ab…
asterite 0df89c0
Handle one more TODO
asterite 6f9d1c7
Fix tests
asterite f34fb51
Handle the final TODO
asterite e0ff78f
Don't emit unchecked operations for Fields, or when multiplying bools
asterite bacccc2
Add missing cast in remove_bit_shifts
asterite 83f1fd8
Extract `self.check_binary_instruction`
asterite 820c16c
Check binary instruction before simplification
asterite 4683b0d
clippy
asterite cf1a9e7
Do cast in both cases
asterite ef30d7c
Only check and simplify binary instructions in `Binary::simplify`
asterite 63cfd12
Fix comptime to_le_bits returning `[u8; N]` instead of `[u1; N]`
asterite 9b42fd8
Allow casting u1 in comptime
asterite File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.