Files
metal2vulkan/src/native/emitter/control/mod.rs
T
Anees Iqbal 8b78eaca3b Expand macOS 26 AIR translation coverage
Overhaul the validation workflow around sharded authored cases, dependency-exact observations, incremental indexed corpus audits, bounded parallel translation, and native Metal/Vulkan comparison.\n\nExpand native AIR lowering, reflection, linked-function specialization, resource and stage-interface support, and structural CFG/pointer repair across the harvested macOS 26 corpus. Add exact intrinsic inventory, distributed 16x16x16 matrix lowering, explicit opaque tensor linkage, and regression coverage for the newly supported feature classes.\n\nThe final corpus verification accounts for all 88,819 indexed AIR modules under the current product fingerprint: 65,355 translate and validate directly, 23,464 require exact authored linkage, and zero fail or remain unresolved.
2026-08-13 21:46:27 +02:00

31 lines
1.1 KiB
Rust

use super::*;
use crate::native::cfg::graph::spirv_block_successors as cloned_block_successors;
mod loop_continue;
mod merge_helpers;
mod merges;
pub(in crate::native::emitter) use merge_helpers::*;
#[cfg(test)]
mod tests {
/// `emit_branch` now derives its target labels from `tir::parse_terminator` (the typed-IR parser),
/// which must strip trailing `, !llvm.loop !N` metadata off a branch target — the job the retired
/// `branch_label_without_metadata` used to do in this file.
#[test]
fn typed_terminator_strips_loop_metadata_off_branch_target() {
use crate::native::tir::{parse_terminator, TirTerminator};
assert_eq!(
parse_terminator("br label %59, !llvm.loop !47"),
Some(TirTerminator::Br("%59".to_string()))
);
assert_eq!(
parse_terminator("br i1 %c, label %t, label %f, !llvm.loop !9"),
Some(TirTerminator::BrCond {
cond: "%c".to_string(),
t: "%t".to_string(),
f: "%f".to_string(),
})
);
}
}