Skip to main content

Module codegen_c

Module codegen_c 

Source

Modules§

concurrency
The concurrency-lowering knob for the C-family backends.
cshake
Structural reachability over an emitted C translation unit — split the runtime into top-level definition UNITS, then keep only those reachable (transitively) from a set of root symbols.
from_program
★ Phase 1 — the CompiledProgram → C Op-walker (bytecode-IR-as-source-of-truth re-base) ★
value_runtime
The value runtime a C program links when the exact extension reaches it: logicaffeine-data’s C ABI over the compiled value model (logos_rt_value_*, see logicaffeine_data::abi), built on demand as one static library, so both C backends compute with the compiler’s own values. A program the extension never reaches declares nothing and links nothing more than it did.

Enums§

TaskTier
How a concurrent program’s tasks run: as coroutines on stacks of their own (ucontext, host C), or as resumable step functions over heap frames (the stepped tier: the host walker and the GPU).

Constants§

CRDT_CORE
The C family’s convergent collections: the data crate’s observed-remove set (add-wins and remove-wins) and its observed-remove map of last-writer values, ported once, in C every tier compiles — both C generators, the stepped tier and RISC-V. A tier defines its qualifiers and its allocator before this text (see the file’s header).
FILE_RUNTIME
The files a program reads, writes and mounts (Read … from file, Write … to file, Mount), resolved under the working directory as the native file system resolves them. Emitted only for a program that uses one.
SCHED_CORE
The C family’s scheduler: logicaffeine_runtime::Scheduler::process_step ported once, in C every tier compiles — the host C and RISC-V coroutine runtimes, and the stepped tier’s frames CUDA and the bytecode walker run. A tier defines its qualifiers, its allocator and its own task fields before this text, and supplies only the yield (see the file’s header).
USER_CODE_SENTINEL
Marks the boundary between the fixed runtime/type prelude and the program’s own code in a codegen_program_c translation unit. The CUDA AOT tier splits here to lift the user code onto the device; it is an ordinary C comment to gcc.

Functions§

codegen_monomorphic_program_c
codegen_program_c for a monomorphized program: instances names the generic type each instance type applies, so its values show under the generic’s name.
codegen_program_c
refused_program
The C of a program every run of which fails before any output, reason on stderr: what a program the VM refuses before running it does.