diff --git a/artiq/coredevice/core.py b/artiq/coredevice/core.py index 0bad68ba1..d74e46a10 100644 --- a/artiq/coredevice/core.py +++ b/artiq/coredevice/core.py @@ -109,6 +109,7 @@ class Core: self.compiler.analyze( core_language._registered_functions, core_language._registered_classes, + core_language._special_ids, core_language._registered_modules ) self.analyzed = True diff --git a/artiq/language/core.py b/artiq/language/core.py index 7e970e420..b6a6491a5 100644 --- a/artiq/language/core.py +++ b/artiq/language/core.py @@ -227,6 +227,12 @@ parallel = _ParallelContextManager() legacy_parallel = _ParallelContextManager() sequential = _SequentialContextManager() +_special_ids = { + "parallel": id(parallel), + "legacy_parallel": id(legacy_parallel), + "sequential": id(sequential), +} + def delay_mu(duration): """Increases the RTIO time by the given amount (in machine units)."""