-
-
Notifications
You must be signed in to change notification settings - Fork 905
refactor[codegen]: split codegen packages #4925
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
Open
charles-cooper
wants to merge
27
commits into
vyperlang:master
Choose a base branch
from
charles-cooper:feat/venom-default
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
79e46a6
refactor[venom]: decouple venom IR from legacy IRnode
charles-cooper fdff543
refactor: rename vyper/codegen to vyper/codegen_legacy, create vyper/…
charles-cooper e58877c
feat: make Venom the default codegen, add --legacy flag
charles-cooper 0457ae7
feat: add legacy key to JSON compiler input API
charles-cooper 0498268
refactor: rename experimental_codegen to legacy_codegen (inverted sem…
charles-cooper adb6101
chore: fix lint issues from codegen rename
charles-cooper 87fa38b
fix[codegen_venom]: anchor settings before venom codegen
charles-cooper 80c919d
fix: add legacy_codegen=True to legacy-specific tests
charles-cooper e898b67
Merge branch 'master' into feat/venom-default
charles-cooper 6d15801
test: cover venom codegen in asm stability tests
charles-cooper 7ae40b3
test: use compiler_settings for asm DCE pipeline
charles-cooper 546dfe6
test: replace experimental_codegen fixture with legacy_codegen
charles-cooper af60879
chore: remove duplicate legacy jumptable utils
charles-cooper 2992644
test: rely on venom defaults in venom tests
charles-cooper a653b93
Merge branch 'master' into feat/venom-default
HodanPlodky 3d07b79
disable static asserts in the test for failures
HodanPlodky 2e0a2f4
lint for test_convert
HodanPlodky 9c42320
test for `--disable-static-exceptions` fix
HodanPlodky 6c9cc55
used fixture and correct test
HodanPlodky 930a886
fix the case for decimals and hex (to have parity with legacy)
HodanPlodky 5769087
convert int->decimals negative clamp error
HodanPlodky c7c7c61
Revert "convert int->decimals negative clamp error" moved to different
HodanPlodky 363cd88
Revert "fix the case for decimals and hex (to have parity with legacy)"
HodanPlodky e565d87
Merge branch 'master' into feat/venom-default
charles-cooper 4644877
chore: keep legacy codegen default
charles-cooper e7e32d6
lint
charles-cooper e1d3b49
refactor: remove inline ABI utility imports
charles-cooper File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -40,7 +40,7 @@ def test_round_trip_examples(path: Path, debug, optimize, compiler_settings, req | |||||
| """ | ||||||
| Check all examples round trip | ||||||
| """ | ||||||
| if not compiler_settings.experimental_codegen: | ||||||
| if not compiler_settings.legacy_codegen: | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
At least to correspond to the text |
||||||
| pytest.skip("tests n/a when venom is not enabled") | ||||||
|
|
||||||
| if debug and optimize == OptimizationLevel.CODESIZE: | ||||||
|
|
@@ -76,7 +76,7 @@ def test_round_trip_sources(vyper_source, debug, optimize, compiler_settings, re | |||||
| """ | ||||||
| Test vyper_sources round trip | ||||||
| """ | ||||||
| if not compiler_settings.experimental_codegen: | ||||||
| if not compiler_settings.legacy_codegen: | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
same as above |
||||||
| pytest.skip("tests n/a when venom is not enabled") | ||||||
|
|
||||||
| vyper_source = textwrap.dedent(vyper_source) | ||||||
|
|
@@ -105,7 +105,7 @@ def _helper1(vyper_source, optimize, input_bundle=None): | |||||
| """ | ||||||
| from vyper.compiler.settings import Settings | ||||||
|
|
||||||
| settings = Settings(experimental_codegen=True) | ||||||
| settings = Settings(legacy_codegen=False) | ||||||
| # note: compiling any later stage than ir_runtime like `asm` or | ||||||
| # `bytecode` modifies the ir_runtime data structure in place and results | ||||||
| # in normalization of the venom cfg (which breaks again make_ssa) | ||||||
|
|
@@ -138,7 +138,7 @@ def _helper2(vyper_source, optimize, compiler_settings, input_bundle=None): | |||||
| """ | ||||||
| settings = copy.copy(compiler_settings) | ||||||
| # bytecode equivalence only makes sense if we use venom pipeline | ||||||
| settings.experimental_codegen = True | ||||||
| settings.legacy_codegen = False | ||||||
|
|
||||||
| out = compile_code( | ||||||
| vyper_source, input_bundle=input_bundle, settings=settings, output_formats=["ir_runtime"] | ||||||
|
|
||||||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be removed/deprecated, no ?