-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
feat[ir]: return IRnode
from context.new_variable()
#3905
Conversation
this unifies various functions which modify global settings: anchor_opt_level, anchor_evm_version, _set_debug
small refactor: refactor replicated code for variable deallocatoin
it better belongs in a separate pass
def set_global_settings(new_settings: Optional[Settings]) -> None: | ||
assert isinstance(new_settings, Settings) or new_settings is None | ||
# TODO evil circular import | ||
from vyper.evm.opcodes import DEFAULT_EVM_VERSION, EVM_VERSIONS, set_global_evm_version |
Check notice
Code scanning / CodeQL
Cyclic import Note
vyper.evm.opcodes
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #3905 +/- ##
==========================================
- Coverage 90.92% 89.14% -1.78%
==========================================
Files 95 95
Lines 14387 14414 +27
Branches 3186 3189 +3
==========================================
- Hits 13081 12849 -232
- Misses 904 1110 +206
- Partials 402 455 +53 ☔ View full report in Codecov by Sentry. |
superseded by #3941 (these commits were incorporated there) |
What I did
per title, return IRnode from context.new_variable(). additionally, when experimental_codegen is enabled, return an abstract "alloca" object instead of an int. this allows us to treat allocated memory as abstract, which will enable mem2stack and related optimizations.
How I did it
How to verify it
Commit message
Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)
Description for the changelog
Cute Animal Picture