feat: 编译管线/类型层 crate 补全多级日志宏 + 关键路径日志

This commit is contained in:
爱特每羊队
2026-08-10 17:56:28 +08:00
parent 61898f8983
commit d3ed1113ef
34 changed files with 421 additions and 1 deletions
+2
View File
@@ -10,6 +10,7 @@ mod alloc_map;
mod color;
mod finish;
mod graph;
mod regalloc_log;
mod rewrite;
pub use alloc_map::{Alloc, AllocMap, FreshKind, FreshVreg, SpillPlan};
@@ -50,6 +51,7 @@ pub fn alloc(f: &mut IRFunction, live: &LiveInfo) -> Result<(), String> {
oxide_liveness::liveness(f, &cfg)
};
let map = color(f, &live)?;
regalloc_debug!("alloc: {} vregs -> {} phys", map.map.len(), map.phys_peak);
rewrite::run(f, &map);
finish::run(f, &map);
for child in &mut f.nested {