Skip to content

chore: Use BrilligCall for unconstrained main and update AVM transpiler#5795

Closed
vezenovm wants to merge 94 commits into
masterfrom
mv/update-avm-for-brillig-call
Closed

chore: Use BrilligCall for unconstrained main and update AVM transpiler#5795
vezenovm wants to merge 94 commits into
masterfrom
mv/update-avm-for-brillig-call

Conversation

@vezenovm

Copy link
Copy Markdown
Contributor

A follow-up to #5737

Separate PR as this touches mainly the AVM transpiler and not Noir codegen itself. Look in PR #5737 for full details about the switch, but basically we are moving away from the Brillig opcode to a BrilligCall opcode that contains a Brillig call opcode. The AVM needs to be updated to account for this change.


/// Print inputs, outputs, and instructions in a Brillig program
pub fn dbg_print_brillig_program(brillig: &Brillig) {
pub fn dbg_print_brillig_program(brillig_bytecode: &[BrilligOpcode]) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I figuredi t would be fine to just print the bytecode as the AVM transpiler doesn't look to touch the inputs/outputs at all, we only print instructions for the AVM program, and you can get the Brillig inputs/outputs by printing the ACIR.

@TomAFrench

Copy link
Copy Markdown
Member

This could probably do with a rebase on top of master.

vezenovm and others added 26 commits April 16, 2024 20:45
Co-authored-by: jfecher <jfecher11@gmail.com>
Co-authored-by: jfecher <jfecher11@gmail.com>
…ir/acir_variable.rs

Co-authored-by: jfecher <jfecher11@gmail.com>
…ir/acir_variable.rs

Co-authored-by: jfecher <jfecher11@gmail.com>
…ir/acir_variable.rs

Co-authored-by: jfecher <jfecher11@gmail.com>
…ir/acir_variable.rs

Co-authored-by: jfecher <jfecher11@gmail.com>
…ir/acir_variable.rs

Co-authored-by: jfecher <jfecher11@gmail.com>
…ir/acir_variable.rs

Co-authored-by: jfecher <jfecher11@gmail.com>
Co-authored-by: jfecher <jfecher11@gmail.com>
@vezenovm vezenovm force-pushed the mv/update-avm-for-brillig-call branch from 6601d1a to 14b9ae8 Compare April 16, 2024 20:48
@vezenovm

Copy link
Copy Markdown
Contributor Author

This commit history is really ugly and I messed up the rebase so this PR has been superseded by 5797

@vezenovm vezenovm closed this Apr 16, 2024
@ludamad ludamad deleted the mv/update-avm-for-brillig-call branch August 22, 2024 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants