Files
hakorune/docs/development/roadmap/phases/phase-11
Moe Charm b003bdf25b 📚 Phase 11 documentation: Everything is Box × MIR15 revolution
Key updates:
- Document MIR 26→15 instruction reduction plan (transitioning status)
- Add Core-15 target instruction set in INSTRUCTION_SET.md
- Save AI conference analyses validating Box Theory and 15-instruction design
- Create MIR annotation system proposal for optimization hints
- Update SKIP_PHASE_10_DECISION.md with LLVM direct migration rationale

Technical insights:
- RefNew/RefGet/RefSet can be eliminated through Box unification
- GC/sync/async all achievable with 15 core instructions
- BoxCall lowering can automatically insert GC barriers
- 2-3x performance improvement expected with LLVM
- Build time reduction 50%, binary size reduction 40%

Status: Design complete, implementation pending
2025-08-31 03:03:04 +09:00
..

Phase 11: LLVM AOT Backend将来研究

🎯 概要

Phase 11は、LLVM を使用した Ahead-of-TimeAOTコンパイル機能の研究・実装フェーズです。 Phase 10のCranelift JITで実用的な性能を達成した後、さらなる最適化を追求します。

📊 位置づけ

Phase 10: Cranelift JIT実用的な高速化← 現在の主経路
    ↓
Phase 11: LLVM AOT最高性能への挑戦← 将来の研究開発

📁 ドキュメント

🔬 研究・設計ドキュメント

  • phase10_aot_scaffolding.md - LLVM Direct AOT実装計画

    • MIR→LLVM IR直接変換
    • Everything is Box最適化エスケープ解析
    • LTO/PGO統合
    • 目標: 13,500倍高速化対インタープリタ
  • phase_10_x_llvm_backend_skeleton.md - LLVM Backend最小実装

    • 具体的な実装ステップ
    • ExternCall対応
    • オブジェクトファイル生成

タイムライン

  • Status: Deferred延期
  • 前提条件: Phase 10Cranelift JITの完了
  • 想定期間: 4-6ヶ月
  • 開始時期: 未定Phase 10の成果を見て判断

🎯 期待される成果

  1. 最高性能: インタープリタ比13,500倍の実行速度
  2. メモリ効率: Box割当80%削減
  3. 起動時間: 1ms以下
  4. 配布形式: スタンドアロン実行ファイル

⚠️ 注意事項

このフェーズは研究的な性質が強く、以下の理由で延期されています:

  1. 複雑性: LLVM統合は開発・保守コストが高い
  2. 実用性: Cranelift JITで十分な性能が得られる可能性
  3. 優先度: まずは安定した実装を優先

🔗 関連フェーズ