-
-
Notifications
You must be signed in to change notification settings - Fork 832
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[docs]: mention the --venom
flag in venom docs
#4353
chore[docs]: mention the --venom
flag in venom docs
#4353
Conversation
vyper/venom/README.md
Outdated
@@ -193,7 +193,7 @@ An operand can be a label, a variable, or a literal. | |||
By convention, variables have a `%-` prefix, e.g. `%1` is a valid variable. However, the prefix is not required. | |||
|
|||
## Instructions | |||
To enable Venom IR in Vyper, use the `--experimental-codegen` flag. To view the Venom IR output, use `-f bb_runtime` for the runtime code, or `-f bb` to see the deploy code. To get a dot file (for use e.g. with `xdot -`), use `-f cfg` or `-f cfg_runtime`. | |||
To enable Venom IR in Vyper, use the `--venom` or `--experimental-codegen` CLI flag, or the corresponding pragma statements. To view the Venom IR output, use `-f bb_runtime` for the runtime code, or `-f bb` to see the deploy code. To get a dot file (for use e.g. with `xdot -`), use `-f cfg` or `-f cfg_runtime`. |
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.
To enable Venom IR in Vyper, use the `--venom` or `--experimental-codegen` CLI flag, or the corresponding pragma statements. To view the Venom IR output, use `-f bb_runtime` for the runtime code, or `-f bb` to see the deploy code. To get a dot file (for use e.g. with `xdot -`), use `-f cfg` or `-f cfg_runtime`. | |
To enable Venom IR in Vyper, use the `--experimental-codegen` CLI flag or its alias `--venom`, or the corresponding pragma statements. To view the Venom IR output, use `-f bb_runtime` for the runtime code, or `-f bb` to see the deploy code. To get a dot file (for use e.g. with `xdot -`), use `-f cfg` or `-f cfg_runtime`. |
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.
To enable Venom IR in Vyper, use the `--venom` or `--experimental-codegen` CLI flag, or the corresponding pragma statements. To view the Venom IR output, use `-f bb_runtime` for the runtime code, or `-f bb` to see the deploy code. To get a dot file (for use e.g. with `xdot -`), use `-f cfg` or `-f cfg_runtime`. | |
To enable Venom IR in Vyper, use the `--experimental-codegen` CLI flag or its alias `--venom`, or the corresponding pragma statements (e.g. `#pragma experimental-codegen`). To view the Venom IR output, use `-f bb_runtime` for the runtime code, or `-f bb` to see the deploy code. To get a dot file (for use e.g. with `xdot -`), use `-f cfg` or `-f cfg_runtime`. |
I think we should also update the rst docs |
--venom
flag in venom docs--venom
flag in venom docs
I've added a mention of pragma and CLI options for venom. |
docs/compiling-a-contract.rst
Outdated
Enabling Experimental Codegen | ||
=========================== | ||
|
||
When compiling, you can use the CLI flag ``"experimental-codegen"`` or its alias ``"venom"`` to activate the new Venom IR. |
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.
When compiling, you can use the CLI flag ``"experimental-codegen"`` or its alias ``"venom"`` to activate the new Venom IR. | |
When compiling, you can use the CLI flag ``"experimental-codegen"`` or its alias ``"venom"`` to activate the new `Venom IR <https://github.com/vyperlang/vyper/blob/master/vyper/venom/README.md>`_. |
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.
I just realised that when I printed vyper --help
the Venom flags bb
, bb_runtime
, cfg
, and cfg_runtime
are missing. Furthermore, they are also missing here:
I think it would be useful to have them in the CLI help as well as in the docs.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4353 +/- ##
==========================================
- Coverage 91.37% 88.89% -2.49%
==========================================
Files 112 112
Lines 15927 15927
Branches 2693 2693
==========================================
- Hits 14554 14159 -395
- Misses 939 1258 +319
- Partials 434 510 +76 ☔ View full report in Codecov by Sentry. |
What I did
Add one sentence about
--venom
and the corresponding pragma.How I did it
How to verify it
Commit message
Description for the changelog
Cute Animal Picture