perf(typebox): reduce clones with Arc<str> for MethodSignature.name and TypeBox.methods keys; API kept stable. tools: add all-cases empty-PHI smoke runner. parser(box): extract birth_once cycle validation into helper

This commit is contained in:
Selfhosting Dev
2025-09-19 12:13:43 +09:00
parent ef1f5206da
commit 5bb7f67c01
4 changed files with 106 additions and 71 deletions

View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -euo pipefail
# Run empty-PHI checker across a curated set of test cases
CASES=(
apps/tests/hello_simple_llvm.nyash
apps/tests/loop_if_phi.nyash
apps/tests/llvm_phi_mix.nyash
apps/tests/llvm_phi_heavy_mix.nyash
apps/tests/llvm_phi_try_mix.nyash
)
DIR="tools/test/smoke/llvm"
for c in "${CASES[@]}"; do
echo "[phi-empty-check-all] -> $c"
bash "$DIR/ir_phi_empty_check.sh" "$c"
done
echo "[phi-empty-check-all] OK: all cases passed"