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

@ -4,7 +4,7 @@ Handles box creation (new StringBox(), new IntegerBox(), etc.)
"""
import llvmlite.ir as ir
from typing import Dict, List, Optional
from typing import Dict, List, Optional, Any
def lower_newbox(
builder: ir.IRBuilder,
@ -13,7 +13,8 @@ def lower_newbox(
args: List[int],
dst_vid: int,
vmap: Dict[int, ir.Value],
resolver=None
resolver=None,
ctx: Optional[Any] = None
) -> None:
"""
Lower MIR NewBox instruction