1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! lamina-codegen - Codegen utilities for Lamina
//!
//! This crate provides code generation utilities including register allocation,
//! ABI handling, and frame management for various target architectures.
//!
//! Cross-compilation is supported: pass the desired target (arch, OS) when
//! creating ABI or regalloc; the generated code will follow that target's ABI.
//!
//! ## Usage
//!
//! ```rust
//! use lamina_codegen::x86_64::{X64RegAlloc, X86ABI, X86Frame};
//! use lamina_platform::TargetOperatingSystem;
//!
//! let abi = X86ABI::new(TargetOperatingSystem::Linux);
//! let regalloc = X64RegAlloc::new(TargetOperatingSystem::Windows);
//! ```
// Re-exports for convenience
pub use Abi;
pub use ;
pub use ;
// Architecture-specific re-exports
pub use ;