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

add machine readable ir_json format #2510

Merged
merged 1 commit into from
Oct 24, 2021

Conversation

charles-cooper
Copy link
Member

@charles-cooper charles-cooper commented Oct 24, 2021

What I did

Add JSON format for IR output. Makes it easier for tools to integrate our IR.

How I did it

Map LLL nodes with no args to JSON number or string, LLL nodes with args map to {"instruction": *args}.

How to verify it

Try it out

Description for the changelog

Add machine-readable JSON format for IR output

Cute Animal Picture

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

@codecov-commenter
Copy link

codecov-commenter commented Oct 24, 2021

Codecov Report

Merging #2510 (7a2150b) into master (cec2c53) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2510      +/-   ##
==========================================
+ Coverage   84.63%   84.67%   +0.04%     
==========================================
  Files          94       94              
  Lines        9273     9281       +8     
  Branches     2093     2095       +2     
==========================================
+ Hits         7848     7859      +11     
+ Misses        940      938       -2     
+ Partials      485      484       -1     
Impacted Files Coverage Δ
vyper/compiler/__init__.py 85.71% <ø> (ø)
vyper/cli/vyper_compile.py 74.16% <100.00%> (ø)
vyper/compiler/output.py 97.31% <100.00%> (+0.15%) ⬆️
vyper/builtin_functions/functions.py 89.32% <0.00%> (+0.34%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cec2c53...7a2150b. Read the comment docs.

@charles-cooper charles-cooper marked this pull request as ready for review October 24, 2021 15:34
@charles-cooper charles-cooper merged commit 3931ba4 into vyperlang:master Oct 24, 2021
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.

None yet

3 participants