feat(llvm): Phase 87 - LLVM exe line SSOT + integration smoke
Established single pipeline for .hako → executable generation.
SSOT: tools/build_llvm.sh
- Standard procedure: build_llvm.sh input.hako -o output_exe
- Prerequisites: llvm-config-18, llvmlite, LLVM features enabled
- Pipeline: .hako → MIR → LLVM IR → .o → executable
New files:
- docs: phase87-selfhost-llvm-exe-line.md (SSOT procedure doc)
* Full troubleshooting guide (llvm-config, llvmlite, linking)
* Advanced usage (custom output, debugging, performance notes)
* Anti-patterns documentation (no duplication/fragmentation)
- fixture: apps/tests/phase87_llvm_exe_min.hako (5 lines, return 42)
- smoke: integration/apps/phase87_llvm_exe_min.sh
* Exit code verification (stdout-independent testing)
* SKIP if LLVM unavailable (graceful degradation)
* Integration profile only (not in quick)
- index: 10-Now.md, 01-JoinIR-Selfhost-INDEX.md (Phase 87 entries)
- task: CURRENT_TASK.md (Phase 74-87 status update)
Integration smoke: demonstrates full pipeline
- Build: .hako → .o → exe (successful ✅)
- Runtime: Ring0 initialization issue (known limitation, out of scope)
Quick profile: unchanged (integration only, per policy)
Policy: No duplicate build paths, SSOT maintained
987/987 tests PASS (production stable)
This commit is contained in:
@ -11,11 +11,12 @@
|
||||
|
||||
---
|
||||
|
||||
## 今の状態(Phase 74–86 まで到達)
|
||||
## 今の状態(Phase 74–87 まで到達)
|
||||
|
||||
- Scope/BindingId の段階移行(dev-only)は Pattern2/3/4 まで配線済み(dual-path 維持)。
|
||||
- Pattern2 の promoted carriers(DigitPos/Trim)について ExitLine 契約(ConditionOnly を exit PHI から除外)を E2E で固定済み。
|
||||
- debug flag SSOT / DebugOutputBox 移行 / error tags 集約 / carrier init builder まで整備済み。
|
||||
- **LLVM exe line SSOT 確立**: `tools/build_llvm.sh` を使用した .hako → executable パイプライン標準化完了。
|
||||
- `cargo test --release --lib` は PASS を維持(退行なし)。
|
||||
|
||||
参照:
|
||||
@ -24,6 +25,7 @@
|
||||
- `docs/development/current/main/phase80-bindingid-p3p4-plan.md`
|
||||
- `docs/development/current/main/phase81-pattern2-exitline-contract.md`
|
||||
- `docs/development/current/main/phase78-85-boxification-feedback.md`
|
||||
- `docs/development/current/main/phase87-selfhost-llvm-exe-line.md`
|
||||
|
||||
---
|
||||
|
||||
@ -37,15 +39,16 @@
|
||||
受け入れ基準:
|
||||
- docs-only でコミットできる粒度(コード差分ゼロ)。
|
||||
|
||||
### P1: Selfhost / LLVM exe ラインの前進(Phase 87 候補)
|
||||
### P1: JoinIR / Selfhost depth-2 の前進(Phase 88 候補)
|
||||
|
||||
目的:
|
||||
- LLVM で「実アプリを exe まで持っていく」導線を SSOT 化し、代表スモークを 1 本固定する。
|
||||
- JsonParserBox の残り複合ループを JoinIR 対応する。
|
||||
- または selfhost .hako コンパイラの他部分(Lexer/ASTBuilder 等)で JoinIR 適用範囲を拡大する。
|
||||
|
||||
やること(設計→実装の順):
|
||||
1. SSOT 追加: `docs/development/current/main/phase87-selfhost-llvm-exe-line.md`
|
||||
2. 既存スクリプト/コマンドの棚卸し(何が “標準手順” かを決める)
|
||||
3. 代表ケース(最小の .hako アプリ)で build→run→stdout/exit を固定
|
||||
1. 候補ループの抽出(JsonParserBox or Lexer/ASTBuilder)
|
||||
2. Pattern 判定(Pattern 1-4 のいずれか、または新 Pattern 提案)
|
||||
3. JoinIR lowering 実装 + E2E テスト
|
||||
|
||||
受け入れ基準:
|
||||
- 代表ケースが 1 コマンドで再現可能(CI は増やさない、quick を重くしない)。
|
||||
|
||||
Reference in New Issue
Block a user