refactor(mir): phase260 p0 edge-args plumbing (strangler) + ssot api + docs

This commit is contained in:
2025-12-21 04:34:22 +09:00
parent 4496b6243d
commit 4dfe3349bf
42 changed files with 1044 additions and 187 deletions

View File

@ -728,7 +728,7 @@ mod tests {
"k_exit must return Some(value)"
);
// Bridge sanity: tail-call blocks must carry jump_args metadata for merge collection.
// Bridge sanity: tail-call blocks must carry legacy jump_args metadata for merge collection.
// This is required for DirectValue mode (no PHI) to reconnect carriers safely.
let mir_module = crate::mir::join_ir_vm_bridge::bridge_joinir_to_mir(&module)
.expect("bridge_joinir_to_mir failed");
@ -744,8 +744,8 @@ mod tests {
.get(&entry)
.expect("missing loop_body entry block");
assert!(
entry_block.jump_args.is_some(),
"loop_body entry block must have jump_args metadata in bridged MIR"
entry_block.has_legacy_jump_args(),
"loop_body entry block must have legacy jump_args metadata in bridged MIR"
);
// Loop-only (the routing path in real lowering): still must encode loop_step as a tail-call.