forked from M-Labs/artiq
1
0
Fork 0
Commit Graph

1106 Commits

Author SHA1 Message Date
whitequark 0ae13ac1b9 Style fixes. 2015-07-02 22:38:55 +03:00
whitequark 7c833f0727 Move transforms.MonomorphismChecker to validators.MonomorphismValidator. 2015-07-02 21:54:31 +03:00
whitequark 02b41ea0f7 Add MonomorphismChecker. 2015-07-02 21:28:26 +03:00
whitequark 73a8f3c442 Fix tests. 2015-07-02 20:06:43 +03:00
whitequark 8a65266f14 Improve builtin call error message. 2015-07-02 20:06:07 +03:00
whitequark 196acb37f6 Add IntMonomorphizer. 2015-07-02 19:57:27 +03:00
whitequark 7ce9bdf54d Move transforms to artiq.compiler.transforms, add artiq.Module. 2015-07-02 19:35:35 +03:00
whitequark 1702251ee5 Add region field to types. 2015-07-02 18:44:09 +03:00
whitequark 86cdc84f7e Initialize types.TBuiltin's attributes field. 2015-07-02 18:19:01 +03:00
whitequark 6bf95397d7 Rename package py2llvm to compiler.
Since the package implements a typechecker along with a code generator,
and the typechecker will be run before or together with transformations,
this name is more descriptive.
2015-06-29 20:15:22 +03:00
whitequark f430bf3f63 Add support for exceptions. 2015-06-29 00:35:48 +03:00
whitequark a4a9cd884e Add exception constructor types. 2015-06-28 22:48:15 +03:00
whitequark 9044e88983 Elaborate hierarchy of builtins. 2015-06-28 22:40:57 +03:00
whitequark ea0d11b8be Allow also passing iterables to lists. 2015-06-26 19:14:24 +03:00
whitequark e07057c224 Add range types. 2015-06-26 18:53:20 +03:00
whitequark 71256a7109 Assignment rhs is typed before lhs. 2015-06-26 18:35:34 +03:00
whitequark 7cd6011981 Add typechecking for most builtin. 2015-06-26 11:16:08 +03:00
whitequark 752031147d Add valid forms for builtin calls. 2015-06-24 12:16:17 +03:00
whitequark 4d407ace4b Implement prelude. 2015-06-24 11:46:15 +03:00
whitequark 710a04cbee Add builtin definitions for len(), round(), range() and syscall(). 2015-06-24 11:28:24 +03:00
whitequark 8762729e80 Add types.TBuiltin. 2015-06-24 11:24:35 +03:00
whitequark 3adb4150f4 Fix type of Call. 2015-06-15 17:16:44 +03:00
whitequark 8c5e58f83c Implement Call. 2015-06-15 16:55:13 +03:00
whitequark 7a00a4a47f Fix typo in a test. 2015-06-15 16:00:19 +03:00
whitequark a3789868f2 More friendly artiq.py2llvm.typing testbench. 2015-06-15 15:59:36 +03:00
whitequark 20e0e69358 Add support for function types and LambdaT.
Also fix scoping of Nonlocal.
2015-06-15 11:30:50 +03:00
whitequark dbfdbc3c22 Add check for duplicate parameter names. 2015-06-15 09:05:24 +03:00
whitequark d27bb3168d Add support for ListComp. 2015-06-15 08:40:37 +03:00
whitequark 77adf2f6b5 Add support for With. 2015-06-14 23:13:41 +03:00
whitequark cd22b8178c Add support for Raise. 2015-06-14 23:02:28 +03:00
whitequark 20b7a73b49 Add support for Compare. 2015-06-14 22:48:04 +03:00
whitequark fe69c5b465 Implement BinOp coercion rules for AugAssign. 2015-06-14 13:10:32 +03:00
whitequark 7b78e7de67 Add support for BinOp. 2015-06-14 12:07:13 +03:00
whitequark faaf189961 Add support for Attribute. 2015-06-13 13:50:56 +03:00
whitequark 23f33d7239 Invert operand should be integer. 2015-06-13 13:45:09 +03:00
whitequark 1c48874a2a Documentation. 2015-06-13 13:08:16 +03:00
whitequark de6dff94cd GeneratorExp also includes assignment context. 2015-06-13 12:58:45 +03:00
whitequark 4b4805265d Add support for Break and Continue. 2015-06-13 12:10:30 +03:00
whitequark 55551714fa Error out on unsupported statements. 2015-06-13 11:33:38 +03:00
whitequark 4c95647162 Split ASTTypedRewriter off Inferencer. 2015-06-13 11:33:03 +03:00
whitequark 61434a8da3 Split off builtins from types.
builtins will contain attribute definitions as well.
2015-06-13 10:29:26 +03:00
whitequark 56bba3009d Only build the master branch on Travis. 2015-06-13 09:34:31 +03:00
whitequark 3e2d104014 Make typing.Inferencer idempotent. 2015-06-13 09:32:53 +03:00
whitequark c89bf6fae0 Add support for UnaryOp. 2015-06-12 08:59:41 +03:00
whitequark df686136f1 Separate inference and asttyped transformation.
This allows to run inference several times on the same tree,
as would be necessary when coercion nodes are added.
2015-06-11 06:34:26 +03:00
whitequark e18ea0daae Better error reporting for List. 2015-06-11 04:36:52 +03:00
whitequark 4b7d4c2425 Add support for BoolOp. 2015-06-11 04:36:51 +03:00
whitequark b8ce3f85bd Refactor error reporting in _unify to factor out custom notes. 2015-06-11 04:36:28 +03:00
whitequark ba9a7d087d Add support for IfExp. 2015-06-11 04:36:03 +03:00
whitequark 9953302cb6 Move old py2llvm code to artiq/py2llvm_old. 2015-06-11 02:58:29 +03:00