forked from M-Labs/artiq
devices/runtime: rename syscall to build_syscall
This commit is contained in:
parent
5244a63b55
commit
19abab3feb
@ -65,7 +65,7 @@ class LinkInterface:
|
||||
func_type = lc.Type.function(lc.Type.void(), [lc.Type.int()])
|
||||
self.llvm_module.add_function(func_type, "__eh_raise")
|
||||
|
||||
def syscall(self, syscall_name, args, builder):
|
||||
def build_syscall(self, syscall_name, args, builder):
|
||||
r = _chr_to_value[_syscalls[syscall_name][-1]]()
|
||||
if builder is not None:
|
||||
args = [arg.auto_load(builder) for arg in args]
|
||||
|
@ -135,7 +135,7 @@ class Visitor:
|
||||
self.builder,
|
||||
[self.visit_expression(arg) for arg in node.args])
|
||||
elif fn == "syscall":
|
||||
return self.env.syscall(
|
||||
return self.env.build_syscall(
|
||||
node.args[0].s,
|
||||
[self.visit_expression(expr) for expr in node.args[1:]],
|
||||
self.builder)
|
||||
|
Loading…
Reference in New Issue
Block a user