forked from M-Labs/artiq
1
0
Fork 0

Remove syscall builtin.

This commit is contained in:
whitequark 2015-08-10 16:44:29 +03:00
parent 261515dfe5
commit f53a5ff202
3 changed files with 0 additions and 8 deletions

View File

@ -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):

View File

@ -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(),
} }

View File

@ -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)