Reformat.

This commit is contained in:
whitequark 2015-11-20 23:33:06 +08:00
parent cb9e7d15bf
commit 73c358a59a
1 changed files with 65 additions and 54 deletions

View File

@ -1558,7 +1558,18 @@ class ARTIQIRGenerator(algorithm.Visitor):
if types.is_builtin(typ): if types.is_builtin(typ):
insn = self.visit_builtin_call(node) insn = self.visit_builtin_call(node)
else:
# Temporary.
if node.iodelay is not None and not iodelay.is_const(node.iodelay, 0):
after_delay = self.add_block()
self.append(ir.Delay(node.iodelay,
{var_name: self.current_args[var_name]
for var_name in node.iodelay.free_vars()},
after_delay))
self.current_block = after_delay
return insn
if types.is_function(typ): if types.is_function(typ):
func = self.visit(node.func) func = self.visit(node.func)
self_arg = None self_arg = None