Phase 25.1a: selfhost builder hotfix (fn rename, docs)

This commit is contained in:
nyash-codex
2025-11-15 05:42:32 +09:00
parent 8d9bbc40bd
commit 6856922374
40 changed files with 2013 additions and 72 deletions

View File

@ -381,6 +381,10 @@ static box AotPrepBox {
if env.get("NYASH_AOT_COLLECTIONS_HOT") == "1" {
local r = AotPrepPass_CollectionsHot.run(out); if r != null && r != "" { out = r }
}
// Phase4: numeric core transformation (optin)
if env.get("NYASH_AOT_NUMERIC_CORE") == "1" {
local nn = AotPrepPass_NumericCore.run(out); if nn != null && nn != "" { out = nn }
}
if env.get("HAKO_MIR_NORMALIZE_PRINT") == "1" {
local np = NormalizePrintBox.run(out); if np != null && np != "" { out = np }
}

View File

@ -22,4 +22,5 @@ aot_prep.passes.const_dedup = "boxes/aot_prep/passes/const_dedup.hako"
aot_prep.passes.binop_cse = "boxes/aot_prep/passes/binop_cse.hako"
aot_prep.passes.collections_hot = "boxes/aot_prep/passes/collections_hot.hako"
aot_prep.passes.fold_const_ret = "boxes/aot_prep/passes/fold_const_ret.hako"
aot_prep.passes.numeric_core = "boxes/aot_prep/passes/numeric_core.hako"
aot_prep.helpers.common = "boxes/aot_prep/helpers/common.hako"