Files
hakorune/commit_message2.txt
Selfhosting Dev 868519c691 cleanup: MIRレガシーコード71行削除でJSON作業準備完了
Phase 15.5準備として、MIRコードベースの大規模クリーンアップを実施。
JSON centralization作業前の環境整備が完了しました。

削除内容(71行):
- コメントアウトされたimport文: 2行
- 不要なlegacy/removedコメント: 9行
- movedコメント大規模整理: 56行
- 開発用debugコード(eprintln!): 4行

安全性確認:
- 統一Call実装(NYASH_MIR_UNIFIED_CALL=1): 正常動作
- Legacy実装(NYASH_MIR_UNIFIED_CALL=0): 後方互換性維持
- JSON出力: mir_call形式で正常生成

Phase 15(80k→20k行削減)への貢献: 約0.09%

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-24 04:09:23 +09:00

31 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

feat: Python LLVM統一MirCall処理基盤実装Phase 3.4
## 実装内容
- Python LLVM向け統一MirCallハンドラ実装
- instruction_lower.pyに統一分岐追加
- 環境変数による段階的移行サポート
## 新規ファイル
- src/llvm_py/instructions/mir_call.py
- 6種類のCalleeパターン対応Global/Method/Constructor/Closure/Value/Extern
- 既存のlower_call/boxcall/externcall等を内部で再利用
- NYASH_MIR_UNIFIED_CALL=1で有効化
## 変更ファイル
- src/llvm_py/builders/instruction_lower.py
- `op == "mir_call"`の統一分岐を追加
- 既存の個別処理との互換性維持
## 技術詳細
ChatGPT5 Pro A++設計による統一Call命令実装の第2段階。
Python LLVM側で6種類のCall系命令を1つのmir_call処理に集約。
これにより約800行instructions/内の3ファイルの削減準備が完了。
## 次のステップ
- Phase 3.5: Rust側のJSON出力対応
- Phase 4: 旧実装の削除とリファクタリング
Phase 15セルフホスティング目標80k→20k行への重要な一歩。
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>