refactor(mir): Phase 139-P3-B - RoutingDecision を enum 対応 + レガシー削除

- RoutingDecision の missing_caps を Vec<CapabilityTag> に変更(型安全化)
- error_tags は to_tag() メソッドで自動生成
- 全 callsite を enum variant に修正
- capability_tags モジュール(文字列定数群)を完全削除
- 全テスト PASS(型安全性向上を確認)
- フォーマット適用
This commit is contained in:
nyash-codex
2025-12-16 07:02:14 +09:00
parent 146f14a019
commit e404746612
106 changed files with 1475 additions and 1017 deletions

View File

@ -70,7 +70,9 @@ impl MirBuilder {
};
// 統一された挿入ロジック(既存パターンと完全互換)
if let (Some(func), Some(cur_bb)) = (self.scope_ctx.current_function.as_mut(), self.current_block) {
if let (Some(func), Some(cur_bb)) =
(self.scope_ctx.current_function.as_mut(), self.current_block)
{
// CFG経由の正規化挿入predecessor順序の正規化を含む
crate::mir::ssot::cf_common::insert_phi_at_head_spanned(
func,
@ -136,7 +138,9 @@ impl MirBuilder {
inputs: Vec<(BasicBlockId, ValueId)>,
) -> Result<(), String> {
// 統一された挿入ロジック(既存パターンと完全互換)
if let (Some(func), Some(cur_bb)) = (self.scope_ctx.current_function.as_mut(), self.current_block) {
if let (Some(func), Some(cur_bb)) =
(self.scope_ctx.current_function.as_mut(), self.current_block)
{
// CFG経由の正規化挿入predecessor順序の正規化を含む
crate::mir::ssot::cf_common::insert_phi_at_head_spanned(
func,