-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add reusable procedures to brillig generation (#7981)
Changes: - Properly typed bytecode labels instead of strings - Extracted the register allocator to a trait, added scratch space section - Added the concept of procedures, intrinsic functions with data passed through scratch space to avoid stack dumping/restoring - Updated the linking process to compile and link procedures if used - Added CoW optimized array copy procedure, memcopy procedure and array reverse procedure. They are reused if called more than one time in a single program, reducing bytecode size --------- Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>
- Loading branch information
1 parent
453a096
commit 99d1131
Showing
23 changed files
with
915 additions
and
504 deletions.
There are no files selected for viewing
This file contains 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 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 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 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.