forked from M-Labs/artiq
1
0
Fork 0

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):
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):
func = self.visit(node.func)
self_arg = None