2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00

compiler.builtins: {fn→obj}_{serial,parallel}.

This commit is contained in:
whitequark 2015-12-10 23:03:28 +08:00
parent c660028abf
commit 143bae4bd3
2 changed files with 6 additions and 6 deletions

View File

@ -144,11 +144,11 @@ def fn_print():
def fn_kernel():
return types.TBuiltinFunction("kernel")
def fn_parallel():
return types.TBuiltinFunction("parallel")
def obj_parallel():
return types.TBuiltin("parallel")
def fn_sequential():
return types.TBuiltinFunction("sequential")
def obj_sequential():
return types.TBuiltin("sequential")
def fn_now():
return types.TBuiltinFunction("now")

View File

@ -29,8 +29,8 @@ def globals():
"kernel": builtins.fn_kernel(),
# ARTIQ context managers
"parallel": builtins.fn_parallel(),
"sequential": builtins.fn_sequential(),
"parallel": builtins.obj_parallel(),
"sequential": builtins.obj_sequential(),
# ARTIQ time management functions
"now": builtins.fn_now(),