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[docs]: mention the --venom flag in venom docs #4353

Merged

Conversation

sandbubbles
Copy link
Collaborator

@sandbubbles sandbubbles commented Nov 7, 2024

What I did

Add one sentence about --venom and the corresponding pragma.

How I did it

How to verify it

Commit message

add some notes to the relevant docs that `venom` is an alias for
`experimental-codegen`

Description for the changelog

Cute Animal Picture

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

@@ -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`.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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`.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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`.

@charles-cooper
Copy link
Member

I think we should also update the rst docs

@sandbubbles sandbubbles changed the title docs: mention the --venom flag in venom docs chore[docs]: mention the --venom flag in venom docs Nov 9, 2024
@sandbubbles
Copy link
Collaborator Author

I think we should also update the rst docs

I've added a mention of pragma and CLI options for venom.

@sandbubbles sandbubbles marked this pull request as ready for review November 9, 2024 11:26
Enabling Experimental Codegen
===========================

When compiling, you can use the CLI flag ``"experimental-codegen"`` or its alias ``"venom"`` to activate the new Venom IR.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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>`_.

Copy link
Collaborator

@pcaversaccio pcaversaccio Nov 9, 2024

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:

image

I think it would be useful to have them in the CLI help as well as in the docs.

Copy link

codecov bot commented Nov 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.89%. Comparing base (0abcf45) to head (e58b57a).

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.
📢 Have feedback on the report? Share it here.

@charles-cooper charles-cooper enabled auto-merge (squash) November 20, 2024 16:44
@charles-cooper charles-cooper merged commit e0fc53a into vyperlang:master Nov 20, 2024
156 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