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:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user