Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/artiq
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7806ca337315
Choose a base ref
...
head repository: m-labs/artiq
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 217fe8251bbe
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Oct 31, 2014

  1. Copy the full SHA
    cf7848c View commit details
  2. Copy the full SHA
    217fe82 View commit details
Showing with 295 additions and 243 deletions.
  1. +11 −2 artiq/coredevice/core.py
  2. +284 −241 artiq/transforms/inline.py
13 changes: 11 additions & 2 deletions artiq/coredevice/core.py
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@ def __init__(self, core_com, runtime_env=None):

def run(self, k_function, k_args, k_kwargs):
# transform/simplify AST
_debug_unparse = _make_debug_unparse("remove_dead_code")
_debug_unparse = _make_debug_unparse("remove_dead_code_2")

func_def, rpc_map, exception_map = inline(
self, k_function, k_args, k_kwargs)
@@ -77,7 +77,16 @@ def run(self, k_function, k_args, k_kwargs):
_debug_unparse("fold_constants_2", func_def)

remove_dead_code(func_def)
_debug_unparse("remove_dead_code", func_def)
_debug_unparse("remove_dead_code_1", func_def)

remove_inter_assigns(func_def)
_debug_unparse("remove_inter_assigns_3", func_def)

fold_constants(func_def)
_debug_unparse("fold_constants_3", func_def)

remove_dead_code(func_def)
_debug_unparse("remove_dead_code_2", func_def)

# compile to machine code and run
binary = get_runtime_binary(self.runtime_env, func_def)
Loading