llvm(py): introduce BuildCtx + trace hub; refactor if-merge prepass + PHI wiring into module; unify logs; ctx-enable compare/ret/call/boxcall/externcall/typeop/newbox/safepoint; curated smoke option for if-merge; README updates; keep behavior stable

This commit is contained in:
Selfhosting Dev
2025-09-17 16:11:01 +09:00
parent 2720884a20
commit a5054a271b
58 changed files with 2002 additions and 311 deletions

View File

@ -9,6 +9,7 @@
#[cfg(feature = "wasm-backend")]
use crate::backend::WasmBackend;
#[cfg(feature = "vm-legacy")]
use crate::backend::VM;
use crate::interpreter::NyashInterpreter;
use crate::mir::MirCompiler;
@ -54,6 +55,7 @@ impl BenchmarkSuite {
results.push(interpreter_result);
}
#[cfg(feature = "vm-legacy")]
if let Ok(vm_result) = self.run_vm_benchmark(name, &source) {
results.push(vm_result);
}
@ -104,6 +106,7 @@ impl BenchmarkSuite {
}
/// Run benchmark on VM backend
#[cfg(feature = "vm-legacy")]
fn run_vm_benchmark(
&self,
name: &str,