mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-28 12:48:26 +08:00
compiler/ir: replace quantities with their integer value
This commit is contained in:
parent
1b52941381
commit
d922c3db7e
@ -66,6 +66,8 @@ def _emit_expr(env, builder, ns, node):
|
||||
if node.func.id == "syscall":
|
||||
return env.emit_syscall(builder, node.args[0].s,
|
||||
[_emit_expr(env, builder, ns, expr) for expr in node.args[1:]])
|
||||
elif node.func.id == "Quantity":
|
||||
return _emit_expr(env, builder, ns, node.args[0])
|
||||
else:
|
||||
raise NotImplementedError
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user