David Mak
|
6a64c9d1de
|
core/typecheck/typedef: Add is_vararg_ctx to TTuple
|
2024-08-06 11:45:54 +08:00 |
David Mak
|
cbf79c5e9c
|
core/typecheck/typedef: Add is_vararg to FuncArg, ConcreteFuncArg
|
2024-08-06 11:43:13 +08:00 |
David Mak
|
b8aa17bf8c
|
core/toplevel/composer: Add parsing for vararg parameter
|
2024-08-06 10:52:24 +08:00 |
abdul124
|
63d2b49b09
|
core: remove np_linalg_matmul
|
2024-08-05 11:44:55 +08:00 |
abdul124
|
1c72698d02
|
core: add np_linalg_det and np_linalg_matrix_power functions
|
2024-07-31 18:02:54 +08:00 |
abdul124
|
54f883f0a5
|
core: implement np_dot using LLVM_IR
|
2024-07-31 15:53:51 +08:00 |
abdul124
|
00236f48bc
|
core: add np.transpose and np.reshape functions
|
2024-07-31 13:23:07 +08:00 |
abdul124
|
a3e6bb2292
|
core/helper: add linalg section
|
2024-07-31 13:23:07 +08:00 |
abdul124
|
2242c5af43
|
core: add linalg methods
|
2024-07-29 16:48:06 +08:00 |
lyken
|
72972fa909
|
core/toplevel: add more numpy categories
|
2024-07-27 21:57:47 +08:00 |
lyken
|
142cd48594
|
core/toplevel: reorder PrimDef::details
|
2024-07-27 21:57:47 +08:00 |
lyken
|
8adfe781c5
|
core/toplevel: fix PrimDef method names
|
2024-07-27 21:57:47 +08:00 |
lyken
|
339b74161b
|
core/toplevel: reorganize PrimDef
|
2024-07-27 21:57:47 +08:00 |
David Mak
|
4948395ca2
|
core/toplevel/type_annotation: Add handling for mismatching class def
Primitive types only contain fields in its Type and not its TopLevelDef.
This causes primitive object types to lack some fields.
|
2024-07-19 14:42:14 +08:00 |
lyken
|
6c10e3d056
|
core: cargo clippy
|
2024-07-12 21:18:53 +08:00 |
lyken
|
2dbc1ec659
|
cargo fmt
|
2024-07-12 21:16:38 +08:00 |
abdul124
|
cea7cade51
|
core: add np_argmax/np_argmin functions
|
2024-07-12 18:18:28 +08:00 |
David Mak
|
a91602915a
|
core: Fix missing fields in range type
|
2024-07-09 13:53:50 +08:00 |
David Mak
|
2cfb7a7e10
|
core: Refactor range function into constructor
|
2024-07-09 04:44:40 +08:00 |
David Mak
|
c85e412206
|
core: Implement list::__mul__
|
2024-07-04 15:53:50 +08:00 |
David Mak
|
2194dbddd5
|
core/type_annotation: Refactor List type to TObj
In preparation for operators on lists.
|
2024-07-04 15:32:18 +08:00 |
lyken
|
5b11a1dbdd
|
core: support tuple and int32 input for np_empty, np_ones, and more
|
2024-06-27 14:30:17 +08:00 |
abdul124
|
134af79fd6
|
core: add support for class attributes
|
2024-06-25 16:06:33 +08:00 |
abdul124
|
7fe2c3496c
|
core: add attribute field to class definition
|
2024-06-25 16:06:33 +08:00 |
lyken
|
06e9d90d57
|
apply clippy changes
|
2024-06-21 14:14:01 +08:00 |
lyken
|
e85f4f9bd2
|
core: refactor top_level::builtins::get_builtins()
|
2024-06-18 11:06:25 +08:00 |
David Mak
|
82091b1be8
|
meta: Apply clippy changes
|
2024-06-17 14:10:31 +08:00 |
lyken
|
2abe75d1f4
|
core: remove code dup with `make_exception_fields`
|
2024-06-17 12:01:48 +08:00 |
lyken
|
676412fe6d
|
apply cargo fmt
|
2024-06-14 09:46:42 +08:00 |
lyken
|
fed1361c6a
|
core: rename to_var_map to into_var_map
|
2024-06-13 16:59:10 +08:00 |
lyken
|
f026b48e2a
|
core: refactor to use `TypeVarId` and `TypeVar`
|
2024-06-13 16:59:10 +08:00 |
lyken
|
dc874f2994
|
core: use `PrimDef` simple names in make_primitives()
|
2024-06-13 16:58:32 +08:00 |
David Mak
|
23974feae7
|
meta: Restrict number of allowed lints
|
2024-06-12 16:10:57 +08:00 |
lyken
|
c4420e6ab9
|
core: refactor `get_builtins()`
|
2024-06-12 15:09:20 +08:00 |
lyken
|
fd36f78005
|
core: refactor `PrimitiveDefinitionId` into enum `PrimDef`
|
2024-06-12 15:01:01 +08:00 |
lyken
|
8168692cc3
|
apply cargo fmt
|
2024-06-12 14:45:03 +08:00 |
David Mak
|
6153f94b05
|
core/numpy: Implement codegen for np_array
|
2024-06-11 16:42:11 +08:00 |
David Mak
|
4730b595f3
|
core/builtins: Add np_array function
|
2024-06-11 16:42:08 +08:00 |
David Mak
|
82bf14785b
|
core: Add multidimensional array helpers
|
2024-06-11 15:30:06 +08:00 |
David Mak
|
210d9e2334
|
core: Add more creator functions for ProxyType
|
2024-06-11 15:26:37 +08:00 |
David Mak
|
3acdfb304d
|
meta: Apply clippy suggestions
|
2024-06-11 14:58:32 +08:00 |
lyken
|
08129cc635
|
nac3core: add TopLevelComposer::new builtin check's assertion msg
|
2024-06-05 15:30:02 +08:00 |
David Mak
|
520e1adc56
|
core/builtins: Add np_minimum/np_maximum
|
2024-05-09 15:01:20 +08:00 |
David Mak
|
73e81259f3
|
core/builtins: Add np_min/np_max
|
2024-05-09 15:01:20 +08:00 |
David Mak
|
30c6cffbad
|
core/builtins: Refactored numpy builtins to accept scalar and ndarrays
|
2024-05-06 15:38:29 +08:00 |
David Mak
|
51671800b6
|
core/builtins: Extract codegen portion into functions
We will need to reuse them when implementing elementwise function
application for ndarrays.
|
2024-05-06 13:21:54 +08:00 |
David Mak
|
7195476edb
|
core/builtins: Add llvm_intrinsics prefix
|
2024-05-06 13:21:54 +08:00 |
David Mak
|
eecba0b71d
|
core: Add GenCall::create_dummy
A simple abstraction for GenCalls that are already handled elsewhere.
|
2024-05-06 13:21:54 +08:00 |
David Mak
|
f58c3a11f8
|
core/builtins: Rework handling of PrimitiveStore-Unifier tuples
|
2024-05-06 13:21:54 +08:00 |
David Mak
|
d0766a116f
|
core: Remove Box from GenCallCallback type alias
So that references to the function type can be taken.
|
2024-05-06 13:21:54 +08:00 |