Commit Graph

1310 Commits

Author SHA1 Message Date
David Mak fd4529ed57 WIP - [artiq] Implement alignment 2024-08-15 12:45:21 +08:00
David Mak d91fae90d0 WIP - [artiq] Double indirection? 2024-08-15 12:08:10 +08:00
David Mak 4ac60b4fc9 WIP - [artiq] More test 2024-08-15 12:00:23 +08:00
David Mak f09eb1bd98 WIP - [artiq] More test 2024-08-15 11:48:44 +08:00
David Mak 57bf18dffc WIP - [artiq] 2-pass copy 2024-08-15 11:08:12 +08:00
David Mak fbea04750b WIP - [artiq] create data first 2024-08-15 10:56:23 +08:00
David Mak 685f1849b1 WIP - [artiq] create data first 2024-08-15 10:48:47 +08:00
David Mak 60605578ca WIP - [artiq] Test force zeroing 2024-08-15 10:40:12 +08:00
David Mak b91eaea4e9 WIP - [artiq] Test 2024-08-15 05:36:28 +08:00
David Mak 47f32378d0 WIP - [artiq] Test 2024-08-15 05:35:45 +08:00
David Mak 02cda69899 WIP - [artiq] Test 2024-08-15 05:34:01 +08:00
David Mak 5c678ea11d WIP - [artiq] Test 2024-08-15 05:33:28 +08:00
David Mak 043f8869d5 WIP - [artiq] Test 2024-08-15 05:24:12 +08:00
David Mak 10abd8ebdf WIP - [artiq] Test 2024-08-15 05:22:25 +08:00
David Mak 5e7d86bd50 WIP - [artiq] Test 2024-08-15 05:15:46 +08:00
David Mak 1e5b68fc04 WIP - [artiq] Test 2024-08-15 05:14:42 +08:00
David Mak 4b6e5e488e WIP - [artiq] Test 2024-08-15 05:08:45 +08:00
David Mak 14d6443bc7 WIP - [artiq] Test 2024-08-15 05:03:52 +08:00
David Mak 7ba1560442 WIP - [artiq] Test 2024-08-15 04:57:24 +08:00
David Mak 5c4118a1e1 WIP - [artiq] Test 2024-08-15 04:54:11 +08:00
David Mak 4afe1d6edb WIP - [artiq] Test 2024-08-15 04:47:29 +08:00
David Mak b3d86f7187 WIP - [artiq] Revert to unified 2024-08-15 04:03:26 +08:00
David Mak 4522077644 WIP - [artiq] More test 2024-08-15 04:03:06 +08:00
David Mak 758ea48a4b WIP - [artiq] More test 2024-08-15 04:01:12 +08:00
David Mak 22a2c3f3dd WIP - [artiq] More test 2024-08-15 03:55:08 +08:00
David Mak 2c2f3e4da4 WIP - [artiq] Invert parse order 2024-08-15 03:16:10 +08:00
David Mak 0c18154d15 WIP - [artiq] Force completion 2024-08-15 02:59:42 +08:00
David Mak 710038288a WIP - [artiq] Change to unified implementation 2024-08-15 02:19:05 +08:00
David Mak ad1b2dfd88 WIP - [artiq] only change slot 2024-08-14 18:23:43 +08:00
David Mak 6afcd37b83 WIP - [artiq] Nope 2024-08-14 18:12:13 +08:00
David Mak 2b2cc06776 WIP - [artiq] Constants 2024-08-14 18:10:16 +08:00
David Mak c55ee08e4c WIP - [artiq] Fix RPC of ndarrays from host 2024-08-14 17:54:02 +08:00
David Mak 3486c7942c [artiq] Fix RPC of ndarrays to host 2024-08-14 15:53:52 +08:00
David Mak 33792bea0d [artiq] Fix LLVM representation of strings
Should be `%str` rather than `[N x i8]`.
2024-08-13 16:24:17 +08:00
lyken 432c81a500
core: update insta after #489 2024-08-13 15:30:34 +08:00
David Mak 6beff7a268 [artiq] Implement core_log and rtio_log in terms of polymorphic_print
Implementation mostly references the original implementation in Python.
2024-08-13 15:19:03 +08:00
David Mak 6ca7aecd4a [artiq] Add core_log and rtio_log function declarations 2024-08-13 15:19:03 +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 4f5e417012 [core] codegen: Add function to get format constants for integers 2024-08-13 15:19:03 +08:00
David Mak a0614bad83 [core] codegen/expr: Make gen_string return `StructValue`
So that it is clear that the value itself is returned rather than a
pointer to the struct or its data.
2024-08-13 15:19:03 +08:00
David Mak 5539d144ed [core] Add `CodeGenContext::build_in_bounds_gep_and_load`
For safer accesses to `gep`-able values and faster fails.
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 6fb8939179 [meta] Update dependencies 2024-08-13 15:19:03 +08:00
lyken 973dc5041a core/typecheck: Support tuple arg type in len() 2024-08-13 15:02:59 +08:00
David Mak d0da688aa7 standalone: Add tuple len test 2024-08-13 15:02:59 +08:00
David Mak 12c4e1cf48 core/toplevel/builtins: Add support for len() on tuples 2024-08-13 15:02:59 +08:00
David Mak 9b988647ed core/toplevel/builtins: Extract len() into builtin function 2024-08-13 15:02:59 +08:00
lyken 35a7cecc12
core/typecheck: fix np_array ndmin bug 2024-08-13 12:50:04 +08:00
lyken 7e3d87f841 core/codegen: fix bug in call_ceil function 2024-08-07 16:40:55 +08:00
David Mak ac0d83ef98 standalone: Add vararg.py 2024-08-06 11:48:42 +08:00