Skip to content

feat[venom]: add calloca instruction#4376

Merged
charles-cooper merged 19 commits intovyperlang:masterfrom
charles-cooper:feat/venom/calloca
Mar 14, 2025
Merged

feat[venom]: add calloca instruction#4376
charles-cooper merged 19 commits intovyperlang:masterfrom
charles-cooper:feat/venom/calloca

Conversation

@charles-cooper
Copy link
Copy Markdown
Member

@charles-cooper charles-cooper commented Nov 26, 2024

What I did

promote the callee buffer (allocated at call site) to an alloca-like instruction.

there are a couple minor regressions in here:
one is fixed in #4419
the other is filed in #4420.

How I did it

How to verify it

Commit message

this commit promotes the callee buffer (allocated at call site) to an
alloca-like instruction, `calloca`. this allows us to treat all buffers
generated by the frontend abstractly, instead of needing to do memory
analysis.

`calloca` additionally has a parameter to help identify which call-site
it is associated with, as a hint for alias and reordering analyses.

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

this instruction is meant to help match call-site allocations with
pallocas (inside the callee).
@charles-cooper charles-cooper requested a review from harkal December 4, 2024 11:51
@charles-cooper charles-cooper marked this pull request as ready for review December 7, 2024 15:14
@charles-cooper charles-cooper requested review from harkal and removed request for harkal December 7, 2024 15:15
@charles-cooper charles-cooper added this to the v0.4.1 milestone Dec 18, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 22, 2024

Codecov Report

Attention: Patch coverage is 91.17647% with 3 lines in your changes missing coverage. Please review.

Project coverage is 92.24%. Comparing base (2360d62) to head (98cede9).
Report is 83 commits behind head on master.

Files with missing lines Patch % Lines
vyper/venom/venom_to_assembly.py 0.00% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4376      +/-   ##
==========================================
+ Coverage   92.22%   92.24%   +0.01%     
==========================================
  Files         123      123              
  Lines       17472    17500      +28     
  Branches     2955     2960       +5     
==========================================
+ Hits        16114    16142      +28     
  Misses        946      946              
  Partials      412      412              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Collaborator

@cyberthirst cyberthirst left a comment

Choose a reason for hiding this comment

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

only checked the minimalist legacy update

@cyberthirst cyberthirst modified the milestones: v0.4.1, v0.4.2 Mar 10, 2025
@charles-cooper charles-cooper enabled auto-merge (squash) March 14, 2025 10:42
@charles-cooper charles-cooper merged commit 579dd57 into vyperlang:master Mar 14, 2025
159 checks passed
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