mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-24 19:04:02 +08:00
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):
|
||||
call = stmt.value
|
||||
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:
|
||||
raise NotImplementedError
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user