From d922c3db7e77128b91ed2354190754fd3ea787f6 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 23 Jul 2014 11:48:43 -0600 Subject: [PATCH] compiler/ir: replace quantities with their integer value --- artiq/compiler/ir.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/compiler/ir.py b/artiq/compiler/ir.py index 9a32882a5..d31d2f1ea 100644 --- a/artiq/compiler/ir.py +++ b/artiq/compiler/ir.py @@ -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: