-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(acir_gen): Fold attribute at compile-time and initial non inline…
…d ACIR (#5341) Partially resolves noir-lang/noir#4428 but not fully. Need ACVM execution work still. This does the initial codegen work for having multiple ACIR functions. It does a few things: 1. Adds a new `InlineType` that is now part of `RuntimeType::Acir`. We do not care about `RuntimeType::Brillig` as we do not inline any of those calls. 2. Fetch the appropriate function signatures for all possible `Circuit` functions inside of a `Program`. Previously we were just returning the main function signature. This is needed to accurately set up the `private_parameters` and `public_parameters` fields in a circuit. 3. Iterates over all SSA functions, determines which are entry points and codegens them 4. Codegens the newly added `Call` opcode from #4773 --------- Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com> Co-authored-by: Tom French <tom@tomfren.ch> Co-authored-by: jfecher <jfecher11@gmail.com>
- Loading branch information
1 parent
9ffe457
commit a979150
Showing
38 changed files
with
869 additions
and
199 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ pub mod ssa; | |
|
||
pub mod brillig; | ||
|
||
pub use ssa::create_circuit; | ||
pub use ssa::create_program; |
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.