Skip to content

Commit

Permalink
Legendary bb output mode resurection
Browse files Browse the repository at this point in the history
  • Loading branch information
harkal committed Jan 3, 2024
1 parent 0c82d0b commit 6bbd151
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vyper/compiler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
# requires ir_node
"external_interface": output.build_external_interface_output,
"interface": output.build_interface_output,
"bb": output.build_bb_output,
"bb_runtime": output.build_bb_runtime_output,
"ir": output.build_ir_output,
"ir_runtime": output.build_ir_runtime_output,
"ir_dict": output.build_ir_dict_output,
Expand Down
10 changes: 10 additions & 0 deletions vyper/compiler/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ def build_interface_output(compiler_data: CompilerData) -> str:
return out


def build_bb_output(compiler_data: CompilerData) -> IRnode:
compiler_data.experimental_codegen = True
return compiler_data.ir_nodes


def build_bb_runtime_output(compiler_data: CompilerData) -> IRnode:
compiler_data.experimental_codegen = True
return compiler_data.ir_runtime


def build_ir_output(compiler_data: CompilerData) -> IRnode:
if compiler_data.show_gas_estimates:
IRnode.repr_show_gas = True
Expand Down

0 comments on commit 6bbd151

Please sign in to comment.