forked from M-Labs/artiq
Remove syscall builtin.
This commit is contained in:
parent
261515dfe5
commit
f53a5ff202
|
@ -150,9 +150,6 @@ def fn_print():
|
||||||
def fn_kernel():
|
def fn_kernel():
|
||||||
return types.TBuiltinFunction("kernel")
|
return types.TBuiltinFunction("kernel")
|
||||||
|
|
||||||
def fn_syscall():
|
|
||||||
return types.TBuiltinFunction("syscall")
|
|
||||||
|
|
||||||
# Accessors
|
# Accessors
|
||||||
|
|
||||||
def is_none(typ):
|
def is_none(typ):
|
||||||
|
|
|
@ -20,5 +20,4 @@ def globals():
|
||||||
"round": builtins.fn_round(),
|
"round": builtins.fn_round(),
|
||||||
"print": builtins.fn_print(),
|
"print": builtins.fn_print(),
|
||||||
"kernel": builtins.fn_kernel(),
|
"kernel": builtins.fn_kernel(),
|
||||||
"syscall": builtins.fn_syscall(),
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -666,10 +666,6 @@ class Inferencer(algorithm.Visitor):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
diagnose(valid_forms())
|
diagnose(valid_forms())
|
||||||
# TODO: add when it is clear what interface syscall() has
|
|
||||||
# elif types.is_builtin(typ, "syscall"):
|
|
||||||
# valid_Forms = lambda: [
|
|
||||||
# ]
|
|
||||||
|
|
||||||
def visit_CallT(self, node):
|
def visit_CallT(self, node):
|
||||||
self.generic_visit(node)
|
self.generic_visit(node)
|
||||||
|
|
Loading…
Reference in New Issue