David Mak
f3dc02d646
[meta] Apply cargo fmt
2024-09-09 14:24:52 +08:00
Sebastien Bourdeauducq
6098b1b853
fix previous commit
2024-09-06 11:32:08 +08:00
Sebastien Bourdeauducq
668ccb1c95
nac3core: expose inkwell and nac3parser
2024-09-06 11:06:26 +08:00
lyken
59cad5bfe1
standalone: clang-format demo.c
2024-08-29 10:37:24 +08:00
lyken
4318f8de84
standalone: improve src/assignment.py
2024-08-29 10:33:58 +08:00
lyken
c8dfdcfdea
standalone & artiq: remove class_names from resolver
2024-08-27 23:43:40 +08:00
Sébastien Bourdeauducq
600a5c8679
Revert "standalone: reformat demo.c"
...
This reverts commit 308edb8237
.
2024-08-27 23:06:49 +08:00
lyken
308edb8237
standalone: reformat demo.c
2024-08-27 22:55:22 +08:00
lyken
9848795dcc
core/irrt: add exceptions and debug utils
2024-08-27 22:55:22 +08:00
abdul124
15e62f467e
standalone: add tests for polymorphism
2024-08-26 18:37:55 +08:00
David Mak
c5ae0e7c36
[standalone] Add tests for tuple equality
2024-08-21 16:25:32 +08:00
David Mak
b8dab6cf7c
[standalone] Add tests for string equality
2024-08-21 16:25:32 +08:00
lyken
8532bf5206
standalone: add missing test_ndarray_ceil() run
2024-08-21 11:39:00 +08:00
David Mak
9e0601837a
core: Add compile-time feature to disable escape analysis
2024-08-14 09:29:48 +08:00
David Mak
8fd7216243
[core] toplevel/composer: Add lateinit_builtins
...
This is required for the new core_log and rtio_log functions, which take
a generic type as its parameter. However, in ARTIQ builtins are
initialized using one unifier and then actually used by another unifier.
lateinit_builtins workaround this issue by deferring the initialization
of functions requiring type variables until the actual unifier is ready.
2024-08-13 15:19:03 +08:00
David Mak
b3891b9a0d
standalone: Fix several issues post script refactoring
...
- Add helptext for check_demos.sh
- Add back support for using debug NAC3 for running tests
- Output error message when argument is not recognized
- Fixed last non-demo script argument being ignored
- Add back SSE2 requirement to NAC3 (required for mandelbrot)
2024-08-13 15:19:03 +08:00
David Mak
d0da688aa7
standalone: Add tuple len test
2024-08-13 15:02:59 +08:00
David Mak
ac0d83ef98
standalone: Add vararg.py
2024-08-06 11:48:42 +08:00
lyken
fb9fe8edf2
core: reimplement assignment type inference and codegen
...
- distinguish between setitem and getitem
- allow starred assignment targets, but the assigned value would be a tuple
- allow both [...] and (...) to be target lists
2024-08-05 19:30:48 +08:00
Sébastien Bourdeauducq
669c6aca6b
clean up and fix 32-bit demos
2024-08-05 19:04:25 +08:00
abdul124
63d2b49b09
core: remove np_linalg_matmul
2024-08-05 11:44:55 +08:00
abdul124
bf709889c4
standalone/demo: separate linalg functions from main workspace
2024-08-05 11:44:54 +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
4a6845dac6
standalone: add np.transpose and np.reshape functions
2024-07-31 13:23:07 +08:00
abdul124
17171065b1
standalone: link linalg at runtime
2024-07-31 13:23:07 +08:00
abdul124
540b35ec84
standalone: move linalg functions to demo
2024-07-31 13:23:05 +08:00
abdul124
faf07527cb
standalone: add runtime implementation for linalg functions
2024-07-31 13:21:28 +08:00
abdul124
d6a4d0a634
standalone: add linalg methods and tests
2024-07-29 16:48:06 +08:00
David Mak
318a675ea6
standalone: Rename -m32 to -i386
2024-07-29 14:58:58 +08:00
David Mak
32e52ce198
standalone: Revert using uint32_t as slice length
...
Turns out list and str have always been size_t.
2024-07-29 14:58:29 +08:00
David Mak
8c5ba37d09
standalone: Add 32-bit execution tests to check_demo.sh
2024-07-26 13:35:40 +08:00
David Mak
5faeede0e5
Determine size_t using LLVM target machine
2024-07-26 13:35:38 +08:00
David Mak
3d3c258756
standalone: Remove support for --lli
2024-07-26 13:32:38 +08:00
David Mak
ed1182cb24
standalone: Update format specifiers for exceptions
...
Use platform-agnostic identifiers instead.
2024-07-26 13:32:37 +08:00
David Mak
fd025c1137
standalone: Use uint32_t for cslice length
...
Matching the expected type of string and list slices.
2024-07-26 13:32:21 +08:00
lyken
44487b76ae
standalone: interpret_demo.py remove duplicated section
2024-07-22 17:23:35 +08:00
lyken
1332f113e8
standalone: fix interpret_demo.py comments
2024-07-22 17:06:14 +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
1a31a50b8a
standalone: fix __nac3_raise def in demo.c
2024-07-17 21:22:08 +08:00
Sebastien Bourdeauducq
c80378063a
add np_argmin/argmax to interpret_demo environment
2024-07-12 13:27:52 +02:00
abdul124
45e9360c4d
standalone: Add np_argmax and np_argmin tests
2024-07-12 18:19:56 +08:00
David Mak
f47cdec650
standalone: Fix output format of output_range
2024-07-09 13:55:48 +08:00
David Mak
d656880e44
standalone: Fix missing implementation for output_range
2024-07-09 13:53:50 +08:00
David Mak
25d2de67f7
standalone: Add output_range and tests
2024-07-09 04:44:40 +08:00
David Mak
9238a5e86e
standalone: Rename output_str to output_strln and add output_str
...
output_str is for outputting strings without newline, and the newly
introduced output_strln now has the old behavior of ending with a
newline.
2024-07-09 04:44:40 +08:00
David Mak
ba32fab374
standalone: Add demos for list arithmetic operators
2024-07-04 16:01:15 +08:00
abdul124
83154ef8e1
core/llvm_intrinsics: remove llvm.roundeven call from call_float_roundeven
2024-07-03 14:17:47 +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
lyken
ca8459dc7b
standalone: prettify TopLevelComposer error reporting
2024-06-27 10:15:14 +08:00