diff --git a/crates/metal2vulkan-harness/src/authored.rs b/crates/metal2vulkan-harness/src/authored.rs index 7c6792ed9..a90bc8de7 100644 --- a/crates/metal2vulkan-harness/src/authored.rs +++ b/crates/metal2vulkan-harness/src/authored.rs @@ -21,7 +21,7 @@ pub struct Workload { } /// The authored workloads. -pub const WORKLOADS: [Workload; 40] = [ +pub const WORKLOADS: [Workload; 46] = [ Workload { name: "bandwidth", plan: bandwidth, @@ -150,6 +150,30 @@ pub const WORKLOADS: [Workload; 40] = [ name: "vote_loop", plan: vote_loop, }, + Workload { + name: "row_tail_224", + plan: row_tail_224, + }, + Workload { + name: "row_tail_27730", + plan: row_tail_27730, + }, + Workload { + name: "row_tail_49", + plan: row_tail_49, + }, + Workload { + name: "row_tail_224_private", + plan: row_tail_224_private, + }, + Workload { + name: "row_tail_27730_private", + plan: row_tail_27730_private, + }, + Workload { + name: "row_tail_49_private", + plan: row_tail_49_private, + }, Workload { name: "constant_managed", plan: constant_managed, @@ -1222,6 +1246,106 @@ fn vote_loop() -> Plan { } } +/// Rows of 224 `float`s into a `Shared` buffer, four a thread (`row_tail`): every row starts at a +/// multiple of 16 bytes, and every thread writes four. +fn row_tail_224() -> Plan { + row_tail("row_tail_224", 224, Storage::Shared, 1) +} + +/// Rows of 27,730 `float`s (2 mod 4) into a `Shared` buffer, four a thread (`row_tail`): every +/// other row starts at a multiple of 16 bytes, the others 8 past one, and a row's last thread +/// writes two. +fn row_tail_27730() -> Plan { + row_tail("row_tail_27730", 27_730, Storage::Shared, 1) +} + +/// Rows of 49 `float`s into a `Shared` buffer, four a thread (`row_tail`): one row in four starts at +/// a multiple of 16 bytes, and a row's last thread writes one. +fn row_tail_49() -> Plan { + row_tail("row_tail_49", 49, Storage::Shared, 1) +} + +/// [`row_tail_224`] into a `Private` buffer, 16 times the threads. +fn row_tail_224_private() -> Plan { + row_tail("row_tail_224_private", 224, Storage::Private, 16) +} + +/// [`row_tail_27730`] into a `Private` buffer, 16 times the threads. +fn row_tail_27730_private() -> Plan { + row_tail("row_tail_27730_private", 27_730, Storage::Private, 16) +} + +/// [`row_tail_49`] into a `Private` buffer, 16 times the threads. +fn row_tail_49_private() -> Plan { + row_tail("row_tail_49_private", 49, Storage::Private, 16) +} + +/// `row_tail` over rows of `w` `float`s: about 381,000 threads times `scale` in threadgroups of +/// 1,024, as many rows as `ceil(w / 4)` threads a row make of them, each thread reading a `float4` +/// of a `Private` buffer and writing its lanes from column `4 (i mod threads a row)` of its row of +/// a buffer of `storage` and about 6.1 MB times `scale` that nothing else writes: the first lane, +/// then the three, two or one more the row holds. +fn row_tail(name: &str, w: u32, storage: Storage, scale: u32) -> Plan { + const THREADS: u32 = 381_952; + let per_row = w.div_ceil(4); + let rows = scale * THREADS / per_row; + let threads = rows * per_row; + let input: Vec = (words(15, 4 * threads as usize).into_iter()) + .map(|word| (word & 0xFFFF) as f32) + .collect(); + let mut output = vec![0u32; (rows * w) as usize]; + for index in 0..threads { + let (row, col) = (index / per_row, (index % per_row) << 2); + let lanes = (w - col).min(4) as usize; + let at = (row * w + col) as usize; + let from = 4 * index as usize; + for lane in 0..lanes { + output[at + lane] = input[from + lane].to_bits(); + } + } + let length = (4 * u64::from(rows * w)).next_multiple_of(16); + Plan { + name: name.to_owned(), + library: Source::Authored, + buffers: vec![ + private(float_bytes(&input)), + BufferPlan { + length, + storage, + contents: None, + modified: None, + }, + ], + dispatches: vec![Dispatch { + blits: Vec::new(), + function: "row_tail".to_owned(), + linked: Vec::new(), + constants: Vec::new(), + bindings: vec![ + buffer(0, 0), + buffer(1, 1), + bytes(2, word_bytes(&[w, per_row])), + ], + grid: Grid::Threads { + threads: [u64::from(threads), 1, 1], + per_group: [1024, 1, 1], + }, + }], + expect: vec![Expect { + buffer: 1, + values: Values::Words(output), + }], + textures: Vec::new(), + expect_textures: Vec::new(), + outputs: Vec::new(), + per_command_buffer: None, + per_encoder: None, + commit_to_complete: false, + frames: false, + scaled: None, + } +} + /// Reads of a 64 KiB table as constants (`constant_reads`): 2^20 threads in threadgroups of 256, /// each folding 64 of the table's 4,096 entries into a word, the table `Managed`, and the first /// 256 bytes of it written again by the CPU before each run and marked with `didModifyRange:`, as diff --git a/crates/metal2vulkan-validation/fixtures/public/harness/workloads.air.ll b/crates/metal2vulkan-validation/fixtures/public/harness/workloads.air.ll index 1a0a9b270..d35310d9c 100644 --- a/crates/metal2vulkan-validation/fixtures/public/harness/workloads.air.ll +++ b/crates/metal2vulkan-validation/fixtures/public/harness/workloads.air.ll @@ -20,9 +20,9 @@ target triple = "air64_v28-apple-macosx26.0.0" define void @copy_words(<4 x i32> addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %0, <4 x i32> addrspace(1)* nocapture noundef writeonly "air-buffer-no-alias" %1, i32 noundef %2) local_unnamed_addr #0 { %4 = zext i32 %2 to i64 %5 = getelementptr inbounds <4 x i32>, <4 x i32> addrspace(1)* %0, i64 %4 - %6 = load <4 x i32>, <4 x i32> addrspace(1)* %5, align 16, !tbaa !148, !alias.scope !151, !noalias !154 + %6 = load <4 x i32>, <4 x i32> addrspace(1)* %5, align 16, !tbaa !150, !alias.scope !153, !noalias !156 %7 = getelementptr inbounds <4 x i32>, <4 x i32> addrspace(1)* %1, i64 %4 - store <4 x i32> %6, <4 x i32> addrspace(1)* %7, align 16, !tbaa !148, !alias.scope !154, !noalias !151 + store <4 x i32> %6, <4 x i32> addrspace(1)* %7, align 16, !tbaa !150, !alias.scope !156, !noalias !153 ret void } @@ -30,27 +30,27 @@ define void @copy_words(<4 x i32> addrspace(1)* nocapture noundef readonly "air- define void @scale_offset(<4 x float> addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %0, <4 x float> addrspace(1)* nocapture noundef writeonly "air-buffer-no-alias" %1, <2 x float> addrspace(2)* nocapture noundef readonly align 8 dereferenceable(8) "air-buffer-no-alias" %2, i32 noundef %3) local_unnamed_addr #0 { %5 = zext i32 %3 to i64 %6 = getelementptr inbounds <4 x float>, <4 x float> addrspace(1)* %0, i64 %5 - %7 = load <4 x float>, <4 x float> addrspace(1)* %6, align 16, !tbaa !148, !alias.scope !156, !noalias !159 - %8 = load <2 x float>, <2 x float> addrspace(2)* %2, align 8, !alias.scope !162, !noalias !163 + %7 = load <4 x float>, <4 x float> addrspace(1)* %6, align 16, !tbaa !150, !alias.scope !158, !noalias !161 + %8 = load <2 x float>, <2 x float> addrspace(2)* %2, align 8, !alias.scope !164, !noalias !165 %9 = shufflevector <2 x float> %8, <2 x float> undef, <4 x i32> zeroinitializer %10 = fmul fast <4 x float> %9, %7 %11 = shufflevector <2 x float> %8, <2 x float> undef, <4 x i32> %12 = fadd fast <4 x float> %10, %11 %13 = getelementptr inbounds <4 x float>, <4 x float> addrspace(1)* %1, i64 %5 - store <4 x float> %12, <4 x float> addrspace(1)* %13, align 16, !tbaa !148, !alias.scope !164, !noalias !165 + store <4 x float> %12, <4 x float> addrspace(1)* %13, align 16, !tbaa !150, !alias.scope !166, !noalias !167 ret void } ; Function Attrs: argmemonly mustprogress nofree nosync nounwind define void @fma_chains(float addrspace(1)* nocapture noundef writeonly "air-buffer-no-alias" %0, i32 addrspace(2)* nocapture noundef readonly align 4 dereferenceable(4) "air-buffer-no-alias" %1, i32 noundef %2) local_unnamed_addr #1 { %4 = and i32 %2, 31 - %5 = tail call fast float @air.convert.f.f32.u.i32(i32 %4) #20 + %5 = tail call fast float @air.convert.f.f32.u.i32(i32 %4) #21 %6 = fmul fast float %5, 3.125000e-02 %7 = lshr i32 %2, 5 %8 = and i32 %7, 31 - %9 = tail call fast float @air.convert.f.f32.u.i32(i32 %8) #20 + %9 = tail call fast float @air.convert.f.f32.u.i32(i32 %8) #21 %10 = fmul fast float %9, 3.125000e-02 - %11 = load i32, i32 addrspace(2)* %1, align 4, !tbaa !166, !alias.scope !168, !noalias !171 + %11 = load i32, i32 addrspace(2)* %1, align 4, !tbaa !168, !alias.scope !170, !noalias !173 %12 = icmp eq i32 %11, 0 br i1 %12, label %13, label %19 @@ -60,7 +60,7 @@ define void @fma_chains(float addrspace(1)* nocapture noundef writeonly "air-buf %16 = fadd fast float %15, %14 %17 = zext i32 %2 to i64 %18 = getelementptr inbounds float, float addrspace(1)* %0, i64 %17 - store float %16, float addrspace(1)* %18, align 4, !tbaa !173, !alias.scope !171, !noalias !168 + store float %16, float addrspace(1)* %18, align 4, !tbaa !175, !alias.scope !173, !noalias !170 ret void 19: ; preds = %3, %19 @@ -68,12 +68,12 @@ define void @fma_chains(float addrspace(1)* nocapture noundef writeonly "air-buf %21 = phi float [ %26, %19 ], [ %10, %3 ] %22 = phi float [ %24, %19 ], [ %6, %3 ] %23 = fmul fast float %21, 6.250000e-02 - %24 = tail call fast float @air.fma.f32(float %22, float 9.375000e-01, float %23) #20 + %24 = tail call fast float @air.fma.f32(float %22, float 9.375000e-01, float %23) #21 %25 = fmul fast float %24, 1.250000e-01 - %26 = tail call fast float @air.fma.f32(float %21, float 8.750000e-01, float %25) #20 + %26 = tail call fast float @air.fma.f32(float %21, float 8.750000e-01, float %25) #21 %27 = add nuw i32 %20, 1 %28 = icmp eq i32 %27, %11 - br i1 %28, label %13, label %19, !llvm.loop !175 + br i1 %28, label %13, label %19, !llvm.loop !177 } ; Function Attrs: mustprogress nofree nosync nounwind readnone willreturn @@ -83,16 +83,16 @@ declare float @air.convert.f.f32.u.i32(i32) local_unnamed_addr #2 define void @block_scan(i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %0, i32 addrspace(1)* nocapture noundef writeonly "air-buffer-no-alias" %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 { %5 = zext i32 %2 to i64 %6 = getelementptr inbounds i32, i32 addrspace(1)* %0, i64 %5 - %7 = load i32, i32 addrspace(1)* %6, align 4, !tbaa !166, !alias.scope !177, !noalias !180 + %7 = load i32, i32 addrspace(1)* %6, align 4, !tbaa !168, !alias.scope !179, !noalias !182 %8 = zext i32 %3 to i64 %9 = getelementptr inbounds [256 x i32], [256 x i32] addrspace(3)* @_ZZ10block_scanPU9MTLdeviceKjPU9MTLdevicejjjE4sums, i64 0, i64 %8 - store i32 %7, i32 addrspace(3)* %9, align 4, !tbaa !166 - tail call void @air.wg.barrier(i32 2, i32 1) #21 + store i32 %7, i32 addrspace(3)* %9, align 4, !tbaa !168 + tail call void @air.wg.barrier(i32 2, i32 1) #22 br label %12 10: ; preds = %21 %11 = getelementptr inbounds i32, i32 addrspace(1)* %1, i64 %5 - store i32 %23, i32 addrspace(1)* %11, align 4, !tbaa !166, !alias.scope !180, !noalias !177 + store i32 %23, i32 addrspace(1)* %11, align 4, !tbaa !168, !alias.scope !182, !noalias !179 ret void 12: ; preds = %4, %21 @@ -105,35 +105,35 @@ define void @block_scan(i32 addrspace(1)* nocapture noundef readonly "air-buffer %17 = sub i32 %3, %14 %18 = zext i32 %17 to i64 %19 = getelementptr inbounds [256 x i32], [256 x i32] addrspace(3)* @_ZZ10block_scanPU9MTLdeviceKjPU9MTLdevicejjjE4sums, i64 0, i64 %18 - %20 = load i32, i32 addrspace(3)* %19, align 4, !tbaa !166 + %20 = load i32, i32 addrspace(3)* %19, align 4, !tbaa !168 br label %21 21: ; preds = %12, %16 %22 = phi i32 [ %20, %16 ], [ 0, %12 ] - tail call void @air.wg.barrier(i32 2, i32 1) #21 + tail call void @air.wg.barrier(i32 2, i32 1) #22 %23 = add i32 %22, %13 - store i32 %23, i32 addrspace(3)* %9, align 4, !tbaa !166 - tail call void @air.wg.barrier(i32 2, i32 1) #21 + store i32 %23, i32 addrspace(3)* %9, align 4, !tbaa !168 + tail call void @air.wg.barrier(i32 2, i32 1) #22 %24 = shl nuw nsw i32 %14, 1 %25 = icmp ult i32 %14, 128 - br i1 %25, label %12, label %10, !llvm.loop !182 + br i1 %25, label %12, label %10, !llvm.loop !184 } ; Function Attrs: convergent mustprogress nounwind define void @reduce_sum(i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %0, i32 addrspace(1)* nocapture noundef writeonly "air-buffer-no-alias" %1, <2 x i32> addrspace(2)* nocapture noundef readonly align 8 dereferenceable(8) "air-buffer-no-alias" %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) local_unnamed_addr #3 { - %11 = load <2 x i32>, <2 x i32> addrspace(2)* %2, align 8, !alias.scope !183, !noalias !186 + %11 = load <2 x i32>, <2 x i32> addrspace(2)* %2, align 8, !alias.scope !185, !noalias !188 %12 = extractelement <2 x i32> %11, i64 1 %13 = mul i32 %12, %3 %14 = add i32 %13, %12 %15 = extractelement <2 x i32> %11, i64 0 - %16 = tail call i32 @air.min.u.i32(i32 %14, i32 %15) #20 + %16 = tail call i32 @air.min.u.i32(i32 %14, i32 %15) #21 %17 = add i32 %13, %4 %18 = icmp ult i32 %17, %16 br i1 %18, label %23, label %19 19: ; preds = %23, %10 %20 = phi i32 [ 0, %10 ], [ %29, %23 ] - %21 = tail call i32 @air.simd_sum.u.i32(i32 %20) #21 + %21 = tail call i32 @air.simd_sum.u.i32(i32 %20) #22 %22 = icmp eq i32 %6, 0 br i1 %22, label %32, label %35 @@ -142,20 +142,20 @@ define void @reduce_sum(i32 addrspace(1)* nocapture noundef readonly "air-buffer %25 = phi i32 [ %29, %23 ], [ 0, %10 ] %26 = zext i32 %24 to i64 %27 = getelementptr inbounds i32, i32 addrspace(1)* %0, i64 %26 - %28 = load i32, i32 addrspace(1)* %27, align 4, !tbaa !166, !alias.scope !189, !noalias !190 + %28 = load i32, i32 addrspace(1)* %27, align 4, !tbaa !168, !alias.scope !191, !noalias !192 %29 = add i32 %28, %25 %30 = add i32 %24, %5 %31 = icmp ult i32 %30, %16 - br i1 %31, label %23, label %19, !llvm.loop !191 + br i1 %31, label %23, label %19, !llvm.loop !193 32: ; preds = %19 %33 = zext i32 %7 to i64 %34 = getelementptr inbounds [256 x i32], [256 x i32] addrspace(3)* @_ZZ10reduce_sumPU9MTLdeviceKjPU9MTLdevicejRU11MTLconstantKDv2_jjjjjjjjE7partial, i64 0, i64 %33 - store i32 %21, i32 addrspace(3)* %34, align 4, !tbaa !166 + store i32 %21, i32 addrspace(3)* %34, align 4, !tbaa !168 br label %35 35: ; preds = %32, %19 - tail call void @air.wg.barrier(i32 2, i32 1) #21 + tail call void @air.wg.barrier(i32 2, i32 1) #22 %36 = icmp eq i32 %7, 0 br i1 %36, label %37, label %54 @@ -165,7 +165,7 @@ define void @reduce_sum(i32 addrspace(1)* nocapture noundef readonly "air-buffer 39: ; preds = %42, %37 %40 = phi i32 [ 0, %37 ], [ %48, %42 ] - %41 = tail call i32 @air.simd_sum.u.i32(i32 %40) #21 + %41 = tail call i32 @air.simd_sum.u.i32(i32 %40) #22 br i1 %22, label %51, label %54 42: ; preds = %37, %42 @@ -173,16 +173,16 @@ define void @reduce_sum(i32 addrspace(1)* nocapture noundef readonly "air-buffer %44 = phi i32 [ %48, %42 ], [ 0, %37 ] %45 = zext i32 %43 to i64 %46 = getelementptr inbounds [256 x i32], [256 x i32] addrspace(3)* @_ZZ10reduce_sumPU9MTLdeviceKjPU9MTLdevicejRU11MTLconstantKDv2_jjjjjjjjE7partial, i64 0, i64 %45 - %47 = load i32, i32 addrspace(3)* %46, align 4, !tbaa !166 + %47 = load i32, i32 addrspace(3)* %46, align 4, !tbaa !168 %48 = add i32 %47, %44 %49 = add i32 %43, %9 %50 = icmp ult i32 %49, %8 - br i1 %50, label %42, label %39, !llvm.loop !192 + br i1 %50, label %42, label %39, !llvm.loop !194 51: ; preds = %39 %52 = zext i32 %3 to i64 %53 = getelementptr inbounds i32, i32 addrspace(1)* %1, i64 %52 - store i32 %41, i32 addrspace(1)* %53, align 4, !tbaa !166, !alias.scope !193, !noalias !194 + store i32 %41, i32 addrspace(1)* %53, align 4, !tbaa !168, !alias.scope !195, !noalias !196 br label %54 54: ; preds = %39, %51, %35 @@ -192,7 +192,7 @@ define void @reduce_sum(i32 addrspace(1)* nocapture noundef readonly "air-buffer ; Function Attrs: argmemonly mustprogress nofree nosync nounwind define void @binomial3x3(<4 x float> addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %0, <4 x float> addrspace(1)* nocapture noundef writeonly "air-buffer-no-alias" %1, <2 x i32> addrspace(2)* nocapture noundef readonly align 8 dereferenceable(8) "air-buffer-no-alias" %2, <2 x i32> noundef %3) local_unnamed_addr #4 { %5 = extractelement <2 x i32> %3, i64 1 - %6 = load <2 x i32>, <2 x i32> addrspace(2)* %2, align 8, !alias.scope !195, !noalias !198 + %6 = load <2 x i32>, <2 x i32> addrspace(2)* %2, align 8, !alias.scope !197, !noalias !200 %7 = extractelement <2 x i32> %6, i64 1 %8 = add nsw i32 %7, -1 %9 = extractelement <2 x i32> %3, i64 0 @@ -206,14 +206,14 @@ define void @binomial3x3(<4 x float> addrspace(1)* nocapture noundef readonly "a %15 = add i32 %14, %9 %16 = zext i32 %15 to i64 %17 = getelementptr inbounds <4 x float>, <4 x float> addrspace(1)* %1, i64 %16 - store <4 x float> %13, <4 x float> addrspace(1)* %17, align 16, !tbaa !148, !alias.scope !201, !noalias !202 + store <4 x float> %13, <4 x float> addrspace(1)* %17, align 16, !tbaa !150, !alias.scope !203, !noalias !204 ret void 18: ; preds = %4, %26 %19 = phi <4 x float> [ zeroinitializer, %4 ], [ %44, %26 ] %20 = phi i32 [ -1, %4 ], [ %27, %26 ] %21 = add nsw i32 %20, %5 - %22 = tail call i32 @air.clamp.s.i32(i32 %21, i32 0, i32 %8) #20 + %22 = tail call i32 @air.clamp.s.i32(i32 %21, i32 0, i32 %8) #21 %23 = icmp eq i32 %20, 0 %24 = select fast i1 %23, float 2.000000e+00, float 1.000000e+00 %25 = mul i32 %22, %10 @@ -222,63 +222,63 @@ define void @binomial3x3(<4 x float> addrspace(1)* nocapture noundef readonly "a 26: ; preds = %29 %27 = add nsw i32 %20, 1 %28 = icmp eq i32 %27, 2 - br i1 %28, label %12, label %18, !llvm.loop !203 + br i1 %28, label %12, label %18, !llvm.loop !205 29: ; preds = %18, %29 %30 = phi <4 x float> [ %19, %18 ], [ %44, %29 ] %31 = phi i32 [ -1, %18 ], [ %45, %29 ] %32 = add nsw i32 %31, %9 - %33 = tail call i32 @air.clamp.s.i32(i32 %32, i32 0, i32 %11) #20 + %33 = tail call i32 @air.clamp.s.i32(i32 %32, i32 0, i32 %11) #21 %34 = icmp eq i32 %31, 0 %35 = select fast i1 %34, float 2.000000e+00, float 1.000000e+00 %36 = fmul fast float %35, %24 %37 = add i32 %33, %25 %38 = zext i32 %37 to i64 %39 = getelementptr inbounds <4 x float>, <4 x float> addrspace(1)* %0, i64 %38 - %40 = load <4 x float>, <4 x float> addrspace(1)* %39, align 16, !tbaa !148, !alias.scope !204, !noalias !205 + %40 = load <4 x float>, <4 x float> addrspace(1)* %39, align 16, !tbaa !150, !alias.scope !206, !noalias !207 %41 = insertelement <4 x float> poison, float %36, i64 0 %42 = shufflevector <4 x float> %41, <4 x float> poison, <4 x i32> zeroinitializer %43 = fmul fast <4 x float> %42, %40 %44 = fadd fast <4 x float> %43, %30 %45 = add nsw i32 %31, 1 %46 = icmp eq i32 %45, 2 - br i1 %46, label %26, label %29, !llvm.loop !206 + br i1 %46, label %26, label %29, !llvm.loop !208 } ; Function Attrs: argmemonly mustprogress nofree norecurse nosync nounwind willreturn define void @row_cells(float addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %0, float addrspace(1)* nocapture noundef writeonly "air-buffer-no-alias" %1, i32 addrspace(2)* nocapture noundef readonly align 4 dereferenceable(4) "air-buffer-no-alias" %2, i32 addrspace(2)* nocapture noundef readonly align 4 dereferenceable(4) "air-buffer-no-alias" %3, i32 addrspace(2)* nocapture noundef readonly align 4 dereferenceable(4) "air-buffer-no-alias" %4, <2 x i32> noundef %5) local_unnamed_addr #5 { %7 = extractelement <2 x i32> %5, i64 0 %8 = extractelement <2 x i32> %5, i64 1 - %9 = load i32, i32 addrspace(2)* %2, align 4, !tbaa !166, !alias.scope !207, !noalias !210 + %9 = load i32, i32 addrspace(2)* %2, align 4, !tbaa !168, !alias.scope !209, !noalias !212 %10 = icmp slt i32 %7, %9 - %11 = load i32, i32 addrspace(2)* %3, align 4, !alias.scope !215, !noalias !216 + %11 = load i32, i32 addrspace(2)* %3, align 4, !alias.scope !217, !noalias !218 %12 = icmp slt i32 %8, %11 %13 = select i1 %10, i1 %12, i1 false br i1 %13, label %14, label %34 14: ; preds = %6 - %15 = load i32, i32 addrspace(2)* %4, align 4, !tbaa !166, !alias.scope !217, !noalias !218 + %15 = load i32, i32 addrspace(2)* %4, align 4, !tbaa !168, !alias.scope !219, !noalias !220 %16 = mul nsw i32 %15, %8 %17 = add nsw i32 %16, %7 %18 = sext i32 %17 to i64 %19 = getelementptr inbounds float, float addrspace(1)* %0, i64 %18 - %20 = load float, float addrspace(1)* %19, align 4, !tbaa !173, !alias.scope !219, !noalias !220 + %20 = load float, float addrspace(1)* %19, align 4, !tbaa !175, !alias.scope !221, !noalias !222 %21 = mul nsw i32 %9, %8 %22 = add nsw i32 %21, %7 %23 = mul nsw i32 %22, 3 %24 = sext i32 %23 to i64 %25 = getelementptr inbounds float, float addrspace(1)* %1, i64 %24 - store float %20, float addrspace(1)* %25, align 4, !tbaa !173, !alias.scope !221, !noalias !222 + store float %20, float addrspace(1)* %25, align 4, !tbaa !175, !alias.scope !223, !noalias !224 %26 = fmul fast float %20, 2.000000e+00 %27 = add nsw i32 %23, 1 %28 = sext i32 %27 to i64 %29 = getelementptr inbounds float, float addrspace(1)* %1, i64 %28 - store float %26, float addrspace(1)* %29, align 4, !tbaa !173, !alias.scope !221, !noalias !222 + store float %26, float addrspace(1)* %29, align 4, !tbaa !175, !alias.scope !223, !noalias !224 %30 = fadd fast float %20, 1.000000e+00 %31 = add nsw i32 %23, 2 %32 = sext i32 %31 to i64 %33 = getelementptr inbounds float, float addrspace(1)* %1, i64 %32 - store float %30, float addrspace(1)* %33, align 4, !tbaa !173, !alias.scope !221, !noalias !222 + store float %30, float addrspace(1)* %33, align 4, !tbaa !175, !alias.scope !223, !noalias !224 br label %34 34: ; preds = %6, %14 @@ -289,36 +289,36 @@ define void @row_cells(float addrspace(1)* nocapture noundef readonly "air-buffe define void @row_cells_uint(float addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %0, float addrspace(1)* nocapture noundef writeonly "air-buffer-no-alias" %1, i32 addrspace(2)* nocapture noundef readonly align 4 dereferenceable(4) "air-buffer-no-alias" %2, i32 addrspace(2)* nocapture noundef readonly align 4 dereferenceable(4) "air-buffer-no-alias" %3, i32 addrspace(2)* nocapture noundef readonly align 4 dereferenceable(4) "air-buffer-no-alias" %4, <2 x i32> noundef %5) local_unnamed_addr #5 { %7 = extractelement <2 x i32> %5, i64 0 %8 = extractelement <2 x i32> %5, i64 1 - %9 = load i32, i32 addrspace(2)* %2, align 4, !tbaa !166, !alias.scope !223, !noalias !226 + %9 = load i32, i32 addrspace(2)* %2, align 4, !tbaa !168, !alias.scope !225, !noalias !228 %10 = icmp ult i32 %7, %9 - %11 = load i32, i32 addrspace(2)* %3, align 4, !alias.scope !231, !noalias !232 + %11 = load i32, i32 addrspace(2)* %3, align 4, !alias.scope !233, !noalias !234 %12 = icmp ult i32 %8, %11 %13 = select i1 %10, i1 %12, i1 false br i1 %13, label %14, label %34 14: ; preds = %6 - %15 = load i32, i32 addrspace(2)* %4, align 4, !tbaa !166, !alias.scope !233, !noalias !234 + %15 = load i32, i32 addrspace(2)* %4, align 4, !tbaa !168, !alias.scope !235, !noalias !236 %16 = mul i32 %15, %8 %17 = add i32 %16, %7 %18 = zext i32 %17 to i64 %19 = getelementptr inbounds float, float addrspace(1)* %0, i64 %18 - %20 = load float, float addrspace(1)* %19, align 4, !tbaa !173, !alias.scope !235, !noalias !236 + %20 = load float, float addrspace(1)* %19, align 4, !tbaa !175, !alias.scope !237, !noalias !238 %21 = mul i32 %9, %8 %22 = add i32 %21, %7 %23 = mul i32 %22, 3 %24 = zext i32 %23 to i64 %25 = getelementptr inbounds float, float addrspace(1)* %1, i64 %24 - store float %20, float addrspace(1)* %25, align 4, !tbaa !173, !alias.scope !237, !noalias !238 + store float %20, float addrspace(1)* %25, align 4, !tbaa !175, !alias.scope !239, !noalias !240 %26 = fmul fast float %20, 2.000000e+00 %27 = add i32 %23, 1 %28 = zext i32 %27 to i64 %29 = getelementptr inbounds float, float addrspace(1)* %1, i64 %28 - store float %26, float addrspace(1)* %29, align 4, !tbaa !173, !alias.scope !237, !noalias !238 + store float %26, float addrspace(1)* %29, align 4, !tbaa !175, !alias.scope !239, !noalias !240 %30 = fadd fast float %20, 1.000000e+00 %31 = add i32 %23, 2 %32 = zext i32 %31 to i64 %33 = getelementptr inbounds float, float addrspace(1)* %1, i64 %32 - store float %30, float addrspace(1)* %33, align 4, !tbaa !173, !alias.scope !237, !noalias !238 + store float %30, float addrspace(1)* %33, align 4, !tbaa !175, !alias.scope !239, !noalias !240 br label %34 34: ; preds = %6, %14 @@ -337,8 +337,8 @@ define void @row_barrier(i32 addrspace(1)* nocapture noundef "air-buffer-no-alia %12 = add i32 %11, 1 %13 = zext i32 %9 to i64 %14 = getelementptr inbounds i32, i32 addrspace(1)* %0, i64 %13 - store i32 %12, i32 addrspace(1)* %14, align 4, !tbaa !166, !alias.scope !239, !noalias !242 - tail call void @air.wg.barrier(i32 1, i32 1) #21 + store i32 %12, i32 addrspace(1)* %14, align 4, !tbaa !168, !alias.scope !241, !noalias !244 + tail call void @air.wg.barrier(i32 1, i32 1) #22 %15 = xor i32 %5, 1 %16 = extractelement <2 x i32> %3, i64 1 %17 = icmp ult i32 %15, %16 @@ -350,8 +350,8 @@ define void @row_barrier(i32 addrspace(1)* nocapture noundef "air-buffer-no-alia %21 = add i32 %20, %8 %22 = zext i32 %21 to i64 %23 = getelementptr inbounds i32, i32 addrspace(1)* %0, i64 %22 - %24 = load i32, i32 addrspace(1)* %23, align 4, !tbaa !166, !alias.scope !239, !noalias !242 - store i32 %24, i32 addrspace(1)* %19, align 4, !tbaa !166, !alias.scope !242, !noalias !239 + %24 = load i32, i32 addrspace(1)* %23, align 4, !tbaa !168, !alias.scope !241, !noalias !244 + store i32 %24, i32 addrspace(1)* %19, align 4, !tbaa !168, !alias.scope !244, !noalias !241 br label %25 25: ; preds = %18, %4 @@ -362,11 +362,11 @@ define void @row_barrier(i32 addrspace(1)* nocapture noundef "air-buffer-no-alia define void @lcg_step(i32 addrspace(1)* nocapture noundef "air-buffer-no-alias" %0, i32 addrspace(2)* nocapture noundef readonly align 4 dereferenceable(4) "air-buffer-no-alias" %1, i32 noundef %2) local_unnamed_addr #0 { %4 = zext i32 %2 to i64 %5 = getelementptr inbounds i32, i32 addrspace(1)* %0, i64 %4 - %6 = load i32, i32 addrspace(1)* %5, align 4, !tbaa !166, !alias.scope !244, !noalias !247 + %6 = load i32, i32 addrspace(1)* %5, align 4, !tbaa !168, !alias.scope !246, !noalias !249 %7 = mul i32 %6, 1664525 - %8 = load i32, i32 addrspace(2)* %1, align 4, !tbaa !166, !alias.scope !247, !noalias !244 + %8 = load i32, i32 addrspace(2)* %1, align 4, !tbaa !168, !alias.scope !249, !noalias !246 %9 = add i32 %7, %8 - store i32 %9, i32 addrspace(1)* %5, align 4, !tbaa !166, !alias.scope !244, !noalias !247 + store i32 %9, i32 addrspace(1)* %5, align 4, !tbaa !168, !alias.scope !246, !noalias !249 ret void } @@ -377,7 +377,7 @@ define void @narrow_mix(i32 addrspace(1)* nocapture noundef writeonly "air-buffe %6 = xor i16 %4, 23130 %7 = trunc i32 %2 to i8 %8 = lshr i32 %2, 3 - %9 = load i32, i32 addrspace(2)* %1, align 4, !tbaa !166, !alias.scope !249, !noalias !252 + %9 = load i32, i32 addrspace(2)* %1, align 4, !tbaa !168, !alias.scope !251, !noalias !254 %10 = icmp eq i32 %9, 0 br i1 %10, label %11, label %27 @@ -397,7 +397,7 @@ define void @narrow_mix(i32 addrspace(1)* nocapture noundef writeonly "air-buffe %24 = xor i32 %21, %23 %25 = zext i32 %2 to i64 %26 = getelementptr inbounds i32, i32 addrspace(1)* %0, i64 %25 - store i32 %24, i32 addrspace(1)* %26, align 4, !tbaa !166, !alias.scope !252, !noalias !249 + store i32 %24, i32 addrspace(1)* %26, align 4, !tbaa !168, !alias.scope !254, !noalias !251 ret void 27: ; preds = %3, %27 @@ -422,53 +422,53 @@ define void @narrow_mix(i32 addrspace(1)* nocapture noundef writeonly "air-buffe %46 = add nsw i32 %45, %42 %47 = add nuw i32 %28, 1 %48 = icmp eq i32 %47, %9 - br i1 %48, label %11, label %27, !llvm.loop !254 + br i1 %48, label %11, label %27, !llvm.loop !256 } ; Function Attrs: mustprogress nounwind willreturn define void @texels_in(<4 x float> addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %0, i32 addrspace(2)* nocapture noundef readonly align 4 dereferenceable(4) "air-buffer-no-alias" %1, %struct._texture_2d_t addrspace(1)* %2, <2 x i32> noundef %3) local_unnamed_addr #8 { %5 = extractelement <2 x i32> %3, i64 1 - %6 = load i32, i32 addrspace(2)* %1, align 4, !tbaa !166, !alias.scope !255, !noalias !258 + %6 = load i32, i32 addrspace(2)* %1, align 4, !tbaa !168, !alias.scope !257, !noalias !260 %7 = mul i32 %6, %5 %8 = extractelement <2 x i32> %3, i64 0 %9 = add i32 %7, %8 %10 = zext i32 %9 to i64 %11 = getelementptr inbounds <4 x float>, <4 x float> addrspace(1)* %0, i64 %10 - %12 = load <4 x float>, <4 x float> addrspace(1)* %11, align 16, !tbaa !148, !alias.scope !261, !noalias !262 - tail call void @air.write_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture %2, <2 x i32> %3, <4 x float> %12, i32 0, i32 2) #22, !alias.scope !263, !noalias !264 + %12 = load <4 x float>, <4 x float> addrspace(1)* %11, align 16, !tbaa !150, !alias.scope !263, !noalias !264 + tail call void @air.write_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture %2, <2 x i32> %3, <4 x float> %12, i32 0, i32 2) #23, !alias.scope !265, !noalias !266 ret void } ; Function Attrs: mustprogress nofree nounwind willreturn define void @texels_out(%struct._texture_2d_t addrspace(1)* nocapture readonly %0, <4 x float> addrspace(1)* nocapture noundef writeonly "air-buffer-no-alias" %1, i32 addrspace(2)* nocapture noundef readonly align 4 dereferenceable(4) "air-buffer-no-alias" %2, <2 x i32> noundef %3) local_unnamed_addr #9 { - %5 = tail call %struct._sampler_t addrspace(2)* @air.get_read_sampler() #23 - %6 = tail call { <4 x float>, i8 } @air.read_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture readonly %0, %struct._sampler_t addrspace(2)* %5, <2 x i32> %3, <2 x i32> zeroinitializer, i32 0, i32 1) #24 + %5 = tail call %struct._sampler_t addrspace(2)* @air.get_read_sampler() #24 + %6 = tail call { <4 x float>, i8 } @air.read_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture readonly %0, %struct._sampler_t addrspace(2)* %5, <2 x i32> %3, <2 x i32> zeroinitializer, i32 0, i32 1) #25 %7 = extractvalue { <4 x float>, i8 } %6, 0 %8 = extractelement <2 x i32> %3, i64 1 - %9 = load i32, i32 addrspace(2)* %2, align 4, !tbaa !166, !alias.scope !265, !noalias !268 + %9 = load i32, i32 addrspace(2)* %2, align 4, !tbaa !168, !alias.scope !267, !noalias !270 %10 = mul i32 %9, %8 %11 = extractelement <2 x i32> %3, i64 0 %12 = add i32 %10, %11 %13 = zext i32 %12 to i64 %14 = getelementptr inbounds <4 x float>, <4 x float> addrspace(1)* %1, i64 %13 - store <4 x float> %7, <4 x float> addrspace(1)* %14, align 16, !tbaa !148, !alias.scope !271, !noalias !272 + store <4 x float> %7, <4 x float> addrspace(1)* %14, align 16, !tbaa !150, !alias.scope !273, !noalias !274 ret void } ; Function Attrs: convergent mustprogress nounwind willreturn define void @sample_down(%struct._texture_2d_t addrspace(1)* %0, %struct._texture_2d_t addrspace(1)* %1, %struct._sampler_t addrspace(2)* nocapture readonly %2, <2 x i32> noundef %3) local_unnamed_addr #10 { - %5 = tail call i32 @air.get_width_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly %1, i32 0) #24, !alias.scope !273, !noalias !276 - %6 = tail call fast float @air.convert.f.f32.u.i32(i32 %5) #20 + %5 = tail call i32 @air.get_width_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly %1, i32 0) #25, !alias.scope !275, !noalias !278 + %6 = tail call fast float @air.convert.f.f32.u.i32(i32 %5) #21 %7 = insertelement <2 x float> undef, float %6, i64 0 - %8 = tail call i32 @air.get_height_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly %1, i32 0) #24, !alias.scope !273, !noalias !276 - %9 = tail call fast float @air.convert.f.f32.u.i32(i32 %8) #20 + %8 = tail call i32 @air.get_height_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly %1, i32 0) #25, !alias.scope !275, !noalias !278 + %9 = tail call fast float @air.convert.f.f32.u.i32(i32 %8) #21 %10 = insertelement <2 x float> %7, float %9, i64 1 - %11 = tail call fast <2 x float> @air.convert.f.v2f32.u.v2i32(<2 x i32> %3) #20 + %11 = tail call fast <2 x float> @air.convert.f.v2f32.u.v2i32(<2 x i32> %3) #21 %12 = fadd fast <2 x float> %11, %13 = fdiv fast <2 x float> %12, %10 - %14 = tail call { <4 x float>, i8 } @air.sample_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture readonly %0, %struct._sampler_t addrspace(2)* nocapture readonly %2, <2 x float> %13, i1 true, <2 x i32> zeroinitializer, i1 false, float 0.000000e+00, float 0.000000e+00, i32 0) #25, !alias.scope !278 + %14 = tail call { <4 x float>, i8 } @air.sample_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture readonly %0, %struct._sampler_t addrspace(2)* nocapture readonly %2, <2 x float> %13, i1 true, <2 x i32> zeroinitializer, i1 false, float 0.000000e+00, float 0.000000e+00, i32 0) #26, !alias.scope !280 %15 = extractvalue { <4 x float>, i8 } %14, 0 - tail call void @air.write_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture %1, <2 x i32> %3, <4 x float> %15, i32 0, i32 2) #22, !alias.scope !273, !noalias !276 + tail call void @air.write_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture %1, <2 x i32> %3, <4 x float> %15, i32 0, i32 2) #23, !alias.scope !275, !noalias !278 ret void } @@ -477,35 +477,35 @@ declare <2 x float> @air.convert.f.v2f32.u.v2i32(<2 x i32>) local_unnamed_addr # ; Function Attrs: convergent mustprogress nounwind willreturn define void @sample_up(%struct._texture_2d_t addrspace(1)* %0, %struct._texture_2d_t addrspace(1)* %1, <2 x i32> noundef %2) local_unnamed_addr #10 { - %4 = tail call i32 @air.get_width_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly %1, i32 0) #24, !alias.scope !279 - %5 = tail call fast float @air.convert.f.f32.u.i32(i32 %4) #20 + %4 = tail call i32 @air.get_width_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly %1, i32 0) #25, !alias.scope !281 + %5 = tail call fast float @air.convert.f.f32.u.i32(i32 %4) #21 %6 = insertelement <2 x float> undef, float %5, i64 0 - %7 = tail call i32 @air.get_height_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly %1, i32 0) #24, !alias.scope !279 - %8 = tail call fast float @air.convert.f.f32.u.i32(i32 %7) #20 + %7 = tail call i32 @air.get_height_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly %1, i32 0) #25, !alias.scope !281 + %8 = tail call fast float @air.convert.f.f32.u.i32(i32 %7) #21 %9 = insertelement <2 x float> %6, float %8, i64 1 - %10 = tail call fast <2 x float> @air.convert.f.v2f32.u.v2i32(<2 x i32> %2) #20 + %10 = tail call fast <2 x float> @air.convert.f.v2f32.u.v2i32(<2 x i32> %2) #21 %11 = fadd fast <2 x float> %10, %12 = fdiv fast <2 x float> %11, %9 - %13 = tail call { <4 x float>, i8 } @air.sample_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture readonly %0, %struct._sampler_t addrspace(2)* nocapture readonly bitcast ([2 x i64] addrspace(2)* @__air_sampler_state to %struct._sampler_t addrspace(2)*), <2 x float> %12, i1 true, <2 x i32> zeroinitializer, i1 false, float 0.000000e+00, float 0.000000e+00, i32 0) #25 + %13 = tail call { <4 x float>, i8 } @air.sample_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture readonly %0, %struct._sampler_t addrspace(2)* nocapture readonly bitcast ([2 x i64] addrspace(2)* @__air_sampler_state to %struct._sampler_t addrspace(2)*), <2 x float> %12, i1 true, <2 x i32> zeroinitializer, i1 false, float 0.000000e+00, float 0.000000e+00, i32 0) #26 %14 = extractvalue { <4 x float>, i8 } %13, 0 - tail call void @air.write_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture %1, <2 x i32> %2, <4 x float> %14, i32 0, i32 2) #22, !alias.scope !279 + tail call void @air.write_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture %1, <2 x i32> %2, <4 x float> %14, i32 0, i32 2) #23, !alias.scope !281 ret void } ; Function Attrs: convergent mustprogress nounwind willreturn define void @sample_down_layers(%struct._texture_2d_t addrspace(1)* %0, %struct._texture_2d_t addrspace(1)* %1, %struct._sampler_t addrspace(2)* nocapture readonly %2, <3 x i32> noundef %3) local_unnamed_addr #10 { - %5 = tail call i32 @air.get_height_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly %0, i32 0) #24, !alias.scope !282, !noalias !285 + %5 = tail call i32 @air.get_height_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly %0, i32 0) #25, !alias.scope !284, !noalias !287 %6 = lshr i32 %5, 1 - %7 = tail call i32 @air.get_width_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly %1, i32 0) #24, !alias.scope !282, !noalias !285 - %8 = tail call fast float @air.convert.f.f32.u.i32(i32 %7) #20 + %7 = tail call i32 @air.get_width_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly %1, i32 0) #25, !alias.scope !284, !noalias !287 + %8 = tail call fast float @air.convert.f.f32.u.i32(i32 %7) #21 %9 = insertelement <2 x float> undef, float %8, i64 0 - %10 = tail call fast float @air.convert.f.f32.u.i32(i32 %6) #20 + %10 = tail call fast float @air.convert.f.f32.u.i32(i32 %6) #21 %11 = insertelement <2 x float> %9, float %10, i64 1 %12 = shufflevector <3 x i32> %3, <3 x i32> poison, <2 x i32> - %13 = tail call fast <2 x float> @air.convert.f.v2f32.u.v2i32(<2 x i32> %12) #20 + %13 = tail call fast <2 x float> @air.convert.f.v2f32.u.v2i32(<2 x i32> %12) #21 %14 = fadd fast <2 x float> %13, %15 = fdiv fast <2 x float> %14, %11 - %16 = tail call { <4 x float>, i8 } @air.sample_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture readonly %0, %struct._sampler_t addrspace(2)* nocapture readonly %2, <2 x float> %15, i1 true, <2 x i32> zeroinitializer, i1 false, float 0.000000e+00, float 0.000000e+00, i32 0) #25, !alias.scope !287 + %16 = tail call { <4 x float>, i8 } @air.sample_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture readonly %0, %struct._sampler_t addrspace(2)* nocapture readonly %2, <2 x float> %15, i1 true, <2 x i32> zeroinitializer, i1 false, float 0.000000e+00, float 0.000000e+00, i32 0) #26, !alias.scope !289 %17 = extractvalue { <4 x float>, i8 } %16, 0 %18 = extractelement <3 x i32> %3, i64 0 %19 = insertelement <2 x i32> undef, i32 %18, i64 0 @@ -514,17 +514,17 @@ define void @sample_down_layers(%struct._texture_2d_t addrspace(1)* %0, %struct. %22 = mul i32 %6, %21 %23 = add i32 %22, %20 %24 = insertelement <2 x i32> %19, i32 %23, i64 1 - tail call void @air.write_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture %1, <2 x i32> %24, <4 x float> %17, i32 0, i32 2) #22, !alias.scope !282, !noalias !285 + tail call void @air.write_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture %1, <2 x i32> %24, <4 x float> %17, i32 0, i32 2) #23, !alias.scope !284, !noalias !287 ret void } ; Function Attrs: convergent mustprogress nounwind willreturn define void @sample_down_distinct(%struct._texture_2d_t addrspace(1)* %0, %struct._texture_2d_t addrspace(1)* %1, %struct._sampler_t addrspace(2)* nocapture readonly %2, <3 x i32> noundef %3) local_unnamed_addr #10 { - %5 = tail call i32 @air.get_width_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly %1, i32 0) #24, !alias.scope !288, !noalias !291 - %6 = tail call fast float @air.convert.f.f32.u.i32(i32 %5) #20 + %5 = tail call i32 @air.get_width_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly %1, i32 0) #25, !alias.scope !290, !noalias !293 + %6 = tail call fast float @air.convert.f.f32.u.i32(i32 %5) #21 %7 = insertelement <2 x float> undef, float %6, i64 0 - %8 = tail call i32 @air.get_height_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly %1, i32 0) #24, !alias.scope !288, !noalias !291 - %9 = tail call fast float @air.convert.f.f32.u.i32(i32 %8) #20 + %8 = tail call i32 @air.get_height_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly %1, i32 0) #25, !alias.scope !290, !noalias !293 + %9 = tail call fast float @air.convert.f.f32.u.i32(i32 %8) #21 %10 = insertelement <2 x float> %7, float %9, i64 1 %11 = extractelement <3 x i32> %3, i64 0 %12 = insertelement <2 x i32> undef, i32 %11, i64 0 @@ -533,12 +533,12 @@ define void @sample_down_distinct(%struct._texture_2d_t addrspace(1)* %0, %struc %15 = mul i32 %5, %14 %16 = add i32 %15, %13 %17 = insertelement <2 x i32> %12, i32 %16, i64 1 - %18 = tail call fast <2 x float> @air.convert.f.v2f32.u.v2i32(<2 x i32> %17) #20 + %18 = tail call fast <2 x float> @air.convert.f.v2f32.u.v2i32(<2 x i32> %17) #21 %19 = fadd fast <2 x float> %18, %20 = fdiv fast <2 x float> %19, %10 - %21 = tail call { <4 x float>, i8 } @air.sample_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture readonly %0, %struct._sampler_t addrspace(2)* nocapture readonly %2, <2 x float> %20, i1 true, <2 x i32> zeroinitializer, i1 false, float 0.000000e+00, float 0.000000e+00, i32 0) #25, !alias.scope !293 + %21 = tail call { <4 x float>, i8 } @air.sample_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture readonly %0, %struct._sampler_t addrspace(2)* nocapture readonly %2, <2 x float> %20, i1 true, <2 x i32> zeroinitializer, i1 false, float 0.000000e+00, float 0.000000e+00, i32 0) #26, !alias.scope !295 %22 = extractvalue { <4 x float>, i8 } %21, 0 - tail call void @air.write_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture %1, <2 x i32> %17, <4 x float> %22, i32 0, i32 2) #22, !alias.scope !288, !noalias !291 + tail call void @air.write_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture %1, <2 x i32> %17, <4 x float> %22, i32 0, i32 2) #23, !alias.scope !290, !noalias !293 ret void } @@ -546,97 +546,97 @@ define void @sample_down_distinct(%struct._texture_2d_t addrspace(1)* %0, %struc define void @wide_bindings(i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %0, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %1, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %2, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %3, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %4, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %5, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %6, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %7, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %8, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %9, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %10, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %11, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %12, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %13, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %14, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %15, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %16, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %17, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %18, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %19, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %20, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %21, i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %22, i32 addrspace(1)* nocapture noundef writeonly "air-buffer-no-alias" %23, i32 noundef %24) local_unnamed_addr #0 { %26 = zext i32 %24 to i64 %27 = getelementptr inbounds i32, i32 addrspace(1)* %0, i64 %26 - %28 = load i32, i32 addrspace(1)* %27, align 4, !tbaa !166, !alias.scope !294, !noalias !297 + %28 = load i32, i32 addrspace(1)* %27, align 4, !tbaa !168, !alias.scope !296, !noalias !299 %29 = mul i32 %28, 3 %30 = getelementptr inbounds i32, i32 addrspace(1)* %1, i64 %26 - %31 = load i32, i32 addrspace(1)* %30, align 4, !tbaa !166, !alias.scope !321, !noalias !322 + %31 = load i32, i32 addrspace(1)* %30, align 4, !tbaa !168, !alias.scope !323, !noalias !324 %32 = add i32 %29, %31 %33 = mul i32 %32, 3 %34 = getelementptr inbounds i32, i32 addrspace(1)* %2, i64 %26 - %35 = load i32, i32 addrspace(1)* %34, align 4, !tbaa !166, !alias.scope !323, !noalias !324 + %35 = load i32, i32 addrspace(1)* %34, align 4, !tbaa !168, !alias.scope !325, !noalias !326 %36 = add i32 %33, %35 %37 = mul i32 %36, 3 %38 = getelementptr inbounds i32, i32 addrspace(1)* %3, i64 %26 - %39 = load i32, i32 addrspace(1)* %38, align 4, !tbaa !166, !alias.scope !325, !noalias !326 + %39 = load i32, i32 addrspace(1)* %38, align 4, !tbaa !168, !alias.scope !327, !noalias !328 %40 = add i32 %37, %39 %41 = mul i32 %40, 3 %42 = getelementptr inbounds i32, i32 addrspace(1)* %4, i64 %26 - %43 = load i32, i32 addrspace(1)* %42, align 4, !tbaa !166, !alias.scope !327, !noalias !328 + %43 = load i32, i32 addrspace(1)* %42, align 4, !tbaa !168, !alias.scope !329, !noalias !330 %44 = add i32 %41, %43 %45 = mul i32 %44, 3 %46 = getelementptr inbounds i32, i32 addrspace(1)* %5, i64 %26 - %47 = load i32, i32 addrspace(1)* %46, align 4, !tbaa !166, !alias.scope !329, !noalias !330 + %47 = load i32, i32 addrspace(1)* %46, align 4, !tbaa !168, !alias.scope !331, !noalias !332 %48 = add i32 %45, %47 %49 = mul i32 %48, 3 %50 = getelementptr inbounds i32, i32 addrspace(1)* %6, i64 %26 - %51 = load i32, i32 addrspace(1)* %50, align 4, !tbaa !166, !alias.scope !331, !noalias !332 + %51 = load i32, i32 addrspace(1)* %50, align 4, !tbaa !168, !alias.scope !333, !noalias !334 %52 = add i32 %49, %51 %53 = mul i32 %52, 3 %54 = getelementptr inbounds i32, i32 addrspace(1)* %7, i64 %26 - %55 = load i32, i32 addrspace(1)* %54, align 4, !tbaa !166, !alias.scope !333, !noalias !334 + %55 = load i32, i32 addrspace(1)* %54, align 4, !tbaa !168, !alias.scope !335, !noalias !336 %56 = add i32 %53, %55 %57 = mul i32 %56, 3 %58 = getelementptr inbounds i32, i32 addrspace(1)* %8, i64 %26 - %59 = load i32, i32 addrspace(1)* %58, align 4, !tbaa !166, !alias.scope !335, !noalias !336 + %59 = load i32, i32 addrspace(1)* %58, align 4, !tbaa !168, !alias.scope !337, !noalias !338 %60 = add i32 %57, %59 %61 = mul i32 %60, 3 %62 = getelementptr inbounds i32, i32 addrspace(1)* %9, i64 %26 - %63 = load i32, i32 addrspace(1)* %62, align 4, !tbaa !166, !alias.scope !337, !noalias !338 + %63 = load i32, i32 addrspace(1)* %62, align 4, !tbaa !168, !alias.scope !339, !noalias !340 %64 = add i32 %61, %63 %65 = mul i32 %64, 3 %66 = getelementptr inbounds i32, i32 addrspace(1)* %10, i64 %26 - %67 = load i32, i32 addrspace(1)* %66, align 4, !tbaa !166, !alias.scope !339, !noalias !340 + %67 = load i32, i32 addrspace(1)* %66, align 4, !tbaa !168, !alias.scope !341, !noalias !342 %68 = add i32 %65, %67 %69 = mul i32 %68, 3 %70 = getelementptr inbounds i32, i32 addrspace(1)* %11, i64 %26 - %71 = load i32, i32 addrspace(1)* %70, align 4, !tbaa !166, !alias.scope !341, !noalias !342 + %71 = load i32, i32 addrspace(1)* %70, align 4, !tbaa !168, !alias.scope !343, !noalias !344 %72 = add i32 %69, %71 %73 = mul i32 %72, 3 %74 = getelementptr inbounds i32, i32 addrspace(1)* %12, i64 %26 - %75 = load i32, i32 addrspace(1)* %74, align 4, !tbaa !166, !alias.scope !343, !noalias !344 + %75 = load i32, i32 addrspace(1)* %74, align 4, !tbaa !168, !alias.scope !345, !noalias !346 %76 = add i32 %73, %75 %77 = mul i32 %76, 3 %78 = getelementptr inbounds i32, i32 addrspace(1)* %13, i64 %26 - %79 = load i32, i32 addrspace(1)* %78, align 4, !tbaa !166, !alias.scope !345, !noalias !346 + %79 = load i32, i32 addrspace(1)* %78, align 4, !tbaa !168, !alias.scope !347, !noalias !348 %80 = add i32 %77, %79 %81 = mul i32 %80, 3 %82 = getelementptr inbounds i32, i32 addrspace(1)* %14, i64 %26 - %83 = load i32, i32 addrspace(1)* %82, align 4, !tbaa !166, !alias.scope !347, !noalias !348 + %83 = load i32, i32 addrspace(1)* %82, align 4, !tbaa !168, !alias.scope !349, !noalias !350 %84 = add i32 %81, %83 %85 = mul i32 %84, 3 %86 = getelementptr inbounds i32, i32 addrspace(1)* %15, i64 %26 - %87 = load i32, i32 addrspace(1)* %86, align 4, !tbaa !166, !alias.scope !349, !noalias !350 + %87 = load i32, i32 addrspace(1)* %86, align 4, !tbaa !168, !alias.scope !351, !noalias !352 %88 = add i32 %85, %87 %89 = mul i32 %88, 3 %90 = getelementptr inbounds i32, i32 addrspace(1)* %16, i64 %26 - %91 = load i32, i32 addrspace(1)* %90, align 4, !tbaa !166, !alias.scope !351, !noalias !352 + %91 = load i32, i32 addrspace(1)* %90, align 4, !tbaa !168, !alias.scope !353, !noalias !354 %92 = add i32 %89, %91 %93 = mul i32 %92, 3 %94 = getelementptr inbounds i32, i32 addrspace(1)* %17, i64 %26 - %95 = load i32, i32 addrspace(1)* %94, align 4, !tbaa !166, !alias.scope !353, !noalias !354 + %95 = load i32, i32 addrspace(1)* %94, align 4, !tbaa !168, !alias.scope !355, !noalias !356 %96 = add i32 %93, %95 %97 = mul i32 %96, 3 %98 = getelementptr inbounds i32, i32 addrspace(1)* %18, i64 %26 - %99 = load i32, i32 addrspace(1)* %98, align 4, !tbaa !166, !alias.scope !355, !noalias !356 + %99 = load i32, i32 addrspace(1)* %98, align 4, !tbaa !168, !alias.scope !357, !noalias !358 %100 = add i32 %97, %99 %101 = mul i32 %100, 3 %102 = getelementptr inbounds i32, i32 addrspace(1)* %19, i64 %26 - %103 = load i32, i32 addrspace(1)* %102, align 4, !tbaa !166, !alias.scope !357, !noalias !358 + %103 = load i32, i32 addrspace(1)* %102, align 4, !tbaa !168, !alias.scope !359, !noalias !360 %104 = add i32 %101, %103 %105 = mul i32 %104, 3 %106 = getelementptr inbounds i32, i32 addrspace(1)* %20, i64 %26 - %107 = load i32, i32 addrspace(1)* %106, align 4, !tbaa !166, !alias.scope !359, !noalias !360 + %107 = load i32, i32 addrspace(1)* %106, align 4, !tbaa !168, !alias.scope !361, !noalias !362 %108 = add i32 %105, %107 %109 = mul i32 %108, 3 %110 = getelementptr inbounds i32, i32 addrspace(1)* %21, i64 %26 - %111 = load i32, i32 addrspace(1)* %110, align 4, !tbaa !166, !alias.scope !361, !noalias !362 + %111 = load i32, i32 addrspace(1)* %110, align 4, !tbaa !168, !alias.scope !363, !noalias !364 %112 = add i32 %109, %111 %113 = mul i32 %112, 3 %114 = getelementptr inbounds i32, i32 addrspace(1)* %22, i64 %26 - %115 = load i32, i32 addrspace(1)* %114, align 4, !tbaa !166, !alias.scope !363, !noalias !364 + %115 = load i32, i32 addrspace(1)* %114, align 4, !tbaa !168, !alias.scope !365, !noalias !366 %116 = add i32 %113, %115 %117 = getelementptr inbounds i32, i32 addrspace(1)* %23, i64 %26 - store i32 %116, i32 addrspace(1)* %117, align 4, !tbaa !166, !alias.scope !365, !noalias !366 + store i32 %116, i32 addrspace(1)* %117, align 4, !tbaa !168, !alias.scope !367, !noalias !368 ret void } @@ -646,33 +646,33 @@ define void @wave_store(i32 addrspace(1)* nocapture noundef writeonly "air-buffe %5 = mul i32 %4, 5600 %6 = extractelement <2 x i32> %2, i64 0 %7 = add i32 %5, %6 - %8 = load i32, i32 addrspace(2)* %1, align 4, !tbaa !166, !alias.scope !367, !noalias !370 + %8 = load i32, i32 addrspace(2)* %1, align 4, !tbaa !168, !alias.scope !369, !noalias !372 %9 = add i32 %8, %7 %10 = zext i32 %7 to i64 %11 = getelementptr inbounds i32, i32 addrspace(1)* %0, i64 %10 - store i32 %9, i32 addrspace(1)* %11, align 4, !tbaa !166, !alias.scope !370, !noalias !367 + store i32 %9, i32 addrspace(1)* %11, align 4, !tbaa !168, !alias.scope !372, !noalias !369 ret void } ; Function Attrs: mustprogress nofree nosync nounwind define void @signed_zero_products(<4 x float> addrspace(1)* nocapture noundef writeonly "air-buffer-no-alias" %0, i32 addrspace(2)* nocapture noundef readonly align 4 dereferenceable(4) "air-buffer-no-alias" %1, i32 noundef %2) local_unnamed_addr #11 { %4 = and i32 %2, 63 - %5 = tail call float @air.convert.f.f32.u.i32(i32 %4) #20 + %5 = tail call float @air.convert.f.f32.u.i32(i32 %4) #21 %6 = lshr i32 %2, 6 %7 = and i32 %6, 63 - %8 = tail call float @air.convert.f.f32.u.i32(i32 %7) #20 + %8 = tail call float @air.convert.f.f32.u.i32(i32 %7) #21 %9 = fneg fast float %8 %10 = insertelement <4 x float> , float %5, i64 0 %11 = insertelement <4 x float> %10, float %9, i64 1 - %12 = load i32, i32 addrspace(2)* %1, align 4, !tbaa !166, !alias.scope !372, !noalias !375 + %12 = load i32, i32 addrspace(2)* %1, align 4, !tbaa !168, !alias.scope !374, !noalias !377 %13 = icmp eq i32 %12, 0 br i1 %13, label %21, label %14 14: ; preds = %3 - %15 = load float, float addrspace(2)* @_ZL13positive_zero, align 4, !tbaa !173 + %15 = load float, float addrspace(2)* @_ZL13positive_zero, align 4, !tbaa !175 %16 = insertelement <4 x float> poison, float %15, i64 0 %17 = shufflevector <4 x float> %16, <4 x float> poison, <4 x i32> zeroinitializer - %18 = load float, float addrspace(2)* @_ZL13negative_zero, align 4, !tbaa !173 + %18 = load float, float addrspace(2)* @_ZL13negative_zero, align 4, !tbaa !175 %19 = insertelement <4 x float> poison, float %18, i64 0 %20 = shufflevector <4 x float> %19, <4 x float> poison, <4 x i32> zeroinitializer br label %27 @@ -683,7 +683,7 @@ define void @signed_zero_products(<4 x float> addrspace(1)* nocapture noundef wr %24 = fadd <4 x float> %22, %23 %25 = zext i32 %2 to i64 %26 = getelementptr inbounds <4 x float>, <4 x float> addrspace(1)* %0, i64 %25 - store <4 x float> %24, <4 x float> addrspace(1)* %26, align 16, !tbaa !148, !alias.scope !375, !noalias !372 + store <4 x float> %24, <4 x float> addrspace(1)* %26, align 16, !tbaa !150, !alias.scope !377, !noalias !374 ret void 27: ; preds = %14, %27 @@ -694,17 +694,17 @@ define void @signed_zero_products(<4 x float> addrspace(1)* nocapture noundef wr %32 = fmul <4 x float> %20, %28 %33 = fadd <4 x float> %29, %31 %34 = fsub <4 x float> %33, %32 - %35 = tail call fast <4 x float> @air.fma.v4f32(<4 x float> %28, <4 x float> , <4 x float> ) #20 + %35 = tail call fast <4 x float> @air.fma.v4f32(<4 x float> %28, <4 x float> , <4 x float> ) #21 %36 = add nuw i32 %30, 1 %37 = icmp eq i32 %36, %12 - br i1 %37, label %21, label %27, !llvm.loop !377 + br i1 %37, label %21, label %27, !llvm.loop !379 } ; Function Attrs: convergent mustprogress nounwind define void @vote_loop(i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %0, <2 x i32> addrspace(1)* nocapture noundef writeonly "air-buffer-no-alias" %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #12 { %5 = zext i32 %2 to i64 %6 = getelementptr inbounds i32, i32 addrspace(1)* %0, i64 %5 - %7 = load i32, i32 addrspace(1)* %6, align 4, !tbaa !166, !alias.scope !378, !noalias !381 + %7 = load i32, i32 addrspace(1)* %6, align 4, !tbaa !168, !alias.scope !380, !noalias !383 %8 = icmp eq i32 %7, 0 br i1 %8, label %9, label %14 @@ -713,7 +713,7 @@ define void @vote_loop(i32 addrspace(1)* nocapture noundef readonly "air-buffer- %11 = insertelement <2 x i32> undef, i32 %10, i64 0 %12 = insertelement <2 x i32> %11, i32 %3, i64 1 %13 = getelementptr inbounds <2 x i32>, <2 x i32> addrspace(1)* %1, i64 %5 - store <2 x i32> %12, <2 x i32> addrspace(1)* %13, align 8, !tbaa !148, !alias.scope !381, !noalias !378 + store <2 x i32> %12, <2 x i32> addrspace(1)* %13, align 8, !tbaa !150, !alias.scope !383, !noalias !380 ret void 14: ; preds = %4, %14 @@ -721,21 +721,21 @@ define void @vote_loop(i32 addrspace(1)* nocapture noundef readonly "air-buffer- %16 = phi i32 [ %18, %14 ], [ %2, %4 ] %17 = mul i32 %16, 1664525 %18 = add i32 %17, 1013904223 - tail call void @air.simdgroup.barrier(i32 0, i32 4) #21 + tail call void @air.simdgroup.barrier(i32 0, i32 4) #22 %19 = add nuw i32 %15, 1 %20 = icmp eq i32 %19, %7 - br i1 %20, label %9, label %14, !llvm.loop !383 + br i1 %20, label %9, label %14, !llvm.loop !385 } ; Function Attrs: convergent mustprogress nounwind define void @group_sums(i32 addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %0, i32 addrspace(1)* nocapture noundef writeonly "air-buffer-no-alias" %1, i32 addrspace(3)* nocapture noundef "air-buffer-no-alias" %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #12 { %8 = zext i32 %6 to i64 %9 = getelementptr inbounds i32, i32 addrspace(1)* %0, i64 %8 - %10 = load i32, i32 addrspace(1)* %9, align 4, !tbaa !166, !alias.scope !384, !noalias !387 + %10 = load i32, i32 addrspace(1)* %9, align 4, !tbaa !168, !alias.scope !386, !noalias !389 %11 = zext i32 %3 to i64 %12 = getelementptr inbounds i32, i32 addrspace(3)* %2, i64 %11 - store i32 %10, i32 addrspace(3)* %12, align 4, !tbaa !166, !alias.scope !390, !noalias !391 - tail call void @air.wg.barrier(i32 2, i32 1) #21 + store i32 %10, i32 addrspace(3)* %12, align 4, !tbaa !168, !alias.scope !392, !noalias !393 + tail call void @air.wg.barrier(i32 2, i32 1) #22 %13 = icmp ult i32 %4, 2 br i1 %13, label %14, label %16 @@ -753,22 +753,22 @@ define void @group_sums(i32 addrspace(1)* nocapture noundef readonly "air-buffer %21 = add i32 %18, %3 %22 = zext i32 %21 to i64 %23 = getelementptr inbounds i32, i32 addrspace(3)* %2, i64 %22 - %24 = load i32, i32 addrspace(3)* %23, align 4, !tbaa !166, !alias.scope !390, !noalias !391 - %25 = load i32, i32 addrspace(3)* %12, align 4, !tbaa !166, !alias.scope !390, !noalias !391 + %24 = load i32, i32 addrspace(3)* %23, align 4, !tbaa !168, !alias.scope !392, !noalias !393 + %25 = load i32, i32 addrspace(3)* %12, align 4, !tbaa !168, !alias.scope !392, !noalias !393 %26 = add i32 %25, %24 - store i32 %26, i32 addrspace(3)* %12, align 4, !tbaa !166, !alias.scope !390, !noalias !391 + store i32 %26, i32 addrspace(3)* %12, align 4, !tbaa !168, !alias.scope !392, !noalias !393 br label %27 27: ; preds = %20, %16 - tail call void @air.wg.barrier(i32 2, i32 1) #21 + tail call void @air.wg.barrier(i32 2, i32 1) #22 %28 = icmp ult i32 %17, 4 - br i1 %28, label %14, label %16, !llvm.loop !392 + br i1 %28, label %14, label %16, !llvm.loop !394 29: ; preds = %14 %30 = zext i32 %5 to i64 %31 = getelementptr inbounds i32, i32 addrspace(1)* %1, i64 %30 - %32 = load i32, i32 addrspace(3)* %2, align 4, !tbaa !166, !alias.scope !390, !noalias !391 - store i32 %32, i32 addrspace(1)* %31, align 4, !tbaa !166, !alias.scope !393, !noalias !394 + %32 = load i32, i32 addrspace(3)* %2, align 4, !tbaa !168, !alias.scope !392, !noalias !393 + store i32 %32, i32 addrspace(1)* %31, align 4, !tbaa !168, !alias.scope !395, !noalias !396 br label %33 33: ; preds = %29, %14 @@ -782,7 +782,7 @@ define void @constant_reads(<4 x i32> addrspace(2)* nocapture noundef readonly " 4: ; preds = %7 %5 = zext i32 %2 to i64 %6 = getelementptr inbounds i32, i32 addrspace(1)* %1, i64 %5 - store i32 %23, i32 addrspace(1)* %6, align 4, !tbaa !166, !alias.scope !395, !noalias !398 + store i32 %23, i32 addrspace(1)* %6, align 4, !tbaa !168, !alias.scope !397, !noalias !400 ret void 7: ; preds = %3, %7 @@ -793,7 +793,7 @@ define void @constant_reads(<4 x i32> addrspace(2)* nocapture noundef readonly " %12 = and i32 %11, 4095 %13 = zext i32 %12 to i64 %14 = getelementptr inbounds <4 x i32>, <4 x i32> addrspace(2)* %0, i64 %13 - %15 = load <4 x i32>, <4 x i32> addrspace(2)* %14, align 16, !tbaa !148, !alias.scope !398, !noalias !395 + %15 = load <4 x i32>, <4 x i32> addrspace(2)* %14, align 16, !tbaa !150, !alias.scope !400, !noalias !397 %16 = extractelement <4 x i32> %15, i64 0 %17 = xor i32 %16, %8 %18 = extractelement <4 x i32> %15, i64 1 @@ -804,14 +804,92 @@ define void @constant_reads(<4 x i32> addrspace(2)* nocapture noundef readonly " %23 = add i32 %19, %22 %24 = add nuw nsw i32 %9, 1 %25 = icmp eq i32 %24, 64 - br i1 %25, label %4, label %7, !llvm.loop !400 + br i1 %25, label %4, label %7, !llvm.loop !402 +} + +; Function Attrs: argmemonly mustprogress nofree norecurse nosync nounwind willreturn +define void @row_tail(<4 x float> addrspace(1)* nocapture noundef readonly "air-buffer-no-alias" %0, float addrspace(1)* nocapture noundef writeonly "air-buffer-no-alias" %1, <2 x i32> addrspace(2)* nocapture noundef readonly align 8 dereferenceable(8) "air-buffer-no-alias" %2, i32 noundef %3) local_unnamed_addr #14 { + %5 = load <2 x i32>, <2 x i32> addrspace(2)* %2, align 8, !alias.scope !403, !noalias !406 + %6 = extractelement <2 x i32> %5, i64 0 + %7 = extractelement <2 x i32> %5, i64 1 + %8 = urem i32 %3, %7 + %9 = shl i32 %8, 2 + %10 = icmp ult i32 %9, %6 + br i1 %10, label %11, label %56 + +11: ; preds = %4 + %12 = udiv i32 %3, %7 + %13 = zext i32 %3 to i64 + %14 = getelementptr inbounds <4 x float>, <4 x float> addrspace(1)* %0, i64 %13 + %15 = load <4 x float>, <4 x float> addrspace(1)* %14, align 16, !tbaa !150, !alias.scope !409, !noalias !410 + %16 = mul i32 %12, %6 + %17 = add i32 %16, %9 + %18 = extractelement <4 x float> %15, i64 0 + %19 = zext i32 %17 to i64 + %20 = getelementptr inbounds float, float addrspace(1)* %1, i64 %19 + store float %18, float addrspace(1)* %20, align 4, !tbaa !175, !alias.scope !411, !noalias !412 + %21 = or i32 %9, 3 + %22 = icmp ult i32 %21, %6 + br i1 %22, label %23, label %36 + +23: ; preds = %11 + %24 = extractelement <4 x float> %15, i64 1 + %25 = add i32 %17, 1 + %26 = zext i32 %25 to i64 + %27 = getelementptr inbounds float, float addrspace(1)* %1, i64 %26 + store float %24, float addrspace(1)* %27, align 4, !tbaa !175, !alias.scope !411, !noalias !412 + %28 = extractelement <4 x float> %15, i64 2 + %29 = add i32 %17, 2 + %30 = zext i32 %29 to i64 + %31 = getelementptr inbounds float, float addrspace(1)* %1, i64 %30 + store float %28, float addrspace(1)* %31, align 4, !tbaa !175, !alias.scope !411, !noalias !412 + %32 = extractelement <4 x float> %15, i64 3 + %33 = add i32 %17, 3 + %34 = zext i32 %33 to i64 + %35 = getelementptr inbounds float, float addrspace(1)* %1, i64 %34 + store float %32, float addrspace(1)* %35, align 4, !tbaa !175, !alias.scope !411, !noalias !412 + br label %56 + +36: ; preds = %11 + %37 = or i32 %9, 2 + %38 = icmp ult i32 %37, %6 + br i1 %38, label %39, label %48 + +39: ; preds = %36 + %40 = extractelement <4 x float> %15, i64 1 + %41 = add i32 %17, 1 + %42 = zext i32 %41 to i64 + %43 = getelementptr inbounds float, float addrspace(1)* %1, i64 %42 + store float %40, float addrspace(1)* %43, align 4, !tbaa !175, !alias.scope !411, !noalias !412 + %44 = extractelement <4 x float> %15, i64 2 + %45 = add i32 %17, 2 + %46 = zext i32 %45 to i64 + %47 = getelementptr inbounds float, float addrspace(1)* %1, i64 %46 + store float %44, float addrspace(1)* %47, align 4, !tbaa !175, !alias.scope !411, !noalias !412 + br label %56 + +48: ; preds = %36 + %49 = or i32 %9, 1 + %50 = icmp ult i32 %49, %6 + br i1 %50, label %51, label %56 + +51: ; preds = %48 + %52 = add i32 %17, 1 + %53 = zext i32 %52 to i64 + %54 = getelementptr inbounds float, float addrspace(1)* %1, i64 %53 + %55 = extractelement <4 x float> %15, i64 1 + store float %55, float addrspace(1)* %54, align 4, !tbaa !175, !alias.scope !411, !noalias !412 + br label %56 + +56: ; preds = %23, %48, %51, %39, %4 + ret void } ; Function Attrs: mustprogress nofree nosync nounwind readnone willreturn declare float @air.fma.f32(float, float, float) local_unnamed_addr #2 ; Function Attrs: convergent mustprogress nounwind willreturn -declare void @air.wg.barrier(i32, i32) local_unnamed_addr #14 +declare void @air.wg.barrier(i32, i32) local_unnamed_addr #15 ; Function Attrs: mustprogress nofree nosync nounwind readnone willreturn declare i32 @air.min.u.i32(i32, i32) local_unnamed_addr #2 @@ -823,35 +901,35 @@ declare i32 @air.clamp.s.i32(i32, i32, i32) local_unnamed_addr #2 declare <4 x float> @air.fma.v4f32(<4 x float>, <4 x float>, <4 x float>) local_unnamed_addr #2 ; Function Attrs: convergent mustprogress nounwind willreturn -declare void @air.simdgroup.barrier(i32, i32) local_unnamed_addr #14 +declare void @air.simdgroup.barrier(i32, i32) local_unnamed_addr #15 ; Function Attrs: convergent mustprogress nounwind willreturn -declare i32 @air.simd_sum.u.i32(i32) local_unnamed_addr #14 +declare i32 @air.simd_sum.u.i32(i32) local_unnamed_addr #15 ; Function Attrs: argmemonly mustprogress nounwind willreturn -declare void @air.write_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture, <2 x i32>, <4 x float>, i32, i32) local_unnamed_addr #15 +declare void @air.write_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture, <2 x i32>, <4 x float>, i32, i32) local_unnamed_addr #16 ; Function Attrs: inaccessiblememonly mustprogress nofree nounwind readonly willreturn -declare %struct._sampler_t addrspace(2)* @air.get_read_sampler() local_unnamed_addr #16 +declare %struct._sampler_t addrspace(2)* @air.get_read_sampler() local_unnamed_addr #17 ; Function Attrs: argmemonly mustprogress nofree nounwind readonly willreturn -declare { <4 x float>, i8 } @air.read_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture readonly, %struct._sampler_t addrspace(2)*, <2 x i32>, <2 x i32>, i32, i32) local_unnamed_addr #17 +declare { <4 x float>, i8 } @air.read_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture readonly, %struct._sampler_t addrspace(2)*, <2 x i32>, <2 x i32>, i32, i32) local_unnamed_addr #18 ; Function Attrs: argmemonly mustprogress nofree nounwind readonly willreturn -declare i32 @air.get_width_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly, i32) local_unnamed_addr #17 +declare i32 @air.get_width_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly, i32) local_unnamed_addr #18 ; Function Attrs: argmemonly mustprogress nofree nounwind readonly willreturn -declare i32 @air.get_height_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly, i32) local_unnamed_addr #17 +declare i32 @air.get_height_texture_2d(%struct._texture_2d_t addrspace(1)* nocapture readonly, i32) local_unnamed_addr #18 ; Function Attrs: argmemonly convergent mustprogress nofree nounwind readonly willreturn -declare { <4 x float>, i8 } @air.sample_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture readonly, %struct._sampler_t addrspace(2)* nocapture readonly, <2 x float>, i1, <2 x i32>, i1, float, float, i32) local_unnamed_addr #18 +declare { <4 x float>, i8 } @air.sample_texture_2d.v4f32(%struct._texture_2d_t addrspace(1)* nocapture readonly, %struct._sampler_t addrspace(2)* nocapture readonly, <2 x float>, i1, <2 x i32>, i1, float, float, i32) local_unnamed_addr #19 ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn writeonly -define internal void @_GLOBAL__sub_I__() #19 section "air.static_init" { - %1 = load float, float addrspace(2)* @_Z13positive_zero.MTL_FC_INIT_0_f, align 4, !tbaa !173 - store float %1, float addrspace(2)* @_ZL13positive_zero, align 4, !tbaa !173 - %2 = load float, float addrspace(2)* @_Z13negative_zero.MTL_FC_INIT_1_f, align 4, !tbaa !173 - store float %2, float addrspace(2)* @_ZL13negative_zero, align 4, !tbaa !173 +define internal void @_GLOBAL__sub_I__() #20 section "air.static_init" { + %1 = load float, float addrspace(2)* @_Z13positive_zero.MTL_FC_INIT_0_f, align 4, !tbaa !175 + store float %1, float addrspace(2)* @_ZL13positive_zero, align 4, !tbaa !175 + %2 = load float, float addrspace(2)* @_Z13negative_zero.MTL_FC_INIT_1_f, align 4, !tbaa !175 + store float %2, float addrspace(2)* @_ZL13negative_zero, align 4, !tbaa !175 ret void } @@ -869,27 +947,28 @@ attributes #10 = { convergent mustprogress nounwind willreturn "approx-func-fp-m attributes #11 = { mustprogress nofree nosync nounwind "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" } attributes #12 = { convergent mustprogress nounwind "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "no-builtins" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" } attributes #13 = { argmemonly mustprogress nofree norecurse nosync nounwind "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "no-builtins" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" } -attributes #14 = { convergent mustprogress nounwind willreturn } -attributes #15 = { argmemonly mustprogress nounwind willreturn } -attributes #16 = { inaccessiblememonly mustprogress nofree nounwind readonly willreturn } -attributes #17 = { argmemonly mustprogress nofree nounwind readonly willreturn } -attributes #18 = { argmemonly convergent mustprogress nofree nounwind readonly willreturn } -attributes #19 = { mustprogress nofree norecurse nosync nounwind willreturn writeonly "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "no-builtins" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" } -attributes #20 = { nounwind readnone willreturn } -attributes #21 = { convergent nounwind willreturn } -attributes #22 = { argmemonly nounwind willreturn } -attributes #23 = { inaccessiblememonly nounwind readonly willreturn } -attributes #24 = { argmemonly nounwind readonly willreturn } -attributes #25 = { argmemonly convergent nounwind readonly willreturn } +attributes #14 = { argmemonly mustprogress nofree norecurse nosync nounwind willreturn "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "no-builtins" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" } +attributes #15 = { convergent mustprogress nounwind willreturn } +attributes #16 = { argmemonly mustprogress nounwind willreturn } +attributes #17 = { inaccessiblememonly mustprogress nofree nounwind readonly willreturn } +attributes #18 = { argmemonly mustprogress nofree nounwind readonly willreturn } +attributes #19 = { argmemonly convergent mustprogress nofree nounwind readonly willreturn } +attributes #20 = { mustprogress nofree norecurse nosync nounwind willreturn writeonly "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "no-builtins" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" } +attributes #21 = { nounwind readnone willreturn } +attributes #22 = { convergent nounwind willreturn } +attributes #23 = { argmemonly nounwind willreturn } +attributes #24 = { inaccessiblememonly nounwind readonly willreturn } +attributes #25 = { argmemonly nounwind readonly willreturn } +attributes #26 = { argmemonly convergent nounwind readonly willreturn } !llvm.module.flags = !{!0, !1, !2, !3, !4, !5, !6, !7, !8} -!air.kernel = !{!9, !15, !21, !25, !30, !40, !44, !52, !57, !63, !67, !70, !74, !79, !84, !86, !89, !90, !117, !120, !123, !128, !136} -!air.compile_options = !{!139, !140, !141} -!air.function_constants = !{!142, !143} -!air.sampler_states = !{!144} -!llvm.ident = !{!145} -!air.version = !{!146} -!air.language_version = !{!147} +!air.kernel = !{!9, !15, !21, !25, !30, !40, !44, !52, !57, !63, !67, !70, !74, !79, !84, !86, !89, !90, !117, !120, !123, !128, !136, !139} +!air.compile_options = !{!141, !142, !143} +!air.function_constants = !{!144, !145} +!air.sampler_states = !{!146} +!llvm.ident = !{!147} +!air.version = !{!148} +!air.language_version = !{!149} !0 = !{i32 2, !"SDK Version", [2 x i32] [i32 27, i32 2]} !1 = !{i32 1, !"wchar_size", i32 4} @@ -1030,265 +1109,277 @@ attributes #25 = { argmemonly convergent nounwind readonly willreturn } !136 = !{void (<4 x i32> addrspace(2)*, i32 addrspace(1)*, i32)* @constant_reads, !10, !137} !137 = !{!138, !28, !14} !138 = !{i32 0, !"air.buffer", !"air.location_index", i32 0, i32 1, !"air.read", !"air.address_space", i32 2, !"air.arg_type_size", i32 16, !"air.arg_type_align_size", i32 16, !"air.arg_type_name", !"uint4", !"air.arg_name", !"table"} -!139 = !{!"air.compile.denorms_disable"} -!140 = !{!"air.compile.fast_math_enable"} -!141 = !{!"air.compile.framebuffer_fetch_enable"} -!142 = !{float addrspace(2)* @_Z13positive_zero.MTL_FC_INIT_0_f, !"float", !"positive_zero", i32 0} -!143 = !{float addrspace(2)* @_Z13negative_zero.MTL_FC_INIT_1_f, !"float", !"negative_zero", i32 1} -!144 = !{!"air.sampler_state", [2 x i64] addrspace(2)* @__air_sampler_state} -!145 = !{!"Apple metal version 32023.922 (metalfe-32023.922.4)"} -!146 = !{i32 2, i32 8, i32 0} -!147 = !{!"Metal", i32 4, i32 0, i32 0} -!148 = !{!149, !149, i64 0} -!149 = !{!"omnipotent char", !150, i64 0} -!150 = !{!"Simple C++ TBAA"} -!151 = !{!152} -!152 = distinct !{!152, !153, !"air-alias-scope-arg(0)"} -!153 = distinct !{!153, !"air-alias-scopes(copy_words)"} -!154 = !{!155} -!155 = distinct !{!155, !153, !"air-alias-scope-arg(1)"} +!139 = !{void (<4 x float> addrspace(1)*, float addrspace(1)*, <2 x i32> addrspace(2)*, i32)* @row_tail, !10, !140} +!140 = !{!17, !47, !32, !20} +!141 = !{!"air.compile.denorms_disable"} +!142 = !{!"air.compile.fast_math_enable"} +!143 = !{!"air.compile.framebuffer_fetch_enable"} +!144 = !{float addrspace(2)* @_Z13positive_zero.MTL_FC_INIT_0_f, !"float", !"positive_zero", i32 0} +!145 = !{float addrspace(2)* @_Z13negative_zero.MTL_FC_INIT_1_f, !"float", !"negative_zero", i32 1} +!146 = !{!"air.sampler_state", [2 x i64] addrspace(2)* @__air_sampler_state} +!147 = !{!"Apple metal version 32023.922 (metalfe-32023.922.4)"} +!148 = !{i32 2, i32 8, i32 0} +!149 = !{!"Metal", i32 4, i32 0, i32 0} +!150 = !{!151, !151, i64 0} +!151 = !{!"omnipotent char", !152, i64 0} +!152 = !{!"Simple C++ TBAA"} +!153 = !{!154} +!154 = distinct !{!154, !155, !"air-alias-scope-arg(0)"} +!155 = distinct !{!155, !"air-alias-scopes(copy_words)"} !156 = !{!157} -!157 = distinct !{!157, !158, !"air-alias-scope-arg(0)"} -!158 = distinct !{!158, !"air-alias-scopes(scale_offset)"} -!159 = !{!160, !161} -!160 = distinct !{!160, !158, !"air-alias-scope-arg(1)"} -!161 = distinct !{!161, !158, !"air-alias-scope-arg(2)"} -!162 = !{!161} -!163 = !{!157, !160} -!164 = !{!160} -!165 = !{!157, !161} -!166 = !{!167, !167, i64 0} -!167 = !{!"int", !149, i64 0} -!168 = !{!169} -!169 = distinct !{!169, !170, !"air-alias-scope-arg(1)"} -!170 = distinct !{!170, !"air-alias-scopes(fma_chains)"} -!171 = !{!172} -!172 = distinct !{!172, !170, !"air-alias-scope-arg(0)"} -!173 = !{!174, !174, i64 0} -!174 = !{!"float", !149, i64 0} -!175 = distinct !{!175, !176} -!176 = !{!"llvm.loop.mustprogress"} -!177 = !{!178} -!178 = distinct !{!178, !179, !"air-alias-scope-arg(0)"} -!179 = distinct !{!179, !"air-alias-scopes(block_scan)"} -!180 = !{!181} -!181 = distinct !{!181, !179, !"air-alias-scope-arg(1)"} -!182 = distinct !{!182, !176} -!183 = !{!184} -!184 = distinct !{!184, !185, !"air-alias-scope-arg(2)"} -!185 = distinct !{!185, !"air-alias-scopes(reduce_sum)"} -!186 = !{!187, !188} -!187 = distinct !{!187, !185, !"air-alias-scope-arg(0)"} -!188 = distinct !{!188, !185, !"air-alias-scope-arg(1)"} -!189 = !{!187} -!190 = !{!188, !184} -!191 = distinct !{!191, !176} -!192 = distinct !{!192, !176} -!193 = !{!188} -!194 = !{!187, !184} -!195 = !{!196} -!196 = distinct !{!196, !197, !"air-alias-scope-arg(2)"} -!197 = distinct !{!197, !"air-alias-scopes(binomial3x3)"} -!198 = !{!199, !200} -!199 = distinct !{!199, !197, !"air-alias-scope-arg(0)"} -!200 = distinct !{!200, !197, !"air-alias-scope-arg(1)"} -!201 = !{!200} -!202 = !{!199, !196} -!203 = distinct !{!203, !176} -!204 = !{!199} -!205 = !{!200, !196} -!206 = distinct !{!206, !176} -!207 = !{!208} -!208 = distinct !{!208, !209, !"air-alias-scope-arg(2)"} -!209 = distinct !{!209, !"air-alias-scopes(row_cells)"} -!210 = !{!211, !212, !213, !214} -!211 = distinct !{!211, !209, !"air-alias-scope-arg(0)"} -!212 = distinct !{!212, !209, !"air-alias-scope-arg(1)"} -!213 = distinct !{!213, !209, !"air-alias-scope-arg(3)"} -!214 = distinct !{!214, !209, !"air-alias-scope-arg(4)"} -!215 = !{!213} -!216 = !{!211, !212, !208, !214} -!217 = !{!214} -!218 = !{!211, !212, !208, !213} -!219 = !{!211} -!220 = !{!212, !208, !213, !214} -!221 = !{!212} -!222 = !{!211, !208, !213, !214} -!223 = !{!224} -!224 = distinct !{!224, !225, !"air-alias-scope-arg(2)"} -!225 = distinct !{!225, !"air-alias-scopes(row_cells_uint)"} -!226 = !{!227, !228, !229, !230} -!227 = distinct !{!227, !225, !"air-alias-scope-arg(0)"} -!228 = distinct !{!228, !225, !"air-alias-scope-arg(1)"} -!229 = distinct !{!229, !225, !"air-alias-scope-arg(3)"} -!230 = distinct !{!230, !225, !"air-alias-scope-arg(4)"} -!231 = !{!229} -!232 = !{!227, !228, !224, !230} -!233 = !{!230} -!234 = !{!227, !228, !224, !229} -!235 = !{!227} -!236 = !{!228, !224, !229, !230} -!237 = !{!228} -!238 = !{!227, !224, !229, !230} -!239 = !{!240} -!240 = distinct !{!240, !241, !"air-alias-scope-arg(0)"} -!241 = distinct !{!241, !"air-alias-scopes(row_barrier)"} -!242 = !{!243} -!243 = distinct !{!243, !241, !"air-alias-scope-arg(1)"} +!157 = distinct !{!157, !155, !"air-alias-scope-arg(1)"} +!158 = !{!159} +!159 = distinct !{!159, !160, !"air-alias-scope-arg(0)"} +!160 = distinct !{!160, !"air-alias-scopes(scale_offset)"} +!161 = !{!162, !163} +!162 = distinct !{!162, !160, !"air-alias-scope-arg(1)"} +!163 = distinct !{!163, !160, !"air-alias-scope-arg(2)"} +!164 = !{!163} +!165 = !{!159, !162} +!166 = !{!162} +!167 = !{!159, !163} +!168 = !{!169, !169, i64 0} +!169 = !{!"int", !151, i64 0} +!170 = !{!171} +!171 = distinct !{!171, !172, !"air-alias-scope-arg(1)"} +!172 = distinct !{!172, !"air-alias-scopes(fma_chains)"} +!173 = !{!174} +!174 = distinct !{!174, !172, !"air-alias-scope-arg(0)"} +!175 = !{!176, !176, i64 0} +!176 = !{!"float", !151, i64 0} +!177 = distinct !{!177, !178} +!178 = !{!"llvm.loop.mustprogress"} +!179 = !{!180} +!180 = distinct !{!180, !181, !"air-alias-scope-arg(0)"} +!181 = distinct !{!181, !"air-alias-scopes(block_scan)"} +!182 = !{!183} +!183 = distinct !{!183, !181, !"air-alias-scope-arg(1)"} +!184 = distinct !{!184, !178} +!185 = !{!186} +!186 = distinct !{!186, !187, !"air-alias-scope-arg(2)"} +!187 = distinct !{!187, !"air-alias-scopes(reduce_sum)"} +!188 = !{!189, !190} +!189 = distinct !{!189, !187, !"air-alias-scope-arg(0)"} +!190 = distinct !{!190, !187, !"air-alias-scope-arg(1)"} +!191 = !{!189} +!192 = !{!190, !186} +!193 = distinct !{!193, !178} +!194 = distinct !{!194, !178} +!195 = !{!190} +!196 = !{!189, !186} +!197 = !{!198} +!198 = distinct !{!198, !199, !"air-alias-scope-arg(2)"} +!199 = distinct !{!199, !"air-alias-scopes(binomial3x3)"} +!200 = !{!201, !202} +!201 = distinct !{!201, !199, !"air-alias-scope-arg(0)"} +!202 = distinct !{!202, !199, !"air-alias-scope-arg(1)"} +!203 = !{!202} +!204 = !{!201, !198} +!205 = distinct !{!205, !178} +!206 = !{!201} +!207 = !{!202, !198} +!208 = distinct !{!208, !178} +!209 = !{!210} +!210 = distinct !{!210, !211, !"air-alias-scope-arg(2)"} +!211 = distinct !{!211, !"air-alias-scopes(row_cells)"} +!212 = !{!213, !214, !215, !216} +!213 = distinct !{!213, !211, !"air-alias-scope-arg(0)"} +!214 = distinct !{!214, !211, !"air-alias-scope-arg(1)"} +!215 = distinct !{!215, !211, !"air-alias-scope-arg(3)"} +!216 = distinct !{!216, !211, !"air-alias-scope-arg(4)"} +!217 = !{!215} +!218 = !{!213, !214, !210, !216} +!219 = !{!216} +!220 = !{!213, !214, !210, !215} +!221 = !{!213} +!222 = !{!214, !210, !215, !216} +!223 = !{!214} +!224 = !{!213, !210, !215, !216} +!225 = !{!226} +!226 = distinct !{!226, !227, !"air-alias-scope-arg(2)"} +!227 = distinct !{!227, !"air-alias-scopes(row_cells_uint)"} +!228 = !{!229, !230, !231, !232} +!229 = distinct !{!229, !227, !"air-alias-scope-arg(0)"} +!230 = distinct !{!230, !227, !"air-alias-scope-arg(1)"} +!231 = distinct !{!231, !227, !"air-alias-scope-arg(3)"} +!232 = distinct !{!232, !227, !"air-alias-scope-arg(4)"} +!233 = !{!231} +!234 = !{!229, !230, !226, !232} +!235 = !{!232} +!236 = !{!229, !230, !226, !231} +!237 = !{!229} +!238 = !{!230, !226, !231, !232} +!239 = !{!230} +!240 = !{!229, !226, !231, !232} +!241 = !{!242} +!242 = distinct !{!242, !243, !"air-alias-scope-arg(0)"} +!243 = distinct !{!243, !"air-alias-scopes(row_barrier)"} !244 = !{!245} -!245 = distinct !{!245, !246, !"air-alias-scope-arg(0)"} -!246 = distinct !{!246, !"air-alias-scopes(lcg_step)"} -!247 = !{!248} -!248 = distinct !{!248, !246, !"air-alias-scope-arg(1)"} +!245 = distinct !{!245, !243, !"air-alias-scope-arg(1)"} +!246 = !{!247} +!247 = distinct !{!247, !248, !"air-alias-scope-arg(0)"} +!248 = distinct !{!248, !"air-alias-scopes(lcg_step)"} !249 = !{!250} -!250 = distinct !{!250, !251, !"air-alias-scope-arg(1)"} -!251 = distinct !{!251, !"air-alias-scopes(narrow_mix)"} -!252 = !{!253} -!253 = distinct !{!253, !251, !"air-alias-scope-arg(0)"} -!254 = distinct !{!254, !176} -!255 = !{!256} -!256 = distinct !{!256, !257, !"air-alias-scope-arg(1)"} -!257 = distinct !{!257, !"air-alias-scopes(texels_in)"} -!258 = !{!259, !260} -!259 = distinct !{!259, !257, !"air-alias-scope-arg(0)"} -!260 = distinct !{!260, !257, !"air-alias-scope-textures"} -!261 = !{!259} -!262 = !{!256, !260} -!263 = !{!260} -!264 = !{!259, !256} -!265 = !{!266} -!266 = distinct !{!266, !267, !"air-alias-scope-arg(2)"} -!267 = distinct !{!267, !"air-alias-scopes(texels_out)"} -!268 = !{!269, !270} -!269 = distinct !{!269, !267, !"air-alias-scope-textures"} -!270 = distinct !{!270, !267, !"air-alias-scope-arg(1)"} -!271 = !{!270} -!272 = !{!269, !266} -!273 = !{!274} -!274 = distinct !{!274, !275, !"air-alias-scope-textures"} -!275 = distinct !{!275, !"air-alias-scopes(sample_down)"} -!276 = !{!277} -!277 = distinct !{!277, !275, !"air-alias-scope-samplers"} -!278 = !{!274, !277} -!279 = !{!280} -!280 = distinct !{!280, !281, !"air-alias-scope-textures"} -!281 = distinct !{!281, !"air-alias-scopes(sample_up)"} -!282 = !{!283} -!283 = distinct !{!283, !284, !"air-alias-scope-textures"} -!284 = distinct !{!284, !"air-alias-scopes(sample_down_layers)"} -!285 = !{!286} -!286 = distinct !{!286, !284, !"air-alias-scope-samplers"} -!287 = !{!283, !286} -!288 = !{!289} -!289 = distinct !{!289, !290, !"air-alias-scope-textures"} -!290 = distinct !{!290, !"air-alias-scopes(sample_down_distinct)"} -!291 = !{!292} -!292 = distinct !{!292, !290, !"air-alias-scope-samplers"} -!293 = !{!289, !292} -!294 = !{!295} -!295 = distinct !{!295, !296, !"air-alias-scope-arg(0)"} -!296 = distinct !{!296, !"air-alias-scopes(wide_bindings)"} -!297 = !{!298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!298 = distinct !{!298, !296, !"air-alias-scope-arg(1)"} -!299 = distinct !{!299, !296, !"air-alias-scope-arg(2)"} -!300 = distinct !{!300, !296, !"air-alias-scope-arg(3)"} -!301 = distinct !{!301, !296, !"air-alias-scope-arg(4)"} -!302 = distinct !{!302, !296, !"air-alias-scope-arg(5)"} -!303 = distinct !{!303, !296, !"air-alias-scope-arg(6)"} -!304 = distinct !{!304, !296, !"air-alias-scope-arg(7)"} -!305 = distinct !{!305, !296, !"air-alias-scope-arg(8)"} -!306 = distinct !{!306, !296, !"air-alias-scope-arg(9)"} -!307 = distinct !{!307, !296, !"air-alias-scope-arg(10)"} -!308 = distinct !{!308, !296, !"air-alias-scope-arg(11)"} -!309 = distinct !{!309, !296, !"air-alias-scope-arg(12)"} -!310 = distinct !{!310, !296, !"air-alias-scope-arg(13)"} -!311 = distinct !{!311, !296, !"air-alias-scope-arg(14)"} -!312 = distinct !{!312, !296, !"air-alias-scope-arg(15)"} -!313 = distinct !{!313, !296, !"air-alias-scope-arg(16)"} -!314 = distinct !{!314, !296, !"air-alias-scope-arg(17)"} -!315 = distinct !{!315, !296, !"air-alias-scope-arg(18)"} -!316 = distinct !{!316, !296, !"air-alias-scope-arg(19)"} -!317 = distinct !{!317, !296, !"air-alias-scope-arg(20)"} -!318 = distinct !{!318, !296, !"air-alias-scope-arg(21)"} -!319 = distinct !{!319, !296, !"air-alias-scope-arg(22)"} -!320 = distinct !{!320, !296, !"air-alias-scope-arg(23)"} -!321 = !{!298} -!322 = !{!295, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!323 = !{!299} -!324 = !{!295, !298, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!325 = !{!300} -!326 = !{!295, !298, !299, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!327 = !{!301} -!328 = !{!295, !298, !299, !300, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!329 = !{!302} -!330 = !{!295, !298, !299, !300, !301, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!331 = !{!303} -!332 = !{!295, !298, !299, !300, !301, !302, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!333 = !{!304} -!334 = !{!295, !298, !299, !300, !301, !302, !303, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!335 = !{!305} -!336 = !{!295, !298, !299, !300, !301, !302, !303, !304, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!337 = !{!306} -!338 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!339 = !{!307} -!340 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!341 = !{!308} -!342 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!343 = !{!309} -!344 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!345 = !{!310} -!346 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!347 = !{!311} -!348 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!349 = !{!312} -!350 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !313, !314, !315, !316, !317, !318, !319, !320} -!351 = !{!313} -!352 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !314, !315, !316, !317, !318, !319, !320} -!353 = !{!314} -!354 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !315, !316, !317, !318, !319, !320} -!355 = !{!315} -!356 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !316, !317, !318, !319, !320} -!357 = !{!316} -!358 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !317, !318, !319, !320} -!359 = !{!317} -!360 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !318, !319, !320} -!361 = !{!318} -!362 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !319, !320} -!363 = !{!319} -!364 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !320} -!365 = !{!320} -!366 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319} -!367 = !{!368} -!368 = distinct !{!368, !369, !"air-alias-scope-arg(1)"} -!369 = distinct !{!369, !"air-alias-scopes(wave_store)"} -!370 = !{!371} -!371 = distinct !{!371, !369, !"air-alias-scope-arg(0)"} +!250 = distinct !{!250, !248, !"air-alias-scope-arg(1)"} +!251 = !{!252} +!252 = distinct !{!252, !253, !"air-alias-scope-arg(1)"} +!253 = distinct !{!253, !"air-alias-scopes(narrow_mix)"} +!254 = !{!255} +!255 = distinct !{!255, !253, !"air-alias-scope-arg(0)"} +!256 = distinct !{!256, !178} +!257 = !{!258} +!258 = distinct !{!258, !259, !"air-alias-scope-arg(1)"} +!259 = distinct !{!259, !"air-alias-scopes(texels_in)"} +!260 = !{!261, !262} +!261 = distinct !{!261, !259, !"air-alias-scope-arg(0)"} +!262 = distinct !{!262, !259, !"air-alias-scope-textures"} +!263 = !{!261} +!264 = !{!258, !262} +!265 = !{!262} +!266 = !{!261, !258} +!267 = !{!268} +!268 = distinct !{!268, !269, !"air-alias-scope-arg(2)"} +!269 = distinct !{!269, !"air-alias-scopes(texels_out)"} +!270 = !{!271, !272} +!271 = distinct !{!271, !269, !"air-alias-scope-textures"} +!272 = distinct !{!272, !269, !"air-alias-scope-arg(1)"} +!273 = !{!272} +!274 = !{!271, !268} +!275 = !{!276} +!276 = distinct !{!276, !277, !"air-alias-scope-textures"} +!277 = distinct !{!277, !"air-alias-scopes(sample_down)"} +!278 = !{!279} +!279 = distinct !{!279, !277, !"air-alias-scope-samplers"} +!280 = !{!276, !279} +!281 = !{!282} +!282 = distinct !{!282, !283, !"air-alias-scope-textures"} +!283 = distinct !{!283, !"air-alias-scopes(sample_up)"} +!284 = !{!285} +!285 = distinct !{!285, !286, !"air-alias-scope-textures"} +!286 = distinct !{!286, !"air-alias-scopes(sample_down_layers)"} +!287 = !{!288} +!288 = distinct !{!288, !286, !"air-alias-scope-samplers"} +!289 = !{!285, !288} +!290 = !{!291} +!291 = distinct !{!291, !292, !"air-alias-scope-textures"} +!292 = distinct !{!292, !"air-alias-scopes(sample_down_distinct)"} +!293 = !{!294} +!294 = distinct !{!294, !292, !"air-alias-scope-samplers"} +!295 = !{!291, !294} +!296 = !{!297} +!297 = distinct !{!297, !298, !"air-alias-scope-arg(0)"} +!298 = distinct !{!298, !"air-alias-scopes(wide_bindings)"} +!299 = !{!300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!300 = distinct !{!300, !298, !"air-alias-scope-arg(1)"} +!301 = distinct !{!301, !298, !"air-alias-scope-arg(2)"} +!302 = distinct !{!302, !298, !"air-alias-scope-arg(3)"} +!303 = distinct !{!303, !298, !"air-alias-scope-arg(4)"} +!304 = distinct !{!304, !298, !"air-alias-scope-arg(5)"} +!305 = distinct !{!305, !298, !"air-alias-scope-arg(6)"} +!306 = distinct !{!306, !298, !"air-alias-scope-arg(7)"} +!307 = distinct !{!307, !298, !"air-alias-scope-arg(8)"} +!308 = distinct !{!308, !298, !"air-alias-scope-arg(9)"} +!309 = distinct !{!309, !298, !"air-alias-scope-arg(10)"} +!310 = distinct !{!310, !298, !"air-alias-scope-arg(11)"} +!311 = distinct !{!311, !298, !"air-alias-scope-arg(12)"} +!312 = distinct !{!312, !298, !"air-alias-scope-arg(13)"} +!313 = distinct !{!313, !298, !"air-alias-scope-arg(14)"} +!314 = distinct !{!314, !298, !"air-alias-scope-arg(15)"} +!315 = distinct !{!315, !298, !"air-alias-scope-arg(16)"} +!316 = distinct !{!316, !298, !"air-alias-scope-arg(17)"} +!317 = distinct !{!317, !298, !"air-alias-scope-arg(18)"} +!318 = distinct !{!318, !298, !"air-alias-scope-arg(19)"} +!319 = distinct !{!319, !298, !"air-alias-scope-arg(20)"} +!320 = distinct !{!320, !298, !"air-alias-scope-arg(21)"} +!321 = distinct !{!321, !298, !"air-alias-scope-arg(22)"} +!322 = distinct !{!322, !298, !"air-alias-scope-arg(23)"} +!323 = !{!300} +!324 = !{!297, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!325 = !{!301} +!326 = !{!297, !300, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!327 = !{!302} +!328 = !{!297, !300, !301, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!329 = !{!303} +!330 = !{!297, !300, !301, !302, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!331 = !{!304} +!332 = !{!297, !300, !301, !302, !303, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!333 = !{!305} +!334 = !{!297, !300, !301, !302, !303, !304, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!335 = !{!306} +!336 = !{!297, !300, !301, !302, !303, !304, !305, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!337 = !{!307} +!338 = !{!297, !300, !301, !302, !303, !304, !305, !306, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!339 = !{!308} +!340 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!341 = !{!309} +!342 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!343 = !{!310} +!344 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!345 = !{!311} +!346 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!347 = !{!312} +!348 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!349 = !{!313} +!350 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!351 = !{!314} +!352 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !315, !316, !317, !318, !319, !320, !321, !322} +!353 = !{!315} +!354 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !316, !317, !318, !319, !320, !321, !322} +!355 = !{!316} +!356 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !317, !318, !319, !320, !321, !322} +!357 = !{!317} +!358 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !318, !319, !320, !321, !322} +!359 = !{!318} +!360 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !319, !320, !321, !322} +!361 = !{!319} +!362 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !320, !321, !322} +!363 = !{!320} +!364 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !321, !322} +!365 = !{!321} +!366 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !322} +!367 = !{!322} +!368 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321} +!369 = !{!370} +!370 = distinct !{!370, !371, !"air-alias-scope-arg(1)"} +!371 = distinct !{!371, !"air-alias-scopes(wave_store)"} !372 = !{!373} -!373 = distinct !{!373, !374, !"air-alias-scope-arg(1)"} -!374 = distinct !{!374, !"air-alias-scopes(signed_zero_products)"} -!375 = !{!376} -!376 = distinct !{!376, !374, !"air-alias-scope-arg(0)"} -!377 = distinct !{!377, !176} -!378 = !{!379} -!379 = distinct !{!379, !380, !"air-alias-scope-arg(0)"} -!380 = distinct !{!380, !"air-alias-scopes(vote_loop)"} -!381 = !{!382} -!382 = distinct !{!382, !380, !"air-alias-scope-arg(1)"} -!383 = distinct !{!383, !176} -!384 = !{!385} -!385 = distinct !{!385, !386, !"air-alias-scope-arg(0)"} -!386 = distinct !{!386, !"air-alias-scopes(group_sums)"} -!387 = !{!388, !389} -!388 = distinct !{!388, !386, !"air-alias-scope-arg(1)"} -!389 = distinct !{!389, !386, !"air-alias-scope-arg(2)"} -!390 = !{!389} -!391 = !{!385, !388} -!392 = distinct !{!392, !176} -!393 = !{!388} -!394 = !{!385, !389} -!395 = !{!396} -!396 = distinct !{!396, !397, !"air-alias-scope-arg(1)"} -!397 = distinct !{!397, !"air-alias-scopes(constant_reads)"} -!398 = !{!399} -!399 = distinct !{!399, !397, !"air-alias-scope-arg(0)"} -!400 = distinct !{!400, !176} +!373 = distinct !{!373, !371, !"air-alias-scope-arg(0)"} +!374 = !{!375} +!375 = distinct !{!375, !376, !"air-alias-scope-arg(1)"} +!376 = distinct !{!376, !"air-alias-scopes(signed_zero_products)"} +!377 = !{!378} +!378 = distinct !{!378, !376, !"air-alias-scope-arg(0)"} +!379 = distinct !{!379, !178} +!380 = !{!381} +!381 = distinct !{!381, !382, !"air-alias-scope-arg(0)"} +!382 = distinct !{!382, !"air-alias-scopes(vote_loop)"} +!383 = !{!384} +!384 = distinct !{!384, !382, !"air-alias-scope-arg(1)"} +!385 = distinct !{!385, !178} +!386 = !{!387} +!387 = distinct !{!387, !388, !"air-alias-scope-arg(0)"} +!388 = distinct !{!388, !"air-alias-scopes(group_sums)"} +!389 = !{!390, !391} +!390 = distinct !{!390, !388, !"air-alias-scope-arg(1)"} +!391 = distinct !{!391, !388, !"air-alias-scope-arg(2)"} +!392 = !{!391} +!393 = !{!387, !390} +!394 = distinct !{!394, !178} +!395 = !{!390} +!396 = !{!387, !391} +!397 = !{!398} +!398 = distinct !{!398, !399, !"air-alias-scope-arg(1)"} +!399 = distinct !{!399, !"air-alias-scopes(constant_reads)"} +!400 = !{!401} +!401 = distinct !{!401, !399, !"air-alias-scope-arg(0)"} +!402 = distinct !{!402, !178} +!403 = !{!404} +!404 = distinct !{!404, !405, !"air-alias-scope-arg(2)"} +!405 = distinct !{!405, !"air-alias-scopes(row_tail)"} +!406 = !{!407, !408} +!407 = distinct !{!407, !405, !"air-alias-scope-arg(0)"} +!408 = distinct !{!408, !405, !"air-alias-scope-arg(1)"} +!409 = !{!407} +!410 = !{!408, !404} +!411 = !{!408} +!412 = !{!407, !404} diff --git a/crates/metal2vulkan-validation/fixtures/public/harness/workloads.ll b/crates/metal2vulkan-validation/fixtures/public/harness/workloads.ll index fa5c1f05f..11aa75395 100644 --- a/crates/metal2vulkan-validation/fixtures/public/harness/workloads.ll +++ b/crates/metal2vulkan-validation/fixtures/public/harness/workloads.ll @@ -17,9 +17,9 @@ target triple = "air64_v28-apple-macosx26.0.0" define void @copy_words(ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %0, ptr addrspace(1) noundef writeonly captures(none) "air-buffer-no-alias" %1, i32 noundef %2) local_unnamed_addr #0 { %4 = zext i32 %2 to i64 %5 = getelementptr inbounds <4 x i32>, ptr addrspace(1) %0, i64 %4 - %6 = load <4 x i32>, ptr addrspace(1) %5, align 16, !tbaa !148, !alias.scope !151, !noalias !154 + %6 = load <4 x i32>, ptr addrspace(1) %5, align 16, !tbaa !150, !alias.scope !153, !noalias !156 %7 = getelementptr inbounds <4 x i32>, ptr addrspace(1) %1, i64 %4 - store <4 x i32> %6, ptr addrspace(1) %7, align 16, !tbaa !148, !alias.scope !154, !noalias !151 + store <4 x i32> %6, ptr addrspace(1) %7, align 16, !tbaa !150, !alias.scope !156, !noalias !153 ret void } @@ -27,27 +27,27 @@ define void @copy_words(ptr addrspace(1) noundef readonly captures(none) "air-bu define void @scale_offset(ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %0, ptr addrspace(1) noundef writeonly captures(none) "air-buffer-no-alias" %1, ptr addrspace(2) noundef readonly align 8 captures(none) dereferenceable(8) "air-buffer-no-alias" %2, i32 noundef %3) local_unnamed_addr #0 { %5 = zext i32 %3 to i64 %6 = getelementptr inbounds <4 x float>, ptr addrspace(1) %0, i64 %5 - %7 = load <4 x float>, ptr addrspace(1) %6, align 16, !tbaa !148, !alias.scope !156, !noalias !159 - %8 = load <2 x float>, ptr addrspace(2) %2, align 8, !alias.scope !162, !noalias !163 + %7 = load <4 x float>, ptr addrspace(1) %6, align 16, !tbaa !150, !alias.scope !158, !noalias !161 + %8 = load <2 x float>, ptr addrspace(2) %2, align 8, !alias.scope !164, !noalias !165 %9 = shufflevector <2 x float> %8, <2 x float> undef, <4 x i32> zeroinitializer %10 = fmul fast <4 x float> %9, %7 %11 = shufflevector <2 x float> %8, <2 x float> undef, <4 x i32> %12 = fadd fast <4 x float> %10, %11 %13 = getelementptr inbounds <4 x float>, ptr addrspace(1) %1, i64 %5 - store <4 x float> %12, ptr addrspace(1) %13, align 16, !tbaa !148, !alias.scope !164, !noalias !165 + store <4 x float> %12, ptr addrspace(1) %13, align 16, !tbaa !150, !alias.scope !166, !noalias !167 ret void } ; Function Attrs: mustprogress nofree nosync nounwind memory(argmem: readwrite) define void @fma_chains(ptr addrspace(1) noundef writeonly captures(none) "air-buffer-no-alias" %0, ptr addrspace(2) noundef readonly align 4 captures(none) dereferenceable(4) "air-buffer-no-alias" %1, i32 noundef %2) local_unnamed_addr #1 { %4 = and i32 %2, 31 - %5 = tail call fast float @air.convert.f.f32.u.i32(i32 %4) #20 + %5 = tail call fast float @air.convert.f.f32.u.i32(i32 %4) #21 %6 = fmul fast float %5, 3.125000e-02 %7 = lshr i32 %2, 5 %8 = and i32 %7, 31 - %9 = tail call fast float @air.convert.f.f32.u.i32(i32 %8) #20 + %9 = tail call fast float @air.convert.f.f32.u.i32(i32 %8) #21 %10 = fmul fast float %9, 3.125000e-02 - %11 = load i32, ptr addrspace(2) %1, align 4, !tbaa !166, !alias.scope !168, !noalias !171 + %11 = load i32, ptr addrspace(2) %1, align 4, !tbaa !168, !alias.scope !170, !noalias !173 %12 = icmp eq i32 %11, 0 br i1 %12, label %13, label %19 @@ -57,7 +57,7 @@ define void @fma_chains(ptr addrspace(1) noundef writeonly captures(none) "air-b %16 = fadd fast float %15, %14 %17 = zext i32 %2 to i64 %18 = getelementptr inbounds float, ptr addrspace(1) %0, i64 %17 - store float %16, ptr addrspace(1) %18, align 4, !tbaa !173, !alias.scope !171, !noalias !168 + store float %16, ptr addrspace(1) %18, align 4, !tbaa !175, !alias.scope !173, !noalias !170 ret void 19: ; preds = %19, %3 @@ -65,12 +65,12 @@ define void @fma_chains(ptr addrspace(1) noundef writeonly captures(none) "air-b %21 = phi float [ %26, %19 ], [ %10, %3 ] %22 = phi float [ %24, %19 ], [ %6, %3 ] %23 = fmul fast float %21, 6.250000e-02 - %24 = tail call fast float @air.fma.f32(float %22, float 9.375000e-01, float %23) #20 + %24 = tail call fast float @air.fma.f32(float %22, float 9.375000e-01, float %23) #21 %25 = fmul fast float %24, 1.250000e-01 - %26 = tail call fast float @air.fma.f32(float %21, float 8.750000e-01, float %25) #20 + %26 = tail call fast float @air.fma.f32(float %21, float 8.750000e-01, float %25) #21 %27 = add nuw i32 %20, 1 %28 = icmp eq i32 %27, %11 - br i1 %28, label %13, label %19, !llvm.loop !175 + br i1 %28, label %13, label %19, !llvm.loop !177 } ; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) @@ -80,16 +80,16 @@ declare float @air.convert.f.f32.u.i32(i32) local_unnamed_addr #2 define void @block_scan(ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %0, ptr addrspace(1) noundef writeonly captures(none) "air-buffer-no-alias" %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 { %5 = zext i32 %2 to i64 %6 = getelementptr inbounds i32, ptr addrspace(1) %0, i64 %5 - %7 = load i32, ptr addrspace(1) %6, align 4, !tbaa !166, !alias.scope !177, !noalias !180 + %7 = load i32, ptr addrspace(1) %6, align 4, !tbaa !168, !alias.scope !179, !noalias !182 %8 = zext i32 %3 to i64 %9 = getelementptr inbounds [256 x i32], ptr addrspace(3) @_ZZ10block_scanPU9MTLdeviceKjPU9MTLdevicejjjE4sums, i64 0, i64 %8 - store i32 %7, ptr addrspace(3) %9, align 4, !tbaa !166 - tail call void @air.wg.barrier(i32 2, i32 1) #21 + store i32 %7, ptr addrspace(3) %9, align 4, !tbaa !168 + tail call void @air.wg.barrier(i32 2, i32 1) #22 br label %12 10: ; preds = %21 %11 = getelementptr inbounds i32, ptr addrspace(1) %1, i64 %5 - store i32 %23, ptr addrspace(1) %11, align 4, !tbaa !166, !alias.scope !180, !noalias !177 + store i32 %23, ptr addrspace(1) %11, align 4, !tbaa !168, !alias.scope !182, !noalias !179 ret void 12: ; preds = %21, %4 @@ -102,35 +102,35 @@ define void @block_scan(ptr addrspace(1) noundef readonly captures(none) "air-bu %17 = sub i32 %3, %14 %18 = zext i32 %17 to i64 %19 = getelementptr inbounds [256 x i32], ptr addrspace(3) @_ZZ10block_scanPU9MTLdeviceKjPU9MTLdevicejjjE4sums, i64 0, i64 %18 - %20 = load i32, ptr addrspace(3) %19, align 4, !tbaa !166 + %20 = load i32, ptr addrspace(3) %19, align 4, !tbaa !168 br label %21 21: ; preds = %16, %12 %22 = phi i32 [ %20, %16 ], [ 0, %12 ] - tail call void @air.wg.barrier(i32 2, i32 1) #21 + tail call void @air.wg.barrier(i32 2, i32 1) #22 %23 = add i32 %22, %13 - store i32 %23, ptr addrspace(3) %9, align 4, !tbaa !166 - tail call void @air.wg.barrier(i32 2, i32 1) #21 + store i32 %23, ptr addrspace(3) %9, align 4, !tbaa !168 + tail call void @air.wg.barrier(i32 2, i32 1) #22 %24 = shl nuw nsw i32 %14, 1 %25 = icmp ult i32 %14, 128 - br i1 %25, label %12, label %10, !llvm.loop !182 + br i1 %25, label %12, label %10, !llvm.loop !184 } ; Function Attrs: convergent mustprogress nounwind define void @reduce_sum(ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %0, ptr addrspace(1) noundef writeonly captures(none) "air-buffer-no-alias" %1, ptr addrspace(2) noundef readonly align 8 captures(none) dereferenceable(8) "air-buffer-no-alias" %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) local_unnamed_addr #3 { - %11 = load <2 x i32>, ptr addrspace(2) %2, align 8, !alias.scope !183, !noalias !186 + %11 = load <2 x i32>, ptr addrspace(2) %2, align 8, !alias.scope !185, !noalias !188 %12 = extractelement <2 x i32> %11, i64 1 %13 = mul i32 %12, %3 %14 = add i32 %13, %12 %15 = extractelement <2 x i32> %11, i64 0 - %16 = tail call i32 @air.min.u.i32(i32 %14, i32 %15) #20 + %16 = tail call i32 @air.min.u.i32(i32 %14, i32 %15) #21 %17 = add i32 %13, %4 %18 = icmp ult i32 %17, %16 br i1 %18, label %23, label %19 19: ; preds = %23, %10 %20 = phi i32 [ 0, %10 ], [ %29, %23 ] - %21 = tail call i32 @air.simd_sum.u.i32(i32 %20) #21 + %21 = tail call i32 @air.simd_sum.u.i32(i32 %20) #22 %22 = icmp eq i32 %6, 0 br i1 %22, label %32, label %35 @@ -139,20 +139,20 @@ define void @reduce_sum(ptr addrspace(1) noundef readonly captures(none) "air-bu %25 = phi i32 [ %29, %23 ], [ 0, %10 ] %26 = zext i32 %24 to i64 %27 = getelementptr inbounds i32, ptr addrspace(1) %0, i64 %26 - %28 = load i32, ptr addrspace(1) %27, align 4, !tbaa !166, !alias.scope !189, !noalias !190 + %28 = load i32, ptr addrspace(1) %27, align 4, !tbaa !168, !alias.scope !191, !noalias !192 %29 = add i32 %28, %25 %30 = add i32 %24, %5 %31 = icmp ult i32 %30, %16 - br i1 %31, label %23, label %19, !llvm.loop !191 + br i1 %31, label %23, label %19, !llvm.loop !193 32: ; preds = %19 %33 = zext i32 %7 to i64 %34 = getelementptr inbounds [256 x i32], ptr addrspace(3) @_ZZ10reduce_sumPU9MTLdeviceKjPU9MTLdevicejRU11MTLconstantKDv2_jjjjjjjjE7partial, i64 0, i64 %33 - store i32 %21, ptr addrspace(3) %34, align 4, !tbaa !166 + store i32 %21, ptr addrspace(3) %34, align 4, !tbaa !168 br label %35 35: ; preds = %32, %19 - tail call void @air.wg.barrier(i32 2, i32 1) #21 + tail call void @air.wg.barrier(i32 2, i32 1) #22 %36 = icmp eq i32 %7, 0 br i1 %36, label %37, label %54 @@ -162,7 +162,7 @@ define void @reduce_sum(ptr addrspace(1) noundef readonly captures(none) "air-bu 39: ; preds = %42, %37 %40 = phi i32 [ 0, %37 ], [ %48, %42 ] - %41 = tail call i32 @air.simd_sum.u.i32(i32 %40) #21 + %41 = tail call i32 @air.simd_sum.u.i32(i32 %40) #22 br i1 %22, label %51, label %54 42: ; preds = %42, %37 @@ -170,16 +170,16 @@ define void @reduce_sum(ptr addrspace(1) noundef readonly captures(none) "air-bu %44 = phi i32 [ %48, %42 ], [ 0, %37 ] %45 = zext i32 %43 to i64 %46 = getelementptr inbounds [256 x i32], ptr addrspace(3) @_ZZ10reduce_sumPU9MTLdeviceKjPU9MTLdevicejRU11MTLconstantKDv2_jjjjjjjjE7partial, i64 0, i64 %45 - %47 = load i32, ptr addrspace(3) %46, align 4, !tbaa !166 + %47 = load i32, ptr addrspace(3) %46, align 4, !tbaa !168 %48 = add i32 %47, %44 %49 = add i32 %43, %9 %50 = icmp ult i32 %49, %8 - br i1 %50, label %42, label %39, !llvm.loop !192 + br i1 %50, label %42, label %39, !llvm.loop !194 51: ; preds = %39 %52 = zext i32 %3 to i64 %53 = getelementptr inbounds i32, ptr addrspace(1) %1, i64 %52 - store i32 %41, ptr addrspace(1) %53, align 4, !tbaa !166, !alias.scope !193, !noalias !194 + store i32 %41, ptr addrspace(1) %53, align 4, !tbaa !168, !alias.scope !195, !noalias !196 br label %54 54: ; preds = %51, %39, %35 @@ -189,7 +189,7 @@ define void @reduce_sum(ptr addrspace(1) noundef readonly captures(none) "air-bu ; Function Attrs: mustprogress nofree nosync nounwind memory(argmem: readwrite) define void @binomial3x3(ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %0, ptr addrspace(1) noundef writeonly captures(none) "air-buffer-no-alias" %1, ptr addrspace(2) noundef readonly align 8 captures(none) dereferenceable(8) "air-buffer-no-alias" %2, <2 x i32> noundef %3) local_unnamed_addr #4 { %5 = extractelement <2 x i32> %3, i64 1 - %6 = load <2 x i32>, ptr addrspace(2) %2, align 8, !alias.scope !195, !noalias !198 + %6 = load <2 x i32>, ptr addrspace(2) %2, align 8, !alias.scope !197, !noalias !200 %7 = extractelement <2 x i32> %6, i64 1 %8 = add nsw i32 %7, -1 %9 = extractelement <2 x i32> %3, i64 0 @@ -203,14 +203,14 @@ define void @binomial3x3(ptr addrspace(1) noundef readonly captures(none) "air-b %15 = add i32 %14, %9 %16 = zext i32 %15 to i64 %17 = getelementptr inbounds <4 x float>, ptr addrspace(1) %1, i64 %16 - store <4 x float> %13, ptr addrspace(1) %17, align 16, !tbaa !148, !alias.scope !201, !noalias !202 + store <4 x float> %13, ptr addrspace(1) %17, align 16, !tbaa !150, !alias.scope !203, !noalias !204 ret void 18: ; preds = %26, %4 %19 = phi <4 x float> [ zeroinitializer, %4 ], [ %44, %26 ] %20 = phi i32 [ -1, %4 ], [ %27, %26 ] %21 = add nsw i32 %20, %5 - %22 = tail call i32 @air.clamp.s.i32(i32 %21, i32 0, i32 %8) #20 + %22 = tail call i32 @air.clamp.s.i32(i32 %21, i32 0, i32 %8) #21 %23 = icmp eq i32 %20, 0 %24 = select fast i1 %23, float 2.000000e+00, float 1.000000e+00 %25 = mul i32 %22, %10 @@ -219,63 +219,63 @@ define void @binomial3x3(ptr addrspace(1) noundef readonly captures(none) "air-b 26: ; preds = %29 %27 = add nsw i32 %20, 1 %28 = icmp eq i32 %27, 2 - br i1 %28, label %12, label %18, !llvm.loop !203 + br i1 %28, label %12, label %18, !llvm.loop !205 29: ; preds = %29, %18 %30 = phi <4 x float> [ %19, %18 ], [ %44, %29 ] %31 = phi i32 [ -1, %18 ], [ %45, %29 ] %32 = add nsw i32 %31, %9 - %33 = tail call i32 @air.clamp.s.i32(i32 %32, i32 0, i32 %11) #20 + %33 = tail call i32 @air.clamp.s.i32(i32 %32, i32 0, i32 %11) #21 %34 = icmp eq i32 %31, 0 %35 = select fast i1 %34, float 2.000000e+00, float 1.000000e+00 %36 = fmul fast float %35, %24 %37 = add i32 %33, %25 %38 = zext i32 %37 to i64 %39 = getelementptr inbounds <4 x float>, ptr addrspace(1) %0, i64 %38 - %40 = load <4 x float>, ptr addrspace(1) %39, align 16, !tbaa !148, !alias.scope !204, !noalias !205 + %40 = load <4 x float>, ptr addrspace(1) %39, align 16, !tbaa !150, !alias.scope !206, !noalias !207 %41 = insertelement <4 x float> poison, float %36, i64 0 %42 = shufflevector <4 x float> %41, <4 x float> poison, <4 x i32> zeroinitializer %43 = fmul fast <4 x float> %42, %40 %44 = fadd fast <4 x float> %43, %30 %45 = add nsw i32 %31, 1 %46 = icmp eq i32 %45, 2 - br i1 %46, label %26, label %29, !llvm.loop !206 + br i1 %46, label %26, label %29, !llvm.loop !208 } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) define void @row_cells(ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %0, ptr addrspace(1) noundef writeonly captures(none) "air-buffer-no-alias" %1, ptr addrspace(2) noundef readonly align 4 captures(none) dereferenceable(4) "air-buffer-no-alias" %2, ptr addrspace(2) noundef readonly align 4 captures(none) dereferenceable(4) "air-buffer-no-alias" %3, ptr addrspace(2) noundef readonly align 4 captures(none) dereferenceable(4) "air-buffer-no-alias" %4, <2 x i32> noundef %5) local_unnamed_addr #5 { %7 = extractelement <2 x i32> %5, i64 0 %8 = extractelement <2 x i32> %5, i64 1 - %9 = load i32, ptr addrspace(2) %2, align 4, !tbaa !166, !alias.scope !207, !noalias !210 + %9 = load i32, ptr addrspace(2) %2, align 4, !tbaa !168, !alias.scope !209, !noalias !212 %10 = icmp slt i32 %7, %9 - %11 = load i32, ptr addrspace(2) %3, align 4, !alias.scope !215, !noalias !216 + %11 = load i32, ptr addrspace(2) %3, align 4, !alias.scope !217, !noalias !218 %12 = icmp slt i32 %8, %11 %13 = select i1 %10, i1 %12, i1 false br i1 %13, label %14, label %34 14: ; preds = %6 - %15 = load i32, ptr addrspace(2) %4, align 4, !tbaa !166, !alias.scope !217, !noalias !218 + %15 = load i32, ptr addrspace(2) %4, align 4, !tbaa !168, !alias.scope !219, !noalias !220 %16 = mul nsw i32 %15, %8 %17 = add nsw i32 %16, %7 %18 = sext i32 %17 to i64 %19 = getelementptr inbounds float, ptr addrspace(1) %0, i64 %18 - %20 = load float, ptr addrspace(1) %19, align 4, !tbaa !173, !alias.scope !219, !noalias !220 + %20 = load float, ptr addrspace(1) %19, align 4, !tbaa !175, !alias.scope !221, !noalias !222 %21 = mul nsw i32 %9, %8 %22 = add nsw i32 %21, %7 %23 = mul nsw i32 %22, 3 %24 = sext i32 %23 to i64 %25 = getelementptr inbounds float, ptr addrspace(1) %1, i64 %24 - store float %20, ptr addrspace(1) %25, align 4, !tbaa !173, !alias.scope !221, !noalias !222 + store float %20, ptr addrspace(1) %25, align 4, !tbaa !175, !alias.scope !223, !noalias !224 %26 = fmul fast float %20, 2.000000e+00 %27 = add nsw i32 %23, 1 %28 = sext i32 %27 to i64 %29 = getelementptr inbounds float, ptr addrspace(1) %1, i64 %28 - store float %26, ptr addrspace(1) %29, align 4, !tbaa !173, !alias.scope !221, !noalias !222 + store float %26, ptr addrspace(1) %29, align 4, !tbaa !175, !alias.scope !223, !noalias !224 %30 = fadd fast float %20, 1.000000e+00 %31 = add nsw i32 %23, 2 %32 = sext i32 %31 to i64 %33 = getelementptr inbounds float, ptr addrspace(1) %1, i64 %32 - store float %30, ptr addrspace(1) %33, align 4, !tbaa !173, !alias.scope !221, !noalias !222 + store float %30, ptr addrspace(1) %33, align 4, !tbaa !175, !alias.scope !223, !noalias !224 br label %34 34: ; preds = %14, %6 @@ -286,36 +286,36 @@ define void @row_cells(ptr addrspace(1) noundef readonly captures(none) "air-buf define void @row_cells_uint(ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %0, ptr addrspace(1) noundef writeonly captures(none) "air-buffer-no-alias" %1, ptr addrspace(2) noundef readonly align 4 captures(none) dereferenceable(4) "air-buffer-no-alias" %2, ptr addrspace(2) noundef readonly align 4 captures(none) dereferenceable(4) "air-buffer-no-alias" %3, ptr addrspace(2) noundef readonly align 4 captures(none) dereferenceable(4) "air-buffer-no-alias" %4, <2 x i32> noundef %5) local_unnamed_addr #5 { %7 = extractelement <2 x i32> %5, i64 0 %8 = extractelement <2 x i32> %5, i64 1 - %9 = load i32, ptr addrspace(2) %2, align 4, !tbaa !166, !alias.scope !223, !noalias !226 + %9 = load i32, ptr addrspace(2) %2, align 4, !tbaa !168, !alias.scope !225, !noalias !228 %10 = icmp ult i32 %7, %9 - %11 = load i32, ptr addrspace(2) %3, align 4, !alias.scope !231, !noalias !232 + %11 = load i32, ptr addrspace(2) %3, align 4, !alias.scope !233, !noalias !234 %12 = icmp ult i32 %8, %11 %13 = select i1 %10, i1 %12, i1 false br i1 %13, label %14, label %34 14: ; preds = %6 - %15 = load i32, ptr addrspace(2) %4, align 4, !tbaa !166, !alias.scope !233, !noalias !234 + %15 = load i32, ptr addrspace(2) %4, align 4, !tbaa !168, !alias.scope !235, !noalias !236 %16 = mul i32 %15, %8 %17 = add i32 %16, %7 %18 = zext i32 %17 to i64 %19 = getelementptr inbounds float, ptr addrspace(1) %0, i64 %18 - %20 = load float, ptr addrspace(1) %19, align 4, !tbaa !173, !alias.scope !235, !noalias !236 + %20 = load float, ptr addrspace(1) %19, align 4, !tbaa !175, !alias.scope !237, !noalias !238 %21 = mul i32 %9, %8 %22 = add i32 %21, %7 %23 = mul i32 %22, 3 %24 = zext i32 %23 to i64 %25 = getelementptr inbounds float, ptr addrspace(1) %1, i64 %24 - store float %20, ptr addrspace(1) %25, align 4, !tbaa !173, !alias.scope !237, !noalias !238 + store float %20, ptr addrspace(1) %25, align 4, !tbaa !175, !alias.scope !239, !noalias !240 %26 = fmul fast float %20, 2.000000e+00 %27 = add i32 %23, 1 %28 = zext i32 %27 to i64 %29 = getelementptr inbounds float, ptr addrspace(1) %1, i64 %28 - store float %26, ptr addrspace(1) %29, align 4, !tbaa !173, !alias.scope !237, !noalias !238 + store float %26, ptr addrspace(1) %29, align 4, !tbaa !175, !alias.scope !239, !noalias !240 %30 = fadd fast float %20, 1.000000e+00 %31 = add i32 %23, 2 %32 = zext i32 %31 to i64 %33 = getelementptr inbounds float, ptr addrspace(1) %1, i64 %32 - store float %30, ptr addrspace(1) %33, align 4, !tbaa !173, !alias.scope !237, !noalias !238 + store float %30, ptr addrspace(1) %33, align 4, !tbaa !175, !alias.scope !239, !noalias !240 br label %34 34: ; preds = %14, %6 @@ -334,8 +334,8 @@ define void @row_barrier(ptr addrspace(1) noundef captures(none) "air-buffer-no- %12 = add i32 %11, 1 %13 = zext i32 %9 to i64 %14 = getelementptr inbounds i32, ptr addrspace(1) %0, i64 %13 - store i32 %12, ptr addrspace(1) %14, align 4, !tbaa !166, !alias.scope !239, !noalias !242 - tail call void @air.wg.barrier(i32 1, i32 1) #21 + store i32 %12, ptr addrspace(1) %14, align 4, !tbaa !168, !alias.scope !241, !noalias !244 + tail call void @air.wg.barrier(i32 1, i32 1) #22 %15 = xor i32 %5, 1 %16 = extractelement <2 x i32> %3, i64 1 %17 = icmp ult i32 %15, %16 @@ -347,8 +347,8 @@ define void @row_barrier(ptr addrspace(1) noundef captures(none) "air-buffer-no- %21 = add i32 %20, %8 %22 = zext i32 %21 to i64 %23 = getelementptr inbounds i32, ptr addrspace(1) %0, i64 %22 - %24 = load i32, ptr addrspace(1) %23, align 4, !tbaa !166, !alias.scope !239, !noalias !242 - store i32 %24, ptr addrspace(1) %19, align 4, !tbaa !166, !alias.scope !242, !noalias !239 + %24 = load i32, ptr addrspace(1) %23, align 4, !tbaa !168, !alias.scope !241, !noalias !244 + store i32 %24, ptr addrspace(1) %19, align 4, !tbaa !168, !alias.scope !244, !noalias !241 br label %25 25: ; preds = %18, %4 @@ -359,11 +359,11 @@ define void @row_barrier(ptr addrspace(1) noundef captures(none) "air-buffer-no- define void @lcg_step(ptr addrspace(1) noundef captures(none) "air-buffer-no-alias" %0, ptr addrspace(2) noundef readonly align 4 captures(none) dereferenceable(4) "air-buffer-no-alias" %1, i32 noundef %2) local_unnamed_addr #0 { %4 = zext i32 %2 to i64 %5 = getelementptr inbounds i32, ptr addrspace(1) %0, i64 %4 - %6 = load i32, ptr addrspace(1) %5, align 4, !tbaa !166, !alias.scope !244, !noalias !247 + %6 = load i32, ptr addrspace(1) %5, align 4, !tbaa !168, !alias.scope !246, !noalias !249 %7 = mul i32 %6, 1664525 - %8 = load i32, ptr addrspace(2) %1, align 4, !tbaa !166, !alias.scope !247, !noalias !244 + %8 = load i32, ptr addrspace(2) %1, align 4, !tbaa !168, !alias.scope !249, !noalias !246 %9 = add i32 %7, %8 - store i32 %9, ptr addrspace(1) %5, align 4, !tbaa !166, !alias.scope !244, !noalias !247 + store i32 %9, ptr addrspace(1) %5, align 4, !tbaa !168, !alias.scope !246, !noalias !249 ret void } @@ -374,7 +374,7 @@ define void @narrow_mix(ptr addrspace(1) noundef writeonly captures(none) "air-b %6 = xor i16 %4, 23130 %7 = trunc i32 %2 to i8 %8 = lshr i32 %2, 3 - %9 = load i32, ptr addrspace(2) %1, align 4, !tbaa !166, !alias.scope !249, !noalias !252 + %9 = load i32, ptr addrspace(2) %1, align 4, !tbaa !168, !alias.scope !251, !noalias !254 %10 = icmp eq i32 %9, 0 br i1 %10, label %11, label %27 @@ -394,7 +394,7 @@ define void @narrow_mix(ptr addrspace(1) noundef writeonly captures(none) "air-b %24 = xor i32 %21, %23 %25 = zext i32 %2 to i64 %26 = getelementptr inbounds i32, ptr addrspace(1) %0, i64 %25 - store i32 %24, ptr addrspace(1) %26, align 4, !tbaa !166, !alias.scope !252, !noalias !249 + store i32 %24, ptr addrspace(1) %26, align 4, !tbaa !168, !alias.scope !254, !noalias !251 ret void 27: ; preds = %27, %3 @@ -419,53 +419,53 @@ define void @narrow_mix(ptr addrspace(1) noundef writeonly captures(none) "air-b %46 = add nsw i32 %45, %42 %47 = add nuw i32 %28, 1 %48 = icmp eq i32 %47, %9 - br i1 %48, label %11, label %27, !llvm.loop !254 + br i1 %48, label %11, label %27, !llvm.loop !256 } ; Function Attrs: mustprogress nounwind willreturn define void @texels_in(ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %0, ptr addrspace(2) noundef readonly align 4 captures(none) dereferenceable(4) "air-buffer-no-alias" %1, ptr addrspace(1) %2, <2 x i32> noundef %3) local_unnamed_addr #8 { %5 = extractelement <2 x i32> %3, i64 1 - %6 = load i32, ptr addrspace(2) %1, align 4, !tbaa !166, !alias.scope !255, !noalias !258 + %6 = load i32, ptr addrspace(2) %1, align 4, !tbaa !168, !alias.scope !257, !noalias !260 %7 = mul i32 %6, %5 %8 = extractelement <2 x i32> %3, i64 0 %9 = add i32 %7, %8 %10 = zext i32 %9 to i64 %11 = getelementptr inbounds <4 x float>, ptr addrspace(1) %0, i64 %10 - %12 = load <4 x float>, ptr addrspace(1) %11, align 16, !tbaa !148, !alias.scope !261, !noalias !262 - tail call void @air.write_texture_2d.v4f32(ptr addrspace(1) captures(none) %2, <2 x i32> %3, <4 x float> %12, i32 0, i32 2) #22, !alias.scope !263, !noalias !264 + %12 = load <4 x float>, ptr addrspace(1) %11, align 16, !tbaa !150, !alias.scope !263, !noalias !264 + tail call void @air.write_texture_2d.v4f32(ptr addrspace(1) captures(none) %2, <2 x i32> %3, <4 x float> %12, i32 0, i32 2) #23, !alias.scope !265, !noalias !266 ret void } ; Function Attrs: mustprogress nofree nounwind willreturn define void @texels_out(ptr addrspace(1) readonly captures(none) %0, ptr addrspace(1) noundef writeonly captures(none) "air-buffer-no-alias" %1, ptr addrspace(2) noundef readonly align 4 captures(none) dereferenceable(4) "air-buffer-no-alias" %2, <2 x i32> noundef %3) local_unnamed_addr #9 { - %5 = tail call ptr addrspace(2) @air.get_read_sampler() #23 - %6 = tail call { <4 x float>, i8 } @air.read_texture_2d.v4f32(ptr addrspace(1) readonly captures(none) %0, ptr addrspace(2) %5, <2 x i32> %3, <2 x i32> zeroinitializer, i32 0, i32 1) #24 + %5 = tail call ptr addrspace(2) @air.get_read_sampler() #24 + %6 = tail call { <4 x float>, i8 } @air.read_texture_2d.v4f32(ptr addrspace(1) readonly captures(none) %0, ptr addrspace(2) %5, <2 x i32> %3, <2 x i32> zeroinitializer, i32 0, i32 1) #25 %7 = extractvalue { <4 x float>, i8 } %6, 0 %8 = extractelement <2 x i32> %3, i64 1 - %9 = load i32, ptr addrspace(2) %2, align 4, !tbaa !166, !alias.scope !265, !noalias !268 + %9 = load i32, ptr addrspace(2) %2, align 4, !tbaa !168, !alias.scope !267, !noalias !270 %10 = mul i32 %9, %8 %11 = extractelement <2 x i32> %3, i64 0 %12 = add i32 %10, %11 %13 = zext i32 %12 to i64 %14 = getelementptr inbounds <4 x float>, ptr addrspace(1) %1, i64 %13 - store <4 x float> %7, ptr addrspace(1) %14, align 16, !tbaa !148, !alias.scope !271, !noalias !272 + store <4 x float> %7, ptr addrspace(1) %14, align 16, !tbaa !150, !alias.scope !273, !noalias !274 ret void } ; Function Attrs: convergent mustprogress nounwind willreturn define void @sample_down(ptr addrspace(1) %0, ptr addrspace(1) %1, ptr addrspace(2) readonly captures(none) %2, <2 x i32> noundef %3) local_unnamed_addr #10 { - %5 = tail call i32 @air.get_width_texture_2d(ptr addrspace(1) readonly captures(none) %1, i32 0) #24, !alias.scope !273, !noalias !276 - %6 = tail call fast float @air.convert.f.f32.u.i32(i32 %5) #20 + %5 = tail call i32 @air.get_width_texture_2d(ptr addrspace(1) readonly captures(none) %1, i32 0) #25, !alias.scope !275, !noalias !278 + %6 = tail call fast float @air.convert.f.f32.u.i32(i32 %5) #21 %7 = insertelement <2 x float> undef, float %6, i64 0 - %8 = tail call i32 @air.get_height_texture_2d(ptr addrspace(1) readonly captures(none) %1, i32 0) #24, !alias.scope !273, !noalias !276 - %9 = tail call fast float @air.convert.f.f32.u.i32(i32 %8) #20 + %8 = tail call i32 @air.get_height_texture_2d(ptr addrspace(1) readonly captures(none) %1, i32 0) #25, !alias.scope !275, !noalias !278 + %9 = tail call fast float @air.convert.f.f32.u.i32(i32 %8) #21 %10 = insertelement <2 x float> %7, float %9, i64 1 - %11 = tail call fast <2 x float> @air.convert.f.v2f32.u.v2i32(<2 x i32> %3) #20 + %11 = tail call fast <2 x float> @air.convert.f.v2f32.u.v2i32(<2 x i32> %3) #21 %12 = fadd fast <2 x float> %11, splat (float 5.000000e-01) %13 = fdiv fast <2 x float> %12, %10 - %14 = tail call { <4 x float>, i8 } @air.sample_texture_2d.v4f32(ptr addrspace(1) readonly captures(none) %0, ptr addrspace(2) readonly captures(none) %2, <2 x float> %13, i1 true, <2 x i32> zeroinitializer, i1 false, float 0.000000e+00, float 0.000000e+00, i32 0) #25, !alias.scope !278 + %14 = tail call { <4 x float>, i8 } @air.sample_texture_2d.v4f32(ptr addrspace(1) readonly captures(none) %0, ptr addrspace(2) readonly captures(none) %2, <2 x float> %13, i1 true, <2 x i32> zeroinitializer, i1 false, float 0.000000e+00, float 0.000000e+00, i32 0) #26, !alias.scope !280 %15 = extractvalue { <4 x float>, i8 } %14, 0 - tail call void @air.write_texture_2d.v4f32(ptr addrspace(1) captures(none) %1, <2 x i32> %3, <4 x float> %15, i32 0, i32 2) #22, !alias.scope !273, !noalias !276 + tail call void @air.write_texture_2d.v4f32(ptr addrspace(1) captures(none) %1, <2 x i32> %3, <4 x float> %15, i32 0, i32 2) #23, !alias.scope !275, !noalias !278 ret void } @@ -474,35 +474,35 @@ declare <2 x float> @air.convert.f.v2f32.u.v2i32(<2 x i32>) local_unnamed_addr # ; Function Attrs: convergent mustprogress nounwind willreturn define void @sample_up(ptr addrspace(1) %0, ptr addrspace(1) %1, <2 x i32> noundef %2) local_unnamed_addr #10 { - %4 = tail call i32 @air.get_width_texture_2d(ptr addrspace(1) readonly captures(none) %1, i32 0) #24, !alias.scope !279 - %5 = tail call fast float @air.convert.f.f32.u.i32(i32 %4) #20 + %4 = tail call i32 @air.get_width_texture_2d(ptr addrspace(1) readonly captures(none) %1, i32 0) #25, !alias.scope !281 + %5 = tail call fast float @air.convert.f.f32.u.i32(i32 %4) #21 %6 = insertelement <2 x float> undef, float %5, i64 0 - %7 = tail call i32 @air.get_height_texture_2d(ptr addrspace(1) readonly captures(none) %1, i32 0) #24, !alias.scope !279 - %8 = tail call fast float @air.convert.f.f32.u.i32(i32 %7) #20 + %7 = tail call i32 @air.get_height_texture_2d(ptr addrspace(1) readonly captures(none) %1, i32 0) #25, !alias.scope !281 + %8 = tail call fast float @air.convert.f.f32.u.i32(i32 %7) #21 %9 = insertelement <2 x float> %6, float %8, i64 1 - %10 = tail call fast <2 x float> @air.convert.f.v2f32.u.v2i32(<2 x i32> %2) #20 + %10 = tail call fast <2 x float> @air.convert.f.v2f32.u.v2i32(<2 x i32> %2) #21 %11 = fadd fast <2 x float> %10, splat (float 5.000000e-01) %12 = fdiv fast <2 x float> %11, %9 - %13 = tail call { <4 x float>, i8 } @air.sample_texture_2d.v4f32(ptr addrspace(1) readonly captures(none) %0, ptr addrspace(2) readonly captures(none) @__air_sampler_state, <2 x float> %12, i1 true, <2 x i32> zeroinitializer, i1 false, float 0.000000e+00, float 0.000000e+00, i32 0) #25 + %13 = tail call { <4 x float>, i8 } @air.sample_texture_2d.v4f32(ptr addrspace(1) readonly captures(none) %0, ptr addrspace(2) readonly captures(none) @__air_sampler_state, <2 x float> %12, i1 true, <2 x i32> zeroinitializer, i1 false, float 0.000000e+00, float 0.000000e+00, i32 0) #26 %14 = extractvalue { <4 x float>, i8 } %13, 0 - tail call void @air.write_texture_2d.v4f32(ptr addrspace(1) captures(none) %1, <2 x i32> %2, <4 x float> %14, i32 0, i32 2) #22, !alias.scope !279 + tail call void @air.write_texture_2d.v4f32(ptr addrspace(1) captures(none) %1, <2 x i32> %2, <4 x float> %14, i32 0, i32 2) #23, !alias.scope !281 ret void } ; Function Attrs: convergent mustprogress nounwind willreturn define void @sample_down_layers(ptr addrspace(1) %0, ptr addrspace(1) %1, ptr addrspace(2) readonly captures(none) %2, <3 x i32> noundef %3) local_unnamed_addr #10 { - %5 = tail call i32 @air.get_height_texture_2d(ptr addrspace(1) readonly captures(none) %0, i32 0) #24, !alias.scope !282, !noalias !285 + %5 = tail call i32 @air.get_height_texture_2d(ptr addrspace(1) readonly captures(none) %0, i32 0) #25, !alias.scope !284, !noalias !287 %6 = lshr i32 %5, 1 - %7 = tail call i32 @air.get_width_texture_2d(ptr addrspace(1) readonly captures(none) %1, i32 0) #24, !alias.scope !282, !noalias !285 - %8 = tail call fast float @air.convert.f.f32.u.i32(i32 %7) #20 + %7 = tail call i32 @air.get_width_texture_2d(ptr addrspace(1) readonly captures(none) %1, i32 0) #25, !alias.scope !284, !noalias !287 + %8 = tail call fast float @air.convert.f.f32.u.i32(i32 %7) #21 %9 = insertelement <2 x float> undef, float %8, i64 0 - %10 = tail call fast float @air.convert.f.f32.u.i32(i32 %6) #20 + %10 = tail call fast float @air.convert.f.f32.u.i32(i32 %6) #21 %11 = insertelement <2 x float> %9, float %10, i64 1 %12 = shufflevector <3 x i32> %3, <3 x i32> poison, <2 x i32> - %13 = tail call fast <2 x float> @air.convert.f.v2f32.u.v2i32(<2 x i32> %12) #20 + %13 = tail call fast <2 x float> @air.convert.f.v2f32.u.v2i32(<2 x i32> %12) #21 %14 = fadd fast <2 x float> %13, splat (float 5.000000e-01) %15 = fdiv fast <2 x float> %14, %11 - %16 = tail call { <4 x float>, i8 } @air.sample_texture_2d.v4f32(ptr addrspace(1) readonly captures(none) %0, ptr addrspace(2) readonly captures(none) %2, <2 x float> %15, i1 true, <2 x i32> zeroinitializer, i1 false, float 0.000000e+00, float 0.000000e+00, i32 0) #25, !alias.scope !287 + %16 = tail call { <4 x float>, i8 } @air.sample_texture_2d.v4f32(ptr addrspace(1) readonly captures(none) %0, ptr addrspace(2) readonly captures(none) %2, <2 x float> %15, i1 true, <2 x i32> zeroinitializer, i1 false, float 0.000000e+00, float 0.000000e+00, i32 0) #26, !alias.scope !289 %17 = extractvalue { <4 x float>, i8 } %16, 0 %18 = extractelement <3 x i32> %3, i64 0 %19 = insertelement <2 x i32> undef, i32 %18, i64 0 @@ -511,17 +511,17 @@ define void @sample_down_layers(ptr addrspace(1) %0, ptr addrspace(1) %1, ptr ad %22 = mul i32 %6, %21 %23 = add i32 %22, %20 %24 = insertelement <2 x i32> %19, i32 %23, i64 1 - tail call void @air.write_texture_2d.v4f32(ptr addrspace(1) captures(none) %1, <2 x i32> %24, <4 x float> %17, i32 0, i32 2) #22, !alias.scope !282, !noalias !285 + tail call void @air.write_texture_2d.v4f32(ptr addrspace(1) captures(none) %1, <2 x i32> %24, <4 x float> %17, i32 0, i32 2) #23, !alias.scope !284, !noalias !287 ret void } ; Function Attrs: convergent mustprogress nounwind willreturn define void @sample_down_distinct(ptr addrspace(1) %0, ptr addrspace(1) %1, ptr addrspace(2) readonly captures(none) %2, <3 x i32> noundef %3) local_unnamed_addr #10 { - %5 = tail call i32 @air.get_width_texture_2d(ptr addrspace(1) readonly captures(none) %1, i32 0) #24, !alias.scope !288, !noalias !291 - %6 = tail call fast float @air.convert.f.f32.u.i32(i32 %5) #20 + %5 = tail call i32 @air.get_width_texture_2d(ptr addrspace(1) readonly captures(none) %1, i32 0) #25, !alias.scope !290, !noalias !293 + %6 = tail call fast float @air.convert.f.f32.u.i32(i32 %5) #21 %7 = insertelement <2 x float> undef, float %6, i64 0 - %8 = tail call i32 @air.get_height_texture_2d(ptr addrspace(1) readonly captures(none) %1, i32 0) #24, !alias.scope !288, !noalias !291 - %9 = tail call fast float @air.convert.f.f32.u.i32(i32 %8) #20 + %8 = tail call i32 @air.get_height_texture_2d(ptr addrspace(1) readonly captures(none) %1, i32 0) #25, !alias.scope !290, !noalias !293 + %9 = tail call fast float @air.convert.f.f32.u.i32(i32 %8) #21 %10 = insertelement <2 x float> %7, float %9, i64 1 %11 = extractelement <3 x i32> %3, i64 0 %12 = insertelement <2 x i32> undef, i32 %11, i64 0 @@ -530,12 +530,12 @@ define void @sample_down_distinct(ptr addrspace(1) %0, ptr addrspace(1) %1, ptr %15 = mul i32 %5, %14 %16 = add i32 %15, %13 %17 = insertelement <2 x i32> %12, i32 %16, i64 1 - %18 = tail call fast <2 x float> @air.convert.f.v2f32.u.v2i32(<2 x i32> %17) #20 + %18 = tail call fast <2 x float> @air.convert.f.v2f32.u.v2i32(<2 x i32> %17) #21 %19 = fadd fast <2 x float> %18, splat (float 5.000000e-01) %20 = fdiv fast <2 x float> %19, %10 - %21 = tail call { <4 x float>, i8 } @air.sample_texture_2d.v4f32(ptr addrspace(1) readonly captures(none) %0, ptr addrspace(2) readonly captures(none) %2, <2 x float> %20, i1 true, <2 x i32> zeroinitializer, i1 false, float 0.000000e+00, float 0.000000e+00, i32 0) #25, !alias.scope !293 + %21 = tail call { <4 x float>, i8 } @air.sample_texture_2d.v4f32(ptr addrspace(1) readonly captures(none) %0, ptr addrspace(2) readonly captures(none) %2, <2 x float> %20, i1 true, <2 x i32> zeroinitializer, i1 false, float 0.000000e+00, float 0.000000e+00, i32 0) #26, !alias.scope !295 %22 = extractvalue { <4 x float>, i8 } %21, 0 - tail call void @air.write_texture_2d.v4f32(ptr addrspace(1) captures(none) %1, <2 x i32> %17, <4 x float> %22, i32 0, i32 2) #22, !alias.scope !288, !noalias !291 + tail call void @air.write_texture_2d.v4f32(ptr addrspace(1) captures(none) %1, <2 x i32> %17, <4 x float> %22, i32 0, i32 2) #23, !alias.scope !290, !noalias !293 ret void } @@ -543,97 +543,97 @@ define void @sample_down_distinct(ptr addrspace(1) %0, ptr addrspace(1) %1, ptr define void @wide_bindings(ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %0, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %1, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %2, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %3, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %4, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %5, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %6, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %7, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %8, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %9, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %10, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %11, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %12, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %13, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %14, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %15, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %16, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %17, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %18, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %19, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %20, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %21, ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %22, ptr addrspace(1) noundef writeonly captures(none) "air-buffer-no-alias" %23, i32 noundef %24) local_unnamed_addr #0 { %26 = zext i32 %24 to i64 %27 = getelementptr inbounds i32, ptr addrspace(1) %0, i64 %26 - %28 = load i32, ptr addrspace(1) %27, align 4, !tbaa !166, !alias.scope !294, !noalias !297 + %28 = load i32, ptr addrspace(1) %27, align 4, !tbaa !168, !alias.scope !296, !noalias !299 %29 = mul i32 %28, 3 %30 = getelementptr inbounds i32, ptr addrspace(1) %1, i64 %26 - %31 = load i32, ptr addrspace(1) %30, align 4, !tbaa !166, !alias.scope !321, !noalias !322 + %31 = load i32, ptr addrspace(1) %30, align 4, !tbaa !168, !alias.scope !323, !noalias !324 %32 = add i32 %29, %31 %33 = mul i32 %32, 3 %34 = getelementptr inbounds i32, ptr addrspace(1) %2, i64 %26 - %35 = load i32, ptr addrspace(1) %34, align 4, !tbaa !166, !alias.scope !323, !noalias !324 + %35 = load i32, ptr addrspace(1) %34, align 4, !tbaa !168, !alias.scope !325, !noalias !326 %36 = add i32 %33, %35 %37 = mul i32 %36, 3 %38 = getelementptr inbounds i32, ptr addrspace(1) %3, i64 %26 - %39 = load i32, ptr addrspace(1) %38, align 4, !tbaa !166, !alias.scope !325, !noalias !326 + %39 = load i32, ptr addrspace(1) %38, align 4, !tbaa !168, !alias.scope !327, !noalias !328 %40 = add i32 %37, %39 %41 = mul i32 %40, 3 %42 = getelementptr inbounds i32, ptr addrspace(1) %4, i64 %26 - %43 = load i32, ptr addrspace(1) %42, align 4, !tbaa !166, !alias.scope !327, !noalias !328 + %43 = load i32, ptr addrspace(1) %42, align 4, !tbaa !168, !alias.scope !329, !noalias !330 %44 = add i32 %41, %43 %45 = mul i32 %44, 3 %46 = getelementptr inbounds i32, ptr addrspace(1) %5, i64 %26 - %47 = load i32, ptr addrspace(1) %46, align 4, !tbaa !166, !alias.scope !329, !noalias !330 + %47 = load i32, ptr addrspace(1) %46, align 4, !tbaa !168, !alias.scope !331, !noalias !332 %48 = add i32 %45, %47 %49 = mul i32 %48, 3 %50 = getelementptr inbounds i32, ptr addrspace(1) %6, i64 %26 - %51 = load i32, ptr addrspace(1) %50, align 4, !tbaa !166, !alias.scope !331, !noalias !332 + %51 = load i32, ptr addrspace(1) %50, align 4, !tbaa !168, !alias.scope !333, !noalias !334 %52 = add i32 %49, %51 %53 = mul i32 %52, 3 %54 = getelementptr inbounds i32, ptr addrspace(1) %7, i64 %26 - %55 = load i32, ptr addrspace(1) %54, align 4, !tbaa !166, !alias.scope !333, !noalias !334 + %55 = load i32, ptr addrspace(1) %54, align 4, !tbaa !168, !alias.scope !335, !noalias !336 %56 = add i32 %53, %55 %57 = mul i32 %56, 3 %58 = getelementptr inbounds i32, ptr addrspace(1) %8, i64 %26 - %59 = load i32, ptr addrspace(1) %58, align 4, !tbaa !166, !alias.scope !335, !noalias !336 + %59 = load i32, ptr addrspace(1) %58, align 4, !tbaa !168, !alias.scope !337, !noalias !338 %60 = add i32 %57, %59 %61 = mul i32 %60, 3 %62 = getelementptr inbounds i32, ptr addrspace(1) %9, i64 %26 - %63 = load i32, ptr addrspace(1) %62, align 4, !tbaa !166, !alias.scope !337, !noalias !338 + %63 = load i32, ptr addrspace(1) %62, align 4, !tbaa !168, !alias.scope !339, !noalias !340 %64 = add i32 %61, %63 %65 = mul i32 %64, 3 %66 = getelementptr inbounds i32, ptr addrspace(1) %10, i64 %26 - %67 = load i32, ptr addrspace(1) %66, align 4, !tbaa !166, !alias.scope !339, !noalias !340 + %67 = load i32, ptr addrspace(1) %66, align 4, !tbaa !168, !alias.scope !341, !noalias !342 %68 = add i32 %65, %67 %69 = mul i32 %68, 3 %70 = getelementptr inbounds i32, ptr addrspace(1) %11, i64 %26 - %71 = load i32, ptr addrspace(1) %70, align 4, !tbaa !166, !alias.scope !341, !noalias !342 + %71 = load i32, ptr addrspace(1) %70, align 4, !tbaa !168, !alias.scope !343, !noalias !344 %72 = add i32 %69, %71 %73 = mul i32 %72, 3 %74 = getelementptr inbounds i32, ptr addrspace(1) %12, i64 %26 - %75 = load i32, ptr addrspace(1) %74, align 4, !tbaa !166, !alias.scope !343, !noalias !344 + %75 = load i32, ptr addrspace(1) %74, align 4, !tbaa !168, !alias.scope !345, !noalias !346 %76 = add i32 %73, %75 %77 = mul i32 %76, 3 %78 = getelementptr inbounds i32, ptr addrspace(1) %13, i64 %26 - %79 = load i32, ptr addrspace(1) %78, align 4, !tbaa !166, !alias.scope !345, !noalias !346 + %79 = load i32, ptr addrspace(1) %78, align 4, !tbaa !168, !alias.scope !347, !noalias !348 %80 = add i32 %77, %79 %81 = mul i32 %80, 3 %82 = getelementptr inbounds i32, ptr addrspace(1) %14, i64 %26 - %83 = load i32, ptr addrspace(1) %82, align 4, !tbaa !166, !alias.scope !347, !noalias !348 + %83 = load i32, ptr addrspace(1) %82, align 4, !tbaa !168, !alias.scope !349, !noalias !350 %84 = add i32 %81, %83 %85 = mul i32 %84, 3 %86 = getelementptr inbounds i32, ptr addrspace(1) %15, i64 %26 - %87 = load i32, ptr addrspace(1) %86, align 4, !tbaa !166, !alias.scope !349, !noalias !350 + %87 = load i32, ptr addrspace(1) %86, align 4, !tbaa !168, !alias.scope !351, !noalias !352 %88 = add i32 %85, %87 %89 = mul i32 %88, 3 %90 = getelementptr inbounds i32, ptr addrspace(1) %16, i64 %26 - %91 = load i32, ptr addrspace(1) %90, align 4, !tbaa !166, !alias.scope !351, !noalias !352 + %91 = load i32, ptr addrspace(1) %90, align 4, !tbaa !168, !alias.scope !353, !noalias !354 %92 = add i32 %89, %91 %93 = mul i32 %92, 3 %94 = getelementptr inbounds i32, ptr addrspace(1) %17, i64 %26 - %95 = load i32, ptr addrspace(1) %94, align 4, !tbaa !166, !alias.scope !353, !noalias !354 + %95 = load i32, ptr addrspace(1) %94, align 4, !tbaa !168, !alias.scope !355, !noalias !356 %96 = add i32 %93, %95 %97 = mul i32 %96, 3 %98 = getelementptr inbounds i32, ptr addrspace(1) %18, i64 %26 - %99 = load i32, ptr addrspace(1) %98, align 4, !tbaa !166, !alias.scope !355, !noalias !356 + %99 = load i32, ptr addrspace(1) %98, align 4, !tbaa !168, !alias.scope !357, !noalias !358 %100 = add i32 %97, %99 %101 = mul i32 %100, 3 %102 = getelementptr inbounds i32, ptr addrspace(1) %19, i64 %26 - %103 = load i32, ptr addrspace(1) %102, align 4, !tbaa !166, !alias.scope !357, !noalias !358 + %103 = load i32, ptr addrspace(1) %102, align 4, !tbaa !168, !alias.scope !359, !noalias !360 %104 = add i32 %101, %103 %105 = mul i32 %104, 3 %106 = getelementptr inbounds i32, ptr addrspace(1) %20, i64 %26 - %107 = load i32, ptr addrspace(1) %106, align 4, !tbaa !166, !alias.scope !359, !noalias !360 + %107 = load i32, ptr addrspace(1) %106, align 4, !tbaa !168, !alias.scope !361, !noalias !362 %108 = add i32 %105, %107 %109 = mul i32 %108, 3 %110 = getelementptr inbounds i32, ptr addrspace(1) %21, i64 %26 - %111 = load i32, ptr addrspace(1) %110, align 4, !tbaa !166, !alias.scope !361, !noalias !362 + %111 = load i32, ptr addrspace(1) %110, align 4, !tbaa !168, !alias.scope !363, !noalias !364 %112 = add i32 %109, %111 %113 = mul i32 %112, 3 %114 = getelementptr inbounds i32, ptr addrspace(1) %22, i64 %26 - %115 = load i32, ptr addrspace(1) %114, align 4, !tbaa !166, !alias.scope !363, !noalias !364 + %115 = load i32, ptr addrspace(1) %114, align 4, !tbaa !168, !alias.scope !365, !noalias !366 %116 = add i32 %113, %115 %117 = getelementptr inbounds i32, ptr addrspace(1) %23, i64 %26 - store i32 %116, ptr addrspace(1) %117, align 4, !tbaa !166, !alias.scope !365, !noalias !366 + store i32 %116, ptr addrspace(1) %117, align 4, !tbaa !168, !alias.scope !367, !noalias !368 ret void } @@ -643,33 +643,33 @@ define void @wave_store(ptr addrspace(1) noundef writeonly captures(none) "air-b %5 = mul i32 %4, 5600 %6 = extractelement <2 x i32> %2, i64 0 %7 = add i32 %5, %6 - %8 = load i32, ptr addrspace(2) %1, align 4, !tbaa !166, !alias.scope !367, !noalias !370 + %8 = load i32, ptr addrspace(2) %1, align 4, !tbaa !168, !alias.scope !369, !noalias !372 %9 = add i32 %8, %7 %10 = zext i32 %7 to i64 %11 = getelementptr inbounds i32, ptr addrspace(1) %0, i64 %10 - store i32 %9, ptr addrspace(1) %11, align 4, !tbaa !166, !alias.scope !370, !noalias !367 + store i32 %9, ptr addrspace(1) %11, align 4, !tbaa !168, !alias.scope !372, !noalias !369 ret void } ; Function Attrs: mustprogress nofree nosync nounwind define void @signed_zero_products(ptr addrspace(1) noundef writeonly captures(none) "air-buffer-no-alias" %0, ptr addrspace(2) noundef readonly align 4 captures(none) dereferenceable(4) "air-buffer-no-alias" %1, i32 noundef %2) local_unnamed_addr #11 { %4 = and i32 %2, 63 - %5 = tail call float @air.convert.f.f32.u.i32(i32 %4) #20 + %5 = tail call float @air.convert.f.f32.u.i32(i32 %4) #21 %6 = lshr i32 %2, 6 %7 = and i32 %6, 63 - %8 = tail call float @air.convert.f.f32.u.i32(i32 %7) #20 + %8 = tail call float @air.convert.f.f32.u.i32(i32 %7) #21 %9 = fneg fast float %8 %10 = insertelement <4 x float> , float %5, i64 0 %11 = insertelement <4 x float> %10, float %9, i64 1 - %12 = load i32, ptr addrspace(2) %1, align 4, !tbaa !166, !alias.scope !372, !noalias !375 + %12 = load i32, ptr addrspace(2) %1, align 4, !tbaa !168, !alias.scope !374, !noalias !377 %13 = icmp eq i32 %12, 0 br i1 %13, label %21, label %14 14: ; preds = %3 - %15 = load float, ptr addrspace(2) @_ZL13positive_zero, align 4, !tbaa !173 + %15 = load float, ptr addrspace(2) @_ZL13positive_zero, align 4, !tbaa !175 %16 = insertelement <4 x float> poison, float %15, i64 0 %17 = shufflevector <4 x float> %16, <4 x float> poison, <4 x i32> zeroinitializer - %18 = load float, ptr addrspace(2) @_ZL13negative_zero, align 4, !tbaa !173 + %18 = load float, ptr addrspace(2) @_ZL13negative_zero, align 4, !tbaa !175 %19 = insertelement <4 x float> poison, float %18, i64 0 %20 = shufflevector <4 x float> %19, <4 x float> poison, <4 x i32> zeroinitializer br label %27 @@ -680,7 +680,7 @@ define void @signed_zero_products(ptr addrspace(1) noundef writeonly captures(no %24 = fadd <4 x float> %22, %23 %25 = zext i32 %2 to i64 %26 = getelementptr inbounds <4 x float>, ptr addrspace(1) %0, i64 %25 - store <4 x float> %24, ptr addrspace(1) %26, align 16, !tbaa !148, !alias.scope !375, !noalias !372 + store <4 x float> %24, ptr addrspace(1) %26, align 16, !tbaa !150, !alias.scope !377, !noalias !374 ret void 27: ; preds = %27, %14 @@ -691,17 +691,17 @@ define void @signed_zero_products(ptr addrspace(1) noundef writeonly captures(no %32 = fmul <4 x float> %20, %28 %33 = fadd <4 x float> %29, %31 %34 = fsub <4 x float> %33, %32 - %35 = tail call fast <4 x float> @air.fma.v4f32(<4 x float> %28, <4 x float> splat (float 9.687500e-01), <4 x float> splat (float 3.125000e-02)) #20 + %35 = tail call fast <4 x float> @air.fma.v4f32(<4 x float> %28, <4 x float> splat (float 9.687500e-01), <4 x float> splat (float 3.125000e-02)) #21 %36 = add nuw i32 %30, 1 %37 = icmp eq i32 %36, %12 - br i1 %37, label %21, label %27, !llvm.loop !377 + br i1 %37, label %21, label %27, !llvm.loop !379 } ; Function Attrs: convergent mustprogress nounwind define void @vote_loop(ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %0, ptr addrspace(1) noundef writeonly captures(none) "air-buffer-no-alias" %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #12 { %5 = zext i32 %2 to i64 %6 = getelementptr inbounds i32, ptr addrspace(1) %0, i64 %5 - %7 = load i32, ptr addrspace(1) %6, align 4, !tbaa !166, !alias.scope !378, !noalias !381 + %7 = load i32, ptr addrspace(1) %6, align 4, !tbaa !168, !alias.scope !380, !noalias !383 %8 = icmp eq i32 %7, 0 br i1 %8, label %9, label %14 @@ -710,7 +710,7 @@ define void @vote_loop(ptr addrspace(1) noundef readonly captures(none) "air-buf %11 = insertelement <2 x i32> undef, i32 %10, i64 0 %12 = insertelement <2 x i32> %11, i32 %3, i64 1 %13 = getelementptr inbounds <2 x i32>, ptr addrspace(1) %1, i64 %5 - store <2 x i32> %12, ptr addrspace(1) %13, align 8, !tbaa !148, !alias.scope !381, !noalias !378 + store <2 x i32> %12, ptr addrspace(1) %13, align 8, !tbaa !150, !alias.scope !383, !noalias !380 ret void 14: ; preds = %14, %4 @@ -718,21 +718,21 @@ define void @vote_loop(ptr addrspace(1) noundef readonly captures(none) "air-buf %16 = phi i32 [ %18, %14 ], [ %2, %4 ] %17 = mul i32 %16, 1664525 %18 = add i32 %17, 1013904223 - tail call void @air.simdgroup.barrier(i32 0, i32 4) #21 + tail call void @air.simdgroup.barrier(i32 0, i32 4) #22 %19 = add nuw i32 %15, 1 %20 = icmp eq i32 %19, %7 - br i1 %20, label %9, label %14, !llvm.loop !383 + br i1 %20, label %9, label %14, !llvm.loop !385 } ; Function Attrs: convergent mustprogress nounwind define void @group_sums(ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %0, ptr addrspace(1) noundef writeonly captures(none) "air-buffer-no-alias" %1, ptr addrspace(3) noundef captures(none) "air-buffer-no-alias" %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #12 { %8 = zext i32 %6 to i64 %9 = getelementptr inbounds i32, ptr addrspace(1) %0, i64 %8 - %10 = load i32, ptr addrspace(1) %9, align 4, !tbaa !166, !alias.scope !384, !noalias !387 + %10 = load i32, ptr addrspace(1) %9, align 4, !tbaa !168, !alias.scope !386, !noalias !389 %11 = zext i32 %3 to i64 %12 = getelementptr inbounds i32, ptr addrspace(3) %2, i64 %11 - store i32 %10, ptr addrspace(3) %12, align 4, !tbaa !166, !alias.scope !390, !noalias !391 - tail call void @air.wg.barrier(i32 2, i32 1) #21 + store i32 %10, ptr addrspace(3) %12, align 4, !tbaa !168, !alias.scope !392, !noalias !393 + tail call void @air.wg.barrier(i32 2, i32 1) #22 %13 = icmp ult i32 %4, 2 br i1 %13, label %14, label %16 @@ -750,22 +750,22 @@ define void @group_sums(ptr addrspace(1) noundef readonly captures(none) "air-bu %21 = add i32 %18, %3 %22 = zext i32 %21 to i64 %23 = getelementptr inbounds i32, ptr addrspace(3) %2, i64 %22 - %24 = load i32, ptr addrspace(3) %23, align 4, !tbaa !166, !alias.scope !390, !noalias !391 - %25 = load i32, ptr addrspace(3) %12, align 4, !tbaa !166, !alias.scope !390, !noalias !391 + %24 = load i32, ptr addrspace(3) %23, align 4, !tbaa !168, !alias.scope !392, !noalias !393 + %25 = load i32, ptr addrspace(3) %12, align 4, !tbaa !168, !alias.scope !392, !noalias !393 %26 = add i32 %25, %24 - store i32 %26, ptr addrspace(3) %12, align 4, !tbaa !166, !alias.scope !390, !noalias !391 + store i32 %26, ptr addrspace(3) %12, align 4, !tbaa !168, !alias.scope !392, !noalias !393 br label %27 27: ; preds = %20, %16 - tail call void @air.wg.barrier(i32 2, i32 1) #21 + tail call void @air.wg.barrier(i32 2, i32 1) #22 %28 = icmp ult i32 %17, 4 - br i1 %28, label %14, label %16, !llvm.loop !392 + br i1 %28, label %14, label %16, !llvm.loop !394 29: ; preds = %14 %30 = zext i32 %5 to i64 %31 = getelementptr inbounds i32, ptr addrspace(1) %1, i64 %30 - %32 = load i32, ptr addrspace(3) %2, align 4, !tbaa !166, !alias.scope !390, !noalias !391 - store i32 %32, ptr addrspace(1) %31, align 4, !tbaa !166, !alias.scope !393, !noalias !394 + %32 = load i32, ptr addrspace(3) %2, align 4, !tbaa !168, !alias.scope !392, !noalias !393 + store i32 %32, ptr addrspace(1) %31, align 4, !tbaa !168, !alias.scope !395, !noalias !396 br label %33 33: ; preds = %29, %14 @@ -779,7 +779,7 @@ define void @constant_reads(ptr addrspace(2) noundef readonly captures(none) "ai 4: ; preds = %7 %5 = zext i32 %2 to i64 %6 = getelementptr inbounds i32, ptr addrspace(1) %1, i64 %5 - store i32 %23, ptr addrspace(1) %6, align 4, !tbaa !166, !alias.scope !395, !noalias !398 + store i32 %23, ptr addrspace(1) %6, align 4, !tbaa !168, !alias.scope !397, !noalias !400 ret void 7: ; preds = %7, %3 @@ -790,7 +790,7 @@ define void @constant_reads(ptr addrspace(2) noundef readonly captures(none) "ai %12 = and i32 %11, 4095 %13 = zext i32 %12 to i64 %14 = getelementptr inbounds <4 x i32>, ptr addrspace(2) %0, i64 %13 - %15 = load <4 x i32>, ptr addrspace(2) %14, align 16, !tbaa !148, !alias.scope !398, !noalias !395 + %15 = load <4 x i32>, ptr addrspace(2) %14, align 16, !tbaa !150, !alias.scope !400, !noalias !397 %16 = extractelement <4 x i32> %15, i64 0 %17 = xor i32 %16, %8 %18 = extractelement <4 x i32> %15, i64 1 @@ -801,14 +801,92 @@ define void @constant_reads(ptr addrspace(2) noundef readonly captures(none) "ai %23 = add i32 %19, %22 %24 = add nuw nsw i32 %9, 1 %25 = icmp eq i32 %24, 64 - br i1 %25, label %4, label %7, !llvm.loop !400 + br i1 %25, label %4, label %7, !llvm.loop !402 +} + +; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) +define void @row_tail(ptr addrspace(1) noundef readonly captures(none) "air-buffer-no-alias" %0, ptr addrspace(1) noundef writeonly captures(none) "air-buffer-no-alias" %1, ptr addrspace(2) noundef readonly align 8 captures(none) dereferenceable(8) "air-buffer-no-alias" %2, i32 noundef %3) local_unnamed_addr #14 { + %5 = load <2 x i32>, ptr addrspace(2) %2, align 8, !alias.scope !403, !noalias !406 + %6 = extractelement <2 x i32> %5, i64 0 + %7 = extractelement <2 x i32> %5, i64 1 + %8 = urem i32 %3, %7 + %9 = shl i32 %8, 2 + %10 = icmp ult i32 %9, %6 + br i1 %10, label %11, label %56 + +11: ; preds = %4 + %12 = udiv i32 %3, %7 + %13 = zext i32 %3 to i64 + %14 = getelementptr inbounds <4 x float>, ptr addrspace(1) %0, i64 %13 + %15 = load <4 x float>, ptr addrspace(1) %14, align 16, !tbaa !150, !alias.scope !409, !noalias !410 + %16 = mul i32 %12, %6 + %17 = add i32 %16, %9 + %18 = extractelement <4 x float> %15, i64 0 + %19 = zext i32 %17 to i64 + %20 = getelementptr inbounds float, ptr addrspace(1) %1, i64 %19 + store float %18, ptr addrspace(1) %20, align 4, !tbaa !175, !alias.scope !411, !noalias !412 + %21 = or i32 %9, 3 + %22 = icmp ult i32 %21, %6 + br i1 %22, label %23, label %36 + +23: ; preds = %11 + %24 = extractelement <4 x float> %15, i64 1 + %25 = add i32 %17, 1 + %26 = zext i32 %25 to i64 + %27 = getelementptr inbounds float, ptr addrspace(1) %1, i64 %26 + store float %24, ptr addrspace(1) %27, align 4, !tbaa !175, !alias.scope !411, !noalias !412 + %28 = extractelement <4 x float> %15, i64 2 + %29 = add i32 %17, 2 + %30 = zext i32 %29 to i64 + %31 = getelementptr inbounds float, ptr addrspace(1) %1, i64 %30 + store float %28, ptr addrspace(1) %31, align 4, !tbaa !175, !alias.scope !411, !noalias !412 + %32 = extractelement <4 x float> %15, i64 3 + %33 = add i32 %17, 3 + %34 = zext i32 %33 to i64 + %35 = getelementptr inbounds float, ptr addrspace(1) %1, i64 %34 + store float %32, ptr addrspace(1) %35, align 4, !tbaa !175, !alias.scope !411, !noalias !412 + br label %56 + +36: ; preds = %11 + %37 = or i32 %9, 2 + %38 = icmp ult i32 %37, %6 + br i1 %38, label %39, label %48 + +39: ; preds = %36 + %40 = extractelement <4 x float> %15, i64 1 + %41 = add i32 %17, 1 + %42 = zext i32 %41 to i64 + %43 = getelementptr inbounds float, ptr addrspace(1) %1, i64 %42 + store float %40, ptr addrspace(1) %43, align 4, !tbaa !175, !alias.scope !411, !noalias !412 + %44 = extractelement <4 x float> %15, i64 2 + %45 = add i32 %17, 2 + %46 = zext i32 %45 to i64 + %47 = getelementptr inbounds float, ptr addrspace(1) %1, i64 %46 + store float %44, ptr addrspace(1) %47, align 4, !tbaa !175, !alias.scope !411, !noalias !412 + br label %56 + +48: ; preds = %36 + %49 = or i32 %9, 1 + %50 = icmp ult i32 %49, %6 + br i1 %50, label %51, label %56 + +51: ; preds = %48 + %52 = add i32 %17, 1 + %53 = zext i32 %52 to i64 + %54 = getelementptr inbounds float, ptr addrspace(1) %1, i64 %53 + %55 = extractelement <4 x float> %15, i64 1 + store float %55, ptr addrspace(1) %54, align 4, !tbaa !175, !alias.scope !411, !noalias !412 + br label %56 + +56: ; preds = %51, %48, %39, %23, %4 + ret void } ; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) declare float @air.fma.f32(float, float, float) local_unnamed_addr #2 ; Function Attrs: convergent mustprogress nounwind willreturn -declare void @air.wg.barrier(i32, i32) local_unnamed_addr #14 +declare void @air.wg.barrier(i32, i32) local_unnamed_addr #15 ; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) declare i32 @air.min.u.i32(i32, i32) local_unnamed_addr #2 @@ -820,35 +898,35 @@ declare i32 @air.clamp.s.i32(i32, i32, i32) local_unnamed_addr #2 declare <4 x float> @air.fma.v4f32(<4 x float>, <4 x float>, <4 x float>) local_unnamed_addr #2 ; Function Attrs: convergent mustprogress nounwind willreturn -declare void @air.simdgroup.barrier(i32, i32) local_unnamed_addr #14 +declare void @air.simdgroup.barrier(i32, i32) local_unnamed_addr #15 ; Function Attrs: convergent mustprogress nounwind willreturn -declare i32 @air.simd_sum.u.i32(i32) local_unnamed_addr #14 +declare i32 @air.simd_sum.u.i32(i32) local_unnamed_addr #15 ; Function Attrs: mustprogress nounwind willreturn memory(argmem: readwrite) -declare void @air.write_texture_2d.v4f32(ptr addrspace(1) captures(none), <2 x i32>, <4 x float>, i32, i32) local_unnamed_addr #15 +declare void @air.write_texture_2d.v4f32(ptr addrspace(1) captures(none), <2 x i32>, <4 x float>, i32, i32) local_unnamed_addr #16 ; Function Attrs: mustprogress nofree nounwind willreturn memory(inaccessiblemem: read) -declare ptr addrspace(2) @air.get_read_sampler() local_unnamed_addr #16 +declare ptr addrspace(2) @air.get_read_sampler() local_unnamed_addr #17 ; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read) -declare { <4 x float>, i8 } @air.read_texture_2d.v4f32(ptr addrspace(1) readonly captures(none), ptr addrspace(2), <2 x i32>, <2 x i32>, i32, i32) local_unnamed_addr #17 +declare { <4 x float>, i8 } @air.read_texture_2d.v4f32(ptr addrspace(1) readonly captures(none), ptr addrspace(2), <2 x i32>, <2 x i32>, i32, i32) local_unnamed_addr #18 ; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read) -declare i32 @air.get_width_texture_2d(ptr addrspace(1) readonly captures(none), i32) local_unnamed_addr #17 +declare i32 @air.get_width_texture_2d(ptr addrspace(1) readonly captures(none), i32) local_unnamed_addr #18 ; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read) -declare i32 @air.get_height_texture_2d(ptr addrspace(1) readonly captures(none), i32) local_unnamed_addr #17 +declare i32 @air.get_height_texture_2d(ptr addrspace(1) readonly captures(none), i32) local_unnamed_addr #18 ; Function Attrs: convergent mustprogress nofree nounwind willreturn memory(argmem: read) -declare { <4 x float>, i8 } @air.sample_texture_2d.v4f32(ptr addrspace(1) readonly captures(none), ptr addrspace(2) readonly captures(none), <2 x float>, i1, <2 x i32>, i1, float, float, i32) local_unnamed_addr #18 +declare { <4 x float>, i8 } @air.sample_texture_2d.v4f32(ptr addrspace(1) readonly captures(none), ptr addrspace(2) readonly captures(none), <2 x float>, i1, <2 x i32>, i1, float, float, i32) local_unnamed_addr #19 ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(write) -define internal void @_GLOBAL__sub_I__() #19 section "air.static_init" { - %1 = load float, ptr addrspace(2) @_Z13positive_zero.MTL_FC_INIT_0_f, align 4, !tbaa !173 - store float %1, ptr addrspace(2) @_ZL13positive_zero, align 4, !tbaa !173 - %2 = load float, ptr addrspace(2) @_Z13negative_zero.MTL_FC_INIT_1_f, align 4, !tbaa !173 - store float %2, ptr addrspace(2) @_ZL13negative_zero, align 4, !tbaa !173 +define internal void @_GLOBAL__sub_I__() #20 section "air.static_init" { + %1 = load float, ptr addrspace(2) @_Z13positive_zero.MTL_FC_INIT_0_f, align 4, !tbaa !175 + store float %1, ptr addrspace(2) @_ZL13positive_zero, align 4, !tbaa !175 + %2 = load float, ptr addrspace(2) @_Z13negative_zero.MTL_FC_INIT_1_f, align 4, !tbaa !175 + store float %2, ptr addrspace(2) @_ZL13negative_zero, align 4, !tbaa !175 ret void } @@ -866,27 +944,28 @@ attributes #10 = { convergent mustprogress nounwind willreturn "approx-func-fp-m attributes #11 = { mustprogress nofree nosync nounwind "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" } attributes #12 = { convergent mustprogress nounwind "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "no-builtins" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" } attributes #13 = { mustprogress nofree norecurse nosync nounwind memory(argmem: readwrite) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "no-builtins" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" } -attributes #14 = { convergent mustprogress nounwind willreturn } -attributes #15 = { mustprogress nounwind willreturn memory(argmem: readwrite) } -attributes #16 = { mustprogress nofree nounwind willreturn memory(inaccessiblemem: read) } -attributes #17 = { mustprogress nofree nounwind willreturn memory(argmem: read) } -attributes #18 = { convergent mustprogress nofree nounwind willreturn memory(argmem: read) } -attributes #19 = { mustprogress nofree norecurse nosync nounwind willreturn memory(write) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "no-builtins" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" } -attributes #20 = { nounwind willreturn memory(none) } -attributes #21 = { convergent nounwind willreturn } -attributes #22 = { nounwind willreturn memory(argmem: readwrite) } -attributes #23 = { nounwind willreturn memory(inaccessiblemem: read) } -attributes #24 = { nounwind willreturn memory(argmem: read) } -attributes #25 = { convergent nounwind willreturn memory(argmem: read) } +attributes #14 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "no-builtins" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" } +attributes #15 = { convergent mustprogress nounwind willreturn } +attributes #16 = { mustprogress nounwind willreturn memory(argmem: readwrite) } +attributes #17 = { mustprogress nofree nounwind willreturn memory(inaccessiblemem: read) } +attributes #18 = { mustprogress nofree nounwind willreturn memory(argmem: read) } +attributes #19 = { convergent mustprogress nofree nounwind willreturn memory(argmem: read) } +attributes #20 = { mustprogress nofree norecurse nosync nounwind willreturn memory(write) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "no-builtins" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" } +attributes #21 = { nounwind willreturn memory(none) } +attributes #22 = { convergent nounwind willreturn } +attributes #23 = { nounwind willreturn memory(argmem: readwrite) } +attributes #24 = { nounwind willreturn memory(inaccessiblemem: read) } +attributes #25 = { nounwind willreturn memory(argmem: read) } +attributes #26 = { convergent nounwind willreturn memory(argmem: read) } !llvm.module.flags = !{!0, !1, !2, !3, !4, !5, !6, !7, !8} -!air.kernel = !{!9, !15, !21, !25, !30, !40, !44, !52, !57, !63, !67, !70, !74, !79, !84, !86, !89, !90, !117, !120, !123, !128, !136} -!air.compile_options = !{!139, !140, !141} -!air.function_constants = !{!142, !143} -!air.sampler_states = !{!144} -!llvm.ident = !{!145} -!air.version = !{!146} -!air.language_version = !{!147} +!air.kernel = !{!9, !15, !21, !25, !30, !40, !44, !52, !57, !63, !67, !70, !74, !79, !84, !86, !89, !90, !117, !120, !123, !128, !136, !139} +!air.compile_options = !{!141, !142, !143} +!air.function_constants = !{!144, !145} +!air.sampler_states = !{!146} +!llvm.ident = !{!147} +!air.version = !{!148} +!air.language_version = !{!149} !0 = !{i32 2, !"SDK Version", [2 x i32] [i32 27, i32 2]} !1 = !{i32 1, !"wchar_size", i32 4} @@ -1027,265 +1106,277 @@ attributes #25 = { convergent nounwind willreturn memory(argmem: read) } !136 = !{ptr @constant_reads, !10, !137} !137 = !{!138, !28, !14} !138 = !{i32 0, !"air.buffer", !"air.location_index", i32 0, i32 1, !"air.read", !"air.address_space", i32 2, !"air.arg_type_size", i32 16, !"air.arg_type_align_size", i32 16, !"air.arg_type_name", !"uint4", !"air.arg_name", !"table"} -!139 = !{!"air.compile.denorms_disable"} -!140 = !{!"air.compile.fast_math_enable"} -!141 = !{!"air.compile.framebuffer_fetch_enable"} -!142 = !{ptr addrspace(2) @_Z13positive_zero.MTL_FC_INIT_0_f, !"float", !"positive_zero", i32 0} -!143 = !{ptr addrspace(2) @_Z13negative_zero.MTL_FC_INIT_1_f, !"float", !"negative_zero", i32 1} -!144 = !{!"air.sampler_state", ptr addrspace(2) @__air_sampler_state} -!145 = !{!"Apple metal version 32023.922 (metalfe-32023.922.4)"} -!146 = !{i32 2, i32 8, i32 0} -!147 = !{!"Metal", i32 4, i32 0, i32 0} -!148 = !{!149, !149, i64 0} -!149 = !{!"omnipotent char", !150, i64 0} -!150 = !{!"Simple C++ TBAA"} -!151 = !{!152} -!152 = distinct !{!152, !153, !"air-alias-scope-arg(0)"} -!153 = distinct !{!153, !"air-alias-scopes(copy_words)"} -!154 = !{!155} -!155 = distinct !{!155, !153, !"air-alias-scope-arg(1)"} +!139 = !{ptr @row_tail, !10, !140} +!140 = !{!17, !47, !32, !20} +!141 = !{!"air.compile.denorms_disable"} +!142 = !{!"air.compile.fast_math_enable"} +!143 = !{!"air.compile.framebuffer_fetch_enable"} +!144 = !{ptr addrspace(2) @_Z13positive_zero.MTL_FC_INIT_0_f, !"float", !"positive_zero", i32 0} +!145 = !{ptr addrspace(2) @_Z13negative_zero.MTL_FC_INIT_1_f, !"float", !"negative_zero", i32 1} +!146 = !{!"air.sampler_state", ptr addrspace(2) @__air_sampler_state} +!147 = !{!"Apple metal version 32023.922 (metalfe-32023.922.4)"} +!148 = !{i32 2, i32 8, i32 0} +!149 = !{!"Metal", i32 4, i32 0, i32 0} +!150 = !{!151, !151, i64 0} +!151 = !{!"omnipotent char", !152, i64 0} +!152 = !{!"Simple C++ TBAA"} +!153 = !{!154} +!154 = distinct !{!154, !155, !"air-alias-scope-arg(0)"} +!155 = distinct !{!155, !"air-alias-scopes(copy_words)"} !156 = !{!157} -!157 = distinct !{!157, !158, !"air-alias-scope-arg(0)"} -!158 = distinct !{!158, !"air-alias-scopes(scale_offset)"} -!159 = !{!160, !161} -!160 = distinct !{!160, !158, !"air-alias-scope-arg(1)"} -!161 = distinct !{!161, !158, !"air-alias-scope-arg(2)"} -!162 = !{!161} -!163 = !{!157, !160} -!164 = !{!160} -!165 = !{!157, !161} -!166 = !{!167, !167, i64 0} -!167 = !{!"int", !149, i64 0} -!168 = !{!169} -!169 = distinct !{!169, !170, !"air-alias-scope-arg(1)"} -!170 = distinct !{!170, !"air-alias-scopes(fma_chains)"} -!171 = !{!172} -!172 = distinct !{!172, !170, !"air-alias-scope-arg(0)"} -!173 = !{!174, !174, i64 0} -!174 = !{!"float", !149, i64 0} -!175 = distinct !{!175, !176} -!176 = !{!"llvm.loop.mustprogress"} -!177 = !{!178} -!178 = distinct !{!178, !179, !"air-alias-scope-arg(0)"} -!179 = distinct !{!179, !"air-alias-scopes(block_scan)"} -!180 = !{!181} -!181 = distinct !{!181, !179, !"air-alias-scope-arg(1)"} -!182 = distinct !{!182, !176} -!183 = !{!184} -!184 = distinct !{!184, !185, !"air-alias-scope-arg(2)"} -!185 = distinct !{!185, !"air-alias-scopes(reduce_sum)"} -!186 = !{!187, !188} -!187 = distinct !{!187, !185, !"air-alias-scope-arg(0)"} -!188 = distinct !{!188, !185, !"air-alias-scope-arg(1)"} -!189 = !{!187} -!190 = !{!188, !184} -!191 = distinct !{!191, !176} -!192 = distinct !{!192, !176} -!193 = !{!188} -!194 = !{!187, !184} -!195 = !{!196} -!196 = distinct !{!196, !197, !"air-alias-scope-arg(2)"} -!197 = distinct !{!197, !"air-alias-scopes(binomial3x3)"} -!198 = !{!199, !200} -!199 = distinct !{!199, !197, !"air-alias-scope-arg(0)"} -!200 = distinct !{!200, !197, !"air-alias-scope-arg(1)"} -!201 = !{!200} -!202 = !{!199, !196} -!203 = distinct !{!203, !176} -!204 = !{!199} -!205 = !{!200, !196} -!206 = distinct !{!206, !176} -!207 = !{!208} -!208 = distinct !{!208, !209, !"air-alias-scope-arg(2)"} -!209 = distinct !{!209, !"air-alias-scopes(row_cells)"} -!210 = !{!211, !212, !213, !214} -!211 = distinct !{!211, !209, !"air-alias-scope-arg(0)"} -!212 = distinct !{!212, !209, !"air-alias-scope-arg(1)"} -!213 = distinct !{!213, !209, !"air-alias-scope-arg(3)"} -!214 = distinct !{!214, !209, !"air-alias-scope-arg(4)"} -!215 = !{!213} -!216 = !{!211, !212, !208, !214} -!217 = !{!214} -!218 = !{!211, !212, !208, !213} -!219 = !{!211} -!220 = !{!212, !208, !213, !214} -!221 = !{!212} -!222 = !{!211, !208, !213, !214} -!223 = !{!224} -!224 = distinct !{!224, !225, !"air-alias-scope-arg(2)"} -!225 = distinct !{!225, !"air-alias-scopes(row_cells_uint)"} -!226 = !{!227, !228, !229, !230} -!227 = distinct !{!227, !225, !"air-alias-scope-arg(0)"} -!228 = distinct !{!228, !225, !"air-alias-scope-arg(1)"} -!229 = distinct !{!229, !225, !"air-alias-scope-arg(3)"} -!230 = distinct !{!230, !225, !"air-alias-scope-arg(4)"} -!231 = !{!229} -!232 = !{!227, !228, !224, !230} -!233 = !{!230} -!234 = !{!227, !228, !224, !229} -!235 = !{!227} -!236 = !{!228, !224, !229, !230} -!237 = !{!228} -!238 = !{!227, !224, !229, !230} -!239 = !{!240} -!240 = distinct !{!240, !241, !"air-alias-scope-arg(0)"} -!241 = distinct !{!241, !"air-alias-scopes(row_barrier)"} -!242 = !{!243} -!243 = distinct !{!243, !241, !"air-alias-scope-arg(1)"} +!157 = distinct !{!157, !155, !"air-alias-scope-arg(1)"} +!158 = !{!159} +!159 = distinct !{!159, !160, !"air-alias-scope-arg(0)"} +!160 = distinct !{!160, !"air-alias-scopes(scale_offset)"} +!161 = !{!162, !163} +!162 = distinct !{!162, !160, !"air-alias-scope-arg(1)"} +!163 = distinct !{!163, !160, !"air-alias-scope-arg(2)"} +!164 = !{!163} +!165 = !{!159, !162} +!166 = !{!162} +!167 = !{!159, !163} +!168 = !{!169, !169, i64 0} +!169 = !{!"int", !151, i64 0} +!170 = !{!171} +!171 = distinct !{!171, !172, !"air-alias-scope-arg(1)"} +!172 = distinct !{!172, !"air-alias-scopes(fma_chains)"} +!173 = !{!174} +!174 = distinct !{!174, !172, !"air-alias-scope-arg(0)"} +!175 = !{!176, !176, i64 0} +!176 = !{!"float", !151, i64 0} +!177 = distinct !{!177, !178} +!178 = !{!"llvm.loop.mustprogress"} +!179 = !{!180} +!180 = distinct !{!180, !181, !"air-alias-scope-arg(0)"} +!181 = distinct !{!181, !"air-alias-scopes(block_scan)"} +!182 = !{!183} +!183 = distinct !{!183, !181, !"air-alias-scope-arg(1)"} +!184 = distinct !{!184, !178} +!185 = !{!186} +!186 = distinct !{!186, !187, !"air-alias-scope-arg(2)"} +!187 = distinct !{!187, !"air-alias-scopes(reduce_sum)"} +!188 = !{!189, !190} +!189 = distinct !{!189, !187, !"air-alias-scope-arg(0)"} +!190 = distinct !{!190, !187, !"air-alias-scope-arg(1)"} +!191 = !{!189} +!192 = !{!190, !186} +!193 = distinct !{!193, !178} +!194 = distinct !{!194, !178} +!195 = !{!190} +!196 = !{!189, !186} +!197 = !{!198} +!198 = distinct !{!198, !199, !"air-alias-scope-arg(2)"} +!199 = distinct !{!199, !"air-alias-scopes(binomial3x3)"} +!200 = !{!201, !202} +!201 = distinct !{!201, !199, !"air-alias-scope-arg(0)"} +!202 = distinct !{!202, !199, !"air-alias-scope-arg(1)"} +!203 = !{!202} +!204 = !{!201, !198} +!205 = distinct !{!205, !178} +!206 = !{!201} +!207 = !{!202, !198} +!208 = distinct !{!208, !178} +!209 = !{!210} +!210 = distinct !{!210, !211, !"air-alias-scope-arg(2)"} +!211 = distinct !{!211, !"air-alias-scopes(row_cells)"} +!212 = !{!213, !214, !215, !216} +!213 = distinct !{!213, !211, !"air-alias-scope-arg(0)"} +!214 = distinct !{!214, !211, !"air-alias-scope-arg(1)"} +!215 = distinct !{!215, !211, !"air-alias-scope-arg(3)"} +!216 = distinct !{!216, !211, !"air-alias-scope-arg(4)"} +!217 = !{!215} +!218 = !{!213, !214, !210, !216} +!219 = !{!216} +!220 = !{!213, !214, !210, !215} +!221 = !{!213} +!222 = !{!214, !210, !215, !216} +!223 = !{!214} +!224 = !{!213, !210, !215, !216} +!225 = !{!226} +!226 = distinct !{!226, !227, !"air-alias-scope-arg(2)"} +!227 = distinct !{!227, !"air-alias-scopes(row_cells_uint)"} +!228 = !{!229, !230, !231, !232} +!229 = distinct !{!229, !227, !"air-alias-scope-arg(0)"} +!230 = distinct !{!230, !227, !"air-alias-scope-arg(1)"} +!231 = distinct !{!231, !227, !"air-alias-scope-arg(3)"} +!232 = distinct !{!232, !227, !"air-alias-scope-arg(4)"} +!233 = !{!231} +!234 = !{!229, !230, !226, !232} +!235 = !{!232} +!236 = !{!229, !230, !226, !231} +!237 = !{!229} +!238 = !{!230, !226, !231, !232} +!239 = !{!230} +!240 = !{!229, !226, !231, !232} +!241 = !{!242} +!242 = distinct !{!242, !243, !"air-alias-scope-arg(0)"} +!243 = distinct !{!243, !"air-alias-scopes(row_barrier)"} !244 = !{!245} -!245 = distinct !{!245, !246, !"air-alias-scope-arg(0)"} -!246 = distinct !{!246, !"air-alias-scopes(lcg_step)"} -!247 = !{!248} -!248 = distinct !{!248, !246, !"air-alias-scope-arg(1)"} +!245 = distinct !{!245, !243, !"air-alias-scope-arg(1)"} +!246 = !{!247} +!247 = distinct !{!247, !248, !"air-alias-scope-arg(0)"} +!248 = distinct !{!248, !"air-alias-scopes(lcg_step)"} !249 = !{!250} -!250 = distinct !{!250, !251, !"air-alias-scope-arg(1)"} -!251 = distinct !{!251, !"air-alias-scopes(narrow_mix)"} -!252 = !{!253} -!253 = distinct !{!253, !251, !"air-alias-scope-arg(0)"} -!254 = distinct !{!254, !176} -!255 = !{!256} -!256 = distinct !{!256, !257, !"air-alias-scope-arg(1)"} -!257 = distinct !{!257, !"air-alias-scopes(texels_in)"} -!258 = !{!259, !260} -!259 = distinct !{!259, !257, !"air-alias-scope-arg(0)"} -!260 = distinct !{!260, !257, !"air-alias-scope-textures"} -!261 = !{!259} -!262 = !{!256, !260} -!263 = !{!260} -!264 = !{!259, !256} -!265 = !{!266} -!266 = distinct !{!266, !267, !"air-alias-scope-arg(2)"} -!267 = distinct !{!267, !"air-alias-scopes(texels_out)"} -!268 = !{!269, !270} -!269 = distinct !{!269, !267, !"air-alias-scope-textures"} -!270 = distinct !{!270, !267, !"air-alias-scope-arg(1)"} -!271 = !{!270} -!272 = !{!269, !266} -!273 = !{!274} -!274 = distinct !{!274, !275, !"air-alias-scope-textures"} -!275 = distinct !{!275, !"air-alias-scopes(sample_down)"} -!276 = !{!277} -!277 = distinct !{!277, !275, !"air-alias-scope-samplers"} -!278 = !{!274, !277} -!279 = !{!280} -!280 = distinct !{!280, !281, !"air-alias-scope-textures"} -!281 = distinct !{!281, !"air-alias-scopes(sample_up)"} -!282 = !{!283} -!283 = distinct !{!283, !284, !"air-alias-scope-textures"} -!284 = distinct !{!284, !"air-alias-scopes(sample_down_layers)"} -!285 = !{!286} -!286 = distinct !{!286, !284, !"air-alias-scope-samplers"} -!287 = !{!283, !286} -!288 = !{!289} -!289 = distinct !{!289, !290, !"air-alias-scope-textures"} -!290 = distinct !{!290, !"air-alias-scopes(sample_down_distinct)"} -!291 = !{!292} -!292 = distinct !{!292, !290, !"air-alias-scope-samplers"} -!293 = !{!289, !292} -!294 = !{!295} -!295 = distinct !{!295, !296, !"air-alias-scope-arg(0)"} -!296 = distinct !{!296, !"air-alias-scopes(wide_bindings)"} -!297 = !{!298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!298 = distinct !{!298, !296, !"air-alias-scope-arg(1)"} -!299 = distinct !{!299, !296, !"air-alias-scope-arg(2)"} -!300 = distinct !{!300, !296, !"air-alias-scope-arg(3)"} -!301 = distinct !{!301, !296, !"air-alias-scope-arg(4)"} -!302 = distinct !{!302, !296, !"air-alias-scope-arg(5)"} -!303 = distinct !{!303, !296, !"air-alias-scope-arg(6)"} -!304 = distinct !{!304, !296, !"air-alias-scope-arg(7)"} -!305 = distinct !{!305, !296, !"air-alias-scope-arg(8)"} -!306 = distinct !{!306, !296, !"air-alias-scope-arg(9)"} -!307 = distinct !{!307, !296, !"air-alias-scope-arg(10)"} -!308 = distinct !{!308, !296, !"air-alias-scope-arg(11)"} -!309 = distinct !{!309, !296, !"air-alias-scope-arg(12)"} -!310 = distinct !{!310, !296, !"air-alias-scope-arg(13)"} -!311 = distinct !{!311, !296, !"air-alias-scope-arg(14)"} -!312 = distinct !{!312, !296, !"air-alias-scope-arg(15)"} -!313 = distinct !{!313, !296, !"air-alias-scope-arg(16)"} -!314 = distinct !{!314, !296, !"air-alias-scope-arg(17)"} -!315 = distinct !{!315, !296, !"air-alias-scope-arg(18)"} -!316 = distinct !{!316, !296, !"air-alias-scope-arg(19)"} -!317 = distinct !{!317, !296, !"air-alias-scope-arg(20)"} -!318 = distinct !{!318, !296, !"air-alias-scope-arg(21)"} -!319 = distinct !{!319, !296, !"air-alias-scope-arg(22)"} -!320 = distinct !{!320, !296, !"air-alias-scope-arg(23)"} -!321 = !{!298} -!322 = !{!295, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!323 = !{!299} -!324 = !{!295, !298, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!325 = !{!300} -!326 = !{!295, !298, !299, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!327 = !{!301} -!328 = !{!295, !298, !299, !300, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!329 = !{!302} -!330 = !{!295, !298, !299, !300, !301, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!331 = !{!303} -!332 = !{!295, !298, !299, !300, !301, !302, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!333 = !{!304} -!334 = !{!295, !298, !299, !300, !301, !302, !303, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!335 = !{!305} -!336 = !{!295, !298, !299, !300, !301, !302, !303, !304, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!337 = !{!306} -!338 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!339 = !{!307} -!340 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!341 = !{!308} -!342 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!343 = !{!309} -!344 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!345 = !{!310} -!346 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!347 = !{!311} -!348 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !312, !313, !314, !315, !316, !317, !318, !319, !320} -!349 = !{!312} -!350 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !313, !314, !315, !316, !317, !318, !319, !320} -!351 = !{!313} -!352 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !314, !315, !316, !317, !318, !319, !320} -!353 = !{!314} -!354 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !315, !316, !317, !318, !319, !320} -!355 = !{!315} -!356 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !316, !317, !318, !319, !320} -!357 = !{!316} -!358 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !317, !318, !319, !320} -!359 = !{!317} -!360 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !318, !319, !320} -!361 = !{!318} -!362 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !319, !320} -!363 = !{!319} -!364 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !320} -!365 = !{!320} -!366 = !{!295, !298, !299, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319} -!367 = !{!368} -!368 = distinct !{!368, !369, !"air-alias-scope-arg(1)"} -!369 = distinct !{!369, !"air-alias-scopes(wave_store)"} -!370 = !{!371} -!371 = distinct !{!371, !369, !"air-alias-scope-arg(0)"} +!250 = distinct !{!250, !248, !"air-alias-scope-arg(1)"} +!251 = !{!252} +!252 = distinct !{!252, !253, !"air-alias-scope-arg(1)"} +!253 = distinct !{!253, !"air-alias-scopes(narrow_mix)"} +!254 = !{!255} +!255 = distinct !{!255, !253, !"air-alias-scope-arg(0)"} +!256 = distinct !{!256, !178} +!257 = !{!258} +!258 = distinct !{!258, !259, !"air-alias-scope-arg(1)"} +!259 = distinct !{!259, !"air-alias-scopes(texels_in)"} +!260 = !{!261, !262} +!261 = distinct !{!261, !259, !"air-alias-scope-arg(0)"} +!262 = distinct !{!262, !259, !"air-alias-scope-textures"} +!263 = !{!261} +!264 = !{!258, !262} +!265 = !{!262} +!266 = !{!261, !258} +!267 = !{!268} +!268 = distinct !{!268, !269, !"air-alias-scope-arg(2)"} +!269 = distinct !{!269, !"air-alias-scopes(texels_out)"} +!270 = !{!271, !272} +!271 = distinct !{!271, !269, !"air-alias-scope-textures"} +!272 = distinct !{!272, !269, !"air-alias-scope-arg(1)"} +!273 = !{!272} +!274 = !{!271, !268} +!275 = !{!276} +!276 = distinct !{!276, !277, !"air-alias-scope-textures"} +!277 = distinct !{!277, !"air-alias-scopes(sample_down)"} +!278 = !{!279} +!279 = distinct !{!279, !277, !"air-alias-scope-samplers"} +!280 = !{!276, !279} +!281 = !{!282} +!282 = distinct !{!282, !283, !"air-alias-scope-textures"} +!283 = distinct !{!283, !"air-alias-scopes(sample_up)"} +!284 = !{!285} +!285 = distinct !{!285, !286, !"air-alias-scope-textures"} +!286 = distinct !{!286, !"air-alias-scopes(sample_down_layers)"} +!287 = !{!288} +!288 = distinct !{!288, !286, !"air-alias-scope-samplers"} +!289 = !{!285, !288} +!290 = !{!291} +!291 = distinct !{!291, !292, !"air-alias-scope-textures"} +!292 = distinct !{!292, !"air-alias-scopes(sample_down_distinct)"} +!293 = !{!294} +!294 = distinct !{!294, !292, !"air-alias-scope-samplers"} +!295 = !{!291, !294} +!296 = !{!297} +!297 = distinct !{!297, !298, !"air-alias-scope-arg(0)"} +!298 = distinct !{!298, !"air-alias-scopes(wide_bindings)"} +!299 = !{!300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!300 = distinct !{!300, !298, !"air-alias-scope-arg(1)"} +!301 = distinct !{!301, !298, !"air-alias-scope-arg(2)"} +!302 = distinct !{!302, !298, !"air-alias-scope-arg(3)"} +!303 = distinct !{!303, !298, !"air-alias-scope-arg(4)"} +!304 = distinct !{!304, !298, !"air-alias-scope-arg(5)"} +!305 = distinct !{!305, !298, !"air-alias-scope-arg(6)"} +!306 = distinct !{!306, !298, !"air-alias-scope-arg(7)"} +!307 = distinct !{!307, !298, !"air-alias-scope-arg(8)"} +!308 = distinct !{!308, !298, !"air-alias-scope-arg(9)"} +!309 = distinct !{!309, !298, !"air-alias-scope-arg(10)"} +!310 = distinct !{!310, !298, !"air-alias-scope-arg(11)"} +!311 = distinct !{!311, !298, !"air-alias-scope-arg(12)"} +!312 = distinct !{!312, !298, !"air-alias-scope-arg(13)"} +!313 = distinct !{!313, !298, !"air-alias-scope-arg(14)"} +!314 = distinct !{!314, !298, !"air-alias-scope-arg(15)"} +!315 = distinct !{!315, !298, !"air-alias-scope-arg(16)"} +!316 = distinct !{!316, !298, !"air-alias-scope-arg(17)"} +!317 = distinct !{!317, !298, !"air-alias-scope-arg(18)"} +!318 = distinct !{!318, !298, !"air-alias-scope-arg(19)"} +!319 = distinct !{!319, !298, !"air-alias-scope-arg(20)"} +!320 = distinct !{!320, !298, !"air-alias-scope-arg(21)"} +!321 = distinct !{!321, !298, !"air-alias-scope-arg(22)"} +!322 = distinct !{!322, !298, !"air-alias-scope-arg(23)"} +!323 = !{!300} +!324 = !{!297, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!325 = !{!301} +!326 = !{!297, !300, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!327 = !{!302} +!328 = !{!297, !300, !301, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!329 = !{!303} +!330 = !{!297, !300, !301, !302, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!331 = !{!304} +!332 = !{!297, !300, !301, !302, !303, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!333 = !{!305} +!334 = !{!297, !300, !301, !302, !303, !304, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!335 = !{!306} +!336 = !{!297, !300, !301, !302, !303, !304, !305, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!337 = !{!307} +!338 = !{!297, !300, !301, !302, !303, !304, !305, !306, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!339 = !{!308} +!340 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!341 = !{!309} +!342 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!343 = !{!310} +!344 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!345 = !{!311} +!346 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!347 = !{!312} +!348 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !313, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!349 = !{!313} +!350 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !314, !315, !316, !317, !318, !319, !320, !321, !322} +!351 = !{!314} +!352 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !315, !316, !317, !318, !319, !320, !321, !322} +!353 = !{!315} +!354 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !316, !317, !318, !319, !320, !321, !322} +!355 = !{!316} +!356 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !317, !318, !319, !320, !321, !322} +!357 = !{!317} +!358 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !318, !319, !320, !321, !322} +!359 = !{!318} +!360 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !319, !320, !321, !322} +!361 = !{!319} +!362 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !320, !321, !322} +!363 = !{!320} +!364 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !321, !322} +!365 = !{!321} +!366 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !322} +!367 = !{!322} +!368 = !{!297, !300, !301, !302, !303, !304, !305, !306, !307, !308, !309, !310, !311, !312, !313, !314, !315, !316, !317, !318, !319, !320, !321} +!369 = !{!370} +!370 = distinct !{!370, !371, !"air-alias-scope-arg(1)"} +!371 = distinct !{!371, !"air-alias-scopes(wave_store)"} !372 = !{!373} -!373 = distinct !{!373, !374, !"air-alias-scope-arg(1)"} -!374 = distinct !{!374, !"air-alias-scopes(signed_zero_products)"} -!375 = !{!376} -!376 = distinct !{!376, !374, !"air-alias-scope-arg(0)"} -!377 = distinct !{!377, !176} -!378 = !{!379} -!379 = distinct !{!379, !380, !"air-alias-scope-arg(0)"} -!380 = distinct !{!380, !"air-alias-scopes(vote_loop)"} -!381 = !{!382} -!382 = distinct !{!382, !380, !"air-alias-scope-arg(1)"} -!383 = distinct !{!383, !176} -!384 = !{!385} -!385 = distinct !{!385, !386, !"air-alias-scope-arg(0)"} -!386 = distinct !{!386, !"air-alias-scopes(group_sums)"} -!387 = !{!388, !389} -!388 = distinct !{!388, !386, !"air-alias-scope-arg(1)"} -!389 = distinct !{!389, !386, !"air-alias-scope-arg(2)"} -!390 = !{!389} -!391 = !{!385, !388} -!392 = distinct !{!392, !176} -!393 = !{!388} -!394 = !{!385, !389} -!395 = !{!396} -!396 = distinct !{!396, !397, !"air-alias-scope-arg(1)"} -!397 = distinct !{!397, !"air-alias-scopes(constant_reads)"} -!398 = !{!399} -!399 = distinct !{!399, !397, !"air-alias-scope-arg(0)"} -!400 = distinct !{!400, !176} +!373 = distinct !{!373, !371, !"air-alias-scope-arg(0)"} +!374 = !{!375} +!375 = distinct !{!375, !376, !"air-alias-scope-arg(1)"} +!376 = distinct !{!376, !"air-alias-scopes(signed_zero_products)"} +!377 = !{!378} +!378 = distinct !{!378, !376, !"air-alias-scope-arg(0)"} +!379 = distinct !{!379, !178} +!380 = !{!381} +!381 = distinct !{!381, !382, !"air-alias-scope-arg(0)"} +!382 = distinct !{!382, !"air-alias-scopes(vote_loop)"} +!383 = !{!384} +!384 = distinct !{!384, !382, !"air-alias-scope-arg(1)"} +!385 = distinct !{!385, !178} +!386 = !{!387} +!387 = distinct !{!387, !388, !"air-alias-scope-arg(0)"} +!388 = distinct !{!388, !"air-alias-scopes(group_sums)"} +!389 = !{!390, !391} +!390 = distinct !{!390, !388, !"air-alias-scope-arg(1)"} +!391 = distinct !{!391, !388, !"air-alias-scope-arg(2)"} +!392 = !{!391} +!393 = !{!387, !390} +!394 = distinct !{!394, !178} +!395 = !{!390} +!396 = !{!387, !391} +!397 = !{!398} +!398 = distinct !{!398, !399, !"air-alias-scope-arg(1)"} +!399 = distinct !{!399, !"air-alias-scopes(constant_reads)"} +!400 = !{!401} +!401 = distinct !{!401, !399, !"air-alias-scope-arg(0)"} +!402 = distinct !{!402, !178} +!403 = !{!404} +!404 = distinct !{!404, !405, !"air-alias-scope-arg(2)"} +!405 = distinct !{!405, !"air-alias-scopes(row_tail)"} +!406 = !{!407, !408} +!407 = distinct !{!407, !405, !"air-alias-scope-arg(0)"} +!408 = distinct !{!408, !405, !"air-alias-scope-arg(1)"} +!409 = !{!407} +!410 = !{!408, !404} +!411 = !{!408} +!412 = !{!407, !404} diff --git a/crates/metal2vulkan-validation/fixtures/public/harness/workloads.metal b/crates/metal2vulkan-validation/fixtures/public/harness/workloads.metal index 48256579b..295fce491 100644 --- a/crates/metal2vulkan-validation/fixtures/public/harness/workloads.metal +++ b/crates/metal2vulkan-validation/fixtures/public/harness/workloads.metal @@ -4,11 +4,12 @@ // integer arithmetic, sampling through a runtime sampler, through a constexpr one and over a grid // more than one deep, products by a constant zero of either sign, many buffers bound for each of // many dispatches, many one-wave threadgroups that each do almost nothing, reads of a table of -// constants, and a grid's cells indexed by row, with the control the harness's tests hold beside -// it; and one kernel the new runtime's device tests run against Metal's reading of it -// (row_barrier). Written from scratch for it; -// `scripts/regen-air-fixtures/regen-air-fixtures.sh --dir harness` compiles it. The harness holds a -// CPU reference of every workload's result. No translator sweep reads this directory. +// constants, rows of floats written four at a time into a Shared buffer with their tail guarded, +// and a grid's cells indexed by row, with the control the harness's tests hold beside it; and one +// kernel the new runtime's device tests run against Metal's reading of it (row_barrier). Written +// from scratch for it; `scripts/regen-air-fixtures/regen-air-fixtures.sh --dir harness` compiles +// it. The harness holds a CPU reference of every workload's result. No translator sweep reads this +// directory. #include using namespace metal; @@ -413,3 +414,32 @@ kernel void constant_reads(constant uint4 *table [[buffer(0)]], } destination[index] = folded; } + +// Rows of `shape.x` floats written into a Shared buffer four at a time from a float4, the row's +// last thread writing what fits: the first float, then the next three where the row holds them, +// else the next two, else the next one. `shape.y` threads a row. A row starts at a multiple of 16 +// bytes only where its index times `shape.x` is a multiple of 4. +kernel void row_tail(device const float4 *source [[buffer(0)]], + device float *destination [[buffer(1)]], + constant uint2 &shape [[buffer(2)]], + uint index [[thread_position_in_grid]]) { + uint w = shape.x; + uint row = index / shape.y; + uint col = (index % shape.y) << 2; + if (col >= w) { + return; + } + float4 v = source[index]; + uint i = row * w + col; + destination[i] = v.x; + if ((col | 3) < w) { + destination[i + 1] = v.y; + destination[i + 2] = v.z; + destination[i + 3] = v.w; + } else if ((col | 2) < w) { + destination[i + 1] = v.y; + destination[i + 2] = v.z; + } else if ((col | 1) < w) { + destination[i + 1] = v.y; + } +}