Implement core_log and rtio_log to ARTIQ #488

Merged
sb10q merged 8 commits from feature/core-rtio-log into master 2024-08-13 15:19:03 +08:00

8 Commits

Author SHA1 Message Date
274f493fe9 [artiq] Implement core_log and rtio_log in terms of polymorphic_print
Implementation mostly references the original implementation in Python.
2024-08-13 15:13:24 +08:00
3a13f19a7c [artiq] Add core_log and rtio_log function declarations 2024-08-13 15:12:05 +08:00
dcef6c6b89 [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:12:05 +08:00
19fd03c515 [core] codegen: Add function to get format constants for integers 2024-08-13 15:12:02 +08:00
3aab6e01bb [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 12:34:43 +08:00
203ca505ba [core] Add CodeGenContext::build_in_bounds_gep_and_load
For safer accesses to `gep`-able values and faster fails.
2024-08-13 12:34:43 +08:00
1ccfad9c53 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 12:34:41 +08:00
98a85abc1b [meta] Update dependencies 2024-08-12 12:39:19 +08:00