Skip to main content

thalir_core/codegen/
mod.rs

1/*! Lower high-level IR to Cranelift for compilation.
2 *
3 * ThalIR preserves Solidity semantics at a high level, but actual execution requires lower-level IR.
4 * This bridges the gap by lowering to Cranelift, mapping storage operations and external calls to
5 * runtime functions while keeping native arithmetic fast.
6 */
7
8pub mod context;
9pub mod lowering;
10pub mod module;
11
12pub use context::CodegenContext;
13pub use lowering::lower_instruction;
14pub use module::ModuleBuilder;