mirror of https://github.com/m-labs/artiq.git
compiler/ir: pass arguments to syscall
This commit is contained in:
parent
6b8ac5ae7b
commit
711be75c35
|
@ -113,7 +113,8 @@ def _emit_statements(env, builder, ns, stmts):
|
||||||
elif isinstance(stmt, ast.Expr) and isinstance(stmt.value, ast.Call):
|
elif isinstance(stmt, ast.Expr) and isinstance(stmt.value, ast.Call):
|
||||||
call = stmt.value
|
call = stmt.value
|
||||||
if call.func.id == "syscall":
|
if call.func.id == "syscall":
|
||||||
env.emit_syscall(builder, call.args[0].s, [])
|
env.emit_syscall(builder, call.args[0].s,
|
||||||
|
[_emit_expr(builder, ns, expr) for expr in call.args[1:]])
|
||||||
else:
|
else:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue