Skip to content

Commit

Permalink
transforms.artiq_ir_generator: fix decomposition of explicit delay_mu().
Browse files Browse the repository at this point in the history
whitequark committed Nov 20, 2015
1 parent cb3b811 commit 57dd163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artiq/compiler/transforms/artiq_ir_generator.py
Original file line number Diff line number Diff line change
@@ -1525,7 +1525,7 @@ def body_gen(index):
arg = self.visit(node.args[0])
arg_mu_float = self.append(ir.Arith(ast.Div(loc=None), arg, self.ref_period))
arg_mu = self.append(ir.Coerce(arg_mu_float, builtins.TInt(types.TValue(64))))
self.append(ir.Builtin(typ.name + "_mu", [arg_mu], builtins.TNone()))
return self.append(ir.Builtin(typ.name + "_mu", [arg_mu], builtins.TNone()))
else:
assert False
elif types.is_builtin(typ, "now_mu") or types.is_builtin(typ, "delay_mu") \

0 comments on commit 57dd163

Please sign in to comment.