Skip to main content

Crate ling_codegen

Crate ling_codegen 

Source
Expand description

Code generation backends for Ling.

The default build compiles to Ling bytecode only. Enable the llvm feature for native code generation via LLVM 18.

Re-exports§

pub use bytecode::BytecodeBackend;
pub use wasm::WasmBackend;

Modules§

bytecode
Ling bytecode emitter — compact stack-VM instruction stream.
wasm
Ling → WebAssembly (binary format) emitter.

Structs§

MirProgram
Opaque MIR program handle passed to backends.

Traits§

CodegenBackend
All backends implement this trait.