forked from M-Labs/artiq
Reformat.
This commit is contained in:
parent
cb9e7d15bf
commit
73c358a59a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user