Skip to content
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

chore(aztec-macros): avm function return types are auto tagged as pub #6250

Merged
merged 1 commit into from
May 7, 2024

Conversation

dbanks12
Copy link
Contributor

@dbanks12 dbanks12 commented May 7, 2024

No description provided.

Copy link
Contributor Author

dbanks12 commented May 7, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @dbanks12 and the rest of your teammates on Graphite Graphite

@dbanks12 dbanks12 changed the title pub chore(aztec-macros): avm function return types are auto tagged as pub May 7, 2024
Copy link
Contributor

github-actions bot commented May 7, 2024

Changes to circuit sizes

Generated at commit: 16439bc3dd13dea8aaa1b72aa3f0f74acf684dc2, compared to commit: 8e218a22c1f85e7b0de4afc4219a860e6bbab7fb

🧾 Summary (100% most significant diffs)

Program ACIR opcodes (+/-) % Circuit size (+/-) %
public_kernel_setup +29 ❌ +0.04% +56 ❌ +0.02%
public_kernel_teardown +29 ❌ +0.04% +56 ❌ +0.02%
public_kernel_app_logic +23 ❌ +0.03% +61 ❌ +0.02%
private_kernel_inner +23 ❌ +0.02% +37 ❌ +0.01%
private_kernel_init +13 ❌ +0.01% +22 ❌ +0.01%
public_kernel_tail +47 ❌ +0.01% +47 ❌ +0.00%
private_kernel_tail -200 ✅ -0.15% +7 ❌ +0.00%
private_kernel_tail_to_public -200 ✅ -0.06% +2 ❌ +0.00%

Full diff report 👇
Program ACIR opcodes (+/-) % Circuit size (+/-) %
public_kernel_setup 71,814 (+29) +0.04% 301,914 (+56) +0.02%
public_kernel_teardown 71,955 (+29) +0.04% 302,050 (+56) +0.02%
public_kernel_app_logic 86,993 (+23) +0.03% 382,839 (+61) +0.02%
private_kernel_inner 106,995 (+23) +0.02% 380,740 (+37) +0.01%
private_kernel_init 91,755 (+13) +0.01% 285,752 (+22) +0.01%
public_kernel_tail 382,097 (+47) +0.01% 1,379,979 (+47) +0.00%
private_kernel_tail 135,680 (-200) -0.15% 1,063,385 (+7) +0.00%
private_kernel_tail_to_public 348,878 (-200) -0.06% 1,536,196 (+2) +0.00%

@dbanks12 dbanks12 requested review from fcarreiro, sirasistant and Thunkar and removed request for fcarreiro May 7, 2024 17:04
@@ -103,6 +103,8 @@ pub fn transform_function(
let return_type = create_return_type(&return_type_name);
func.def.return_type = return_type;
func.def.return_visibility = Visibility::Public;
} else {
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider just doing it outside of the if, since both branches do it.

@dbanks12 dbanks12 merged commit 0e828f3 into master May 7, 2024
63 of 64 checks passed
@dbanks12 dbanks12 deleted the db/avm-return-types-auto-pub branch May 7, 2024 17:31
TomAFrench added a commit that referenced this pull request May 8, 2024
* master: (25 commits)
  fix: Enable client proof tests (#6249)
  chore: update cspell for abi demonomorphizer (#6258)
  feat(aztec-nr): add 'with_gas()' function to avm call interface (#6256)
  git subrepo push --branch=master noir-projects/aztec-nr
  git_subrepo.sh: Fix parent in .gitrepo file. [skip ci]
  chore: replace relative paths to noir-protocol-circuits
  git subrepo push --branch=master barretenberg
  fix: Pw/update merge check (#6201)
  chore(master): Release 0.37.1 (#6148)
  fix: Cl/split out e2e tests (#6242)
  feat: Typings generator with generics (#6235)
  chore(ci): fix restarts with fresh spot, acir test fixes, non-mandatory benches (#6226)
  chore: misc AVM migration prep changes (#6253)
  feat!: AES blackbox (#6016)
  chore(docs): Fix some typos in specs of private kernel initial (#6224)
  chore(aztec-macros): avm function return types are auto tagged as `pub` (#6250)
  chore(aztec-nr): create a 'with_selector' version of `emit_unencrypted_log` in avm context (#6248)
  fix: registering PublicDataWitness in JsonRpcServer (#6243)
  feat: Sync from noir (#6234)
  feat(avm-simulator): consider previous pending nullifiers across enqueued calls (#6188)
  ...
TomAFrench added a commit to noir-lang/noir that referenced this pull request May 8, 2024
Automated pull of Noir development from
[aztec-packages](https://github.com/AztecProtocol/aztec-packages).
BEGIN_COMMIT_OVERRIDE
feat!: AES blackbox
(AztecProtocol/aztec-packages#6016)
chore(aztec-macros): avm function return types are auto tagged as `pub`
(AztecProtocol/aztec-packages#6250)
refactor: nuking `GrumpkinScalar`
(AztecProtocol/aztec-packages#6240)
feat: `multi_scalar_mul` blackbox func
(AztecProtocol/aztec-packages#6097)
feat: Set aztec private functions to be recursive
(AztecProtocol/aztec-packages#6192)
feat: Parsing non-string assertion payloads in noir js
(AztecProtocol/aztec-packages#6079)
feat: `variable_base_scalar_mul` blackbox func
(AztecProtocol/aztec-packages#6039)
feat: Dynamic assertion payloads v2
(AztecProtocol/aztec-packages#5949)
chore!: remove `Opcode::Brillig` from ACIR
(AztecProtocol/aztec-packages#5995)
END_COMMIT_OVERRIDE

---------

Co-authored-by: Tom French <[email protected]>
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.

3 participants