-
Notifications
You must be signed in to change notification settings - Fork 229
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 (AztecProtocol/aztec-packages#5341) Partially resolves #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 AztecProtocol/aztec-packages#4773 --------- Co-authored-by: Tom French <[email protected]> Co-authored-by: Tom French <[email protected]> Co-authored-by: jfecher <[email protected]>
- Loading branch information
1 parent
0bc18c4
commit 2589f2e
Showing
49 changed files
with
888 additions
and
253 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
a18288d9b8f3057b9e79362d922da656dacf22a9 | ||
a979150271da3da9143aed92626523227b1721a7 |
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 |
---|---|---|
|
@@ -79,15 +79,6 @@ jobs: | |
- name: Install Yarn dependencies | ||
uses: ./.github/actions/setup | ||
|
||
- name: Install wasm-bindgen-cli | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
|
||
- name: Install wasm-opt | ||
run: | | ||
npm i wasm-opt -g | ||
- name: Query new noir version | ||
id: noir-version | ||
run: | | ||
|
@@ -116,20 +107,17 @@ jobs: | |
if: ${{ always() }} | ||
|
||
needs: | ||
- release-please | ||
- update-acvm-workspace-package-versions | ||
- update-docs | ||
|
||
env: | ||
# We treat any skipped or failing jobs as a failure for the workflow as a whole. | ||
FAIL: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }} | ||
FAIL: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') } | ||
|
||
steps: | ||
- name: Add warning to sticky comment | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
# We need to specify the PR on which to make the comment as workflow is triggered by push. | ||
number: ${{ fromJSON(needs.release-please.outputs.release-pr).number }} | ||
# delete the comment in case failures have been fixed | ||
delete: ${{ !env.FAIL }} | ||
message: "The release workflow has not completed successfully. Releasing now will result in a broken release" | ||
|
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.