target triple = "air64_v28-apple-macosx26.0.0"
source_filename = "-"
; datalayout DataLayout { endian: Little, pointers: {0: PointerSpec { size_bits: 64, abi_bits: 64, pref_bits: 64, index_bits: 64 }}, ints: {1: AlignSpec { abi_bits: 8, pref_bits: 8 }, 8: AlignSpec { abi_bits: 8, pref_bits: 8 }, 16: AlignSpec { abi_bits: 16, pref_bits: 16 }, 32: AlignSpec { abi_bits: 32, pref_bits: 32 }, 64: AlignSpec { abi_bits: 64, pref_bits: 64 }}, floats: {16: AlignSpec { abi_bits: 16, pref_bits: 16 }, 32: AlignSpec { abi_bits: 32, pref_bits: 32 }, 64: AlignSpec { abi_bits: 64, pref_bits: 64 }, 128: AlignSpec { abi_bits: 128, pref_bits: 128 }}, vectors: {16: AlignSpec { abi_bits: 16, pref_bits: 16 }, 24: AlignSpec { abi_bits: 32, pref_bits: 32 }, 32: AlignSpec { abi_bits: 32, pref_bits: 32 }, 48: AlignSpec { abi_bits: 64, pref_bits: 64 }, 64: AlignSpec { abi_bits: 64, pref_bits: 64 }, 96: AlignSpec { abi_bits: 128, pref_bits: 128 }, 128: AlignSpec { abi_bits: 128, pref_bits: 128 }, 192: AlignSpec { abi_bits: 256, pref_bits: 256 }, 256: AlignSpec { abi_bits: 256, pref_bits: 256 }, 512: AlignSpec { abi_bits: 512, pref_bits: 512 }, 1024: AlignSpec { abi_bits: 1024, pref_bits: 1024 }}, aggregate: AlignSpec { abi_bits: 0, pref_bits: 64 }, native_ints: [8, 16, 32], stack_align_bits: None, alloca_space: 0, program_space: 0, globals_space: 0, mangling: None, fn_ptr_align: None, non_integral: [] }
%t2 = type [256 x float]
%t7 = type void (ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), i32)
%t8 = type void (ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(1))
%t9 = type void (ptr addrspace(1), ptr addrspace(1), i32)
%t10 = type void (i32, i32)
%t12 = type <64 x float> (float)
%t13 = type <64 x float> (<64 x float>, <64 x float>, <64 x float>)
%t16 = type void (<64 x float>, ptr addrspace(1), <2 x i64>, <2 x i64>, <2 x i64>)
%t17 = type <64 x float> (ptr addrspace(1), <2 x i64>, <2 x i64>, <2 x i64>)
%t20 = type <64 x half> (ptr addrspace(1), <2 x i64>, <2 x i64>, <2 x i64>)
%t23 = type <64 x bfloat> (ptr addrspace(1), <2 x i64>, <2 x i64>, <2 x i64>)
%t24 = type <64 x float> (<64 x float>, <64 x half>, <64 x float>)
%t25 = type <64 x float> (<64 x half>, <64 x half>, <64 x float>)
%t26 = type <64 x float> (<64 x bfloat>, <64 x bfloat>, <64 x float>)
%t27 = type <64 x half> (<64 x half>, <64 x half>, <64 x half>)
%t28 = type <64 x half> (<64 x float>, <64 x half>, <64 x half>)
%t29 = type void (<64 x half>, ptr addrspace(1), <2 x i64>, <2 x i64>, <2 x i64>)
%t30 = type <64 x float> (ptr addrspace(3), <2 x i64>, <2 x i64>, <2 x i64>)
%t32 = type [2 x i32]
c23 = %t32 [26, 5]
c39 = <2 x i64> [8, 8]
c40 = <2 x i64> [1, 8]
c54 = <2 x i64> [16, 8]
c55 = <2 x i64> [1, 16]
c56 = <2 x i64> [8, 16]
c57 = <2 x i64> [16, 1]
c58 = <2 x i64> [2, 3]
c60 = <2 x i64> [1, 5]
@g0 "_ZZ24matrix_threadgroup_blockPU9MTLdeviceKfPU9MTLdevicefjE1t" = internal addrspace(3) global %t2 undef, align 4

define %t7 @f0 "matrix_thread_elements" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="2048" "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" %a0( Ref nocapture "air-buffer-no-alias"="" ) %a1( Mod nocapture "air-buffer-no-alias"="" ) %a2( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = shl i32 %a3, i32 1
  %i1 = zext %i0 to i64
  %i2 = getelementptr inbounds float, %a0, %i1
  %i3 = load float, %i2, align 4
  %i4 = insertelement <64 x float> undef, %i3, i64 0
  %i5 = or i32 %i0, i32 1
  %i6 = zext %i5 to i64
  %i7 = getelementptr inbounds float, %a0, %i6
  %i8 = load float, %i7, align 4
  %i9 = insertelement %i4, %i8, i64 1
  %i10 = tail call reassoc nnan ninf nsz arcp contract afn <64 x float> @f4 [air SimdMatrix(InitDiag8x8 { elem: F32 })](float 0x40000000) convergent
  %i11 = tail call reassoc nnan ninf nsz arcp contract afn <64 x float> @f5 [air SimdMatrix(InitFilled8x8 { elem: F32 })](float 0x3F000000) convergent
  %i12 = tail call reassoc nnan ninf nsz arcp contract afn <64 x float> @f6 [air SimdMatrix(MultiplyAccumulate8x8 { result: F32, lhs: F32, rhs: F32, acc: F32 })](%i9, %i10, %i11) convergent
  %i13 = extractelement %i12, i64 0
  %i14 = getelementptr inbounds float, %a1, %i1
  store %i13, %i14, align 4
  %i16 = extractelement %i12, i64 1
  %i17 = getelementptr inbounds float, %a1, %i6
  store %i16, %i17, align 4
  tail call void @f7 [air SimdMatrix(Store8x8 { elem: F32, space: Device })](%i12, %a2, <2 x i64> c39, <2 x i64> c40, <2 x i64> zeroinitializer) convergent arg1( Mod nocapture )
  ret void
}

define %t8 @f1 "matrix_mixed" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="2048" "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" %a0( Ref nocapture "air-buffer-no-alias"="" ) %a1( Ref nocapture "air-buffer-no-alias"="" ) %a2( Ref nocapture "air-buffer-no-alias"="" ) %a3( Mod nocapture "air-buffer-no-alias"="" ) %a4( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call reassoc nnan ninf nsz arcp contract afn <64 x float> @f8 [air SimdMatrix(Load8x8 { elem: F32, space: Device })](%a0, <2 x i64> c39, <2 x i64> c40, <2 x i64> zeroinitializer) convergent arg0( Ref nocapture )
  %i1 = tail call reassoc nnan ninf nsz arcp contract afn <64 x half> @f9 [air SimdMatrix(Load8x8 { elem: F16, space: Device })](%a1, <2 x i64> c39, <2 x i64> c40, <2 x i64> zeroinitializer) convergent arg0( Ref nocapture )
  %i2 = tail call reassoc nnan ninf nsz arcp contract afn <64 x bfloat> @f10 [air SimdMatrix(Load8x8 { elem: BF16, space: Device })](%a2, <2 x i64> c39, <2 x i64> c40, <2 x i64> zeroinitializer) convergent arg0( Ref nocapture )
  %i3 = tail call reassoc nnan ninf nsz arcp contract afn <64 x float> @f11 [air SimdMatrix(MultiplyAccumulate8x8 { result: F32, lhs: F32, rhs: F16, acc: F32 })](%i0, %i1, %i0) convergent
  %i4 = tail call reassoc nnan ninf nsz arcp contract afn <64 x float> @f12 [air SimdMatrix(MultiplyAccumulate8x8 { result: F32, lhs: F16, rhs: F16, acc: F32 })](%i1, %i1, %i0) convergent
  %i5 = tail call reassoc nnan ninf nsz arcp contract afn <64 x float> @f13 [air SimdMatrix(MultiplyAccumulate8x8 { result: F32, lhs: BF16, rhs: BF16, acc: F32 })](%i2, %i2, %i0) convergent
  %i6 = tail call reassoc nnan ninf nsz arcp contract afn <64 x half> @f14 [air SimdMatrix(MultiplyAccumulate8x8 { result: F16, lhs: F16, rhs: F16, acc: F16 })](%i1, %i1, %i1) convergent
  %i7 = tail call reassoc nnan ninf nsz arcp contract afn <64 x half> @f15 [air SimdMatrix(MultiplyAccumulate8x8 { result: F16, lhs: F32, rhs: F16, acc: F16 })](%i0, %i1, %i1) convergent
  tail call void @f7 [air SimdMatrix(Store8x8 { elem: F32, space: Device })](%i3, %a3, <2 x i64> c39, <2 x i64> c40, <2 x i64> zeroinitializer) convergent arg1( Mod nocapture )
  %i9 = getelementptr inbounds float, %a3, i64 64
  tail call void @f7 [air SimdMatrix(Store8x8 { elem: F32, space: Device })](%i4, %i9, <2 x i64> c39, <2 x i64> c40, <2 x i64> zeroinitializer) convergent arg1( Mod nocapture )
  %i11 = getelementptr inbounds float, %a3, i64 128
  tail call void @f7 [air SimdMatrix(Store8x8 { elem: F32, space: Device })](%i5, %i11, <2 x i64> c39, <2 x i64> c40, <2 x i64> zeroinitializer) convergent arg1( Mod nocapture )
  tail call void @f16 [air SimdMatrix(Store8x8 { elem: F16, space: Device })](%i6, %a4, <2 x i64> c39, <2 x i64> c40, <2 x i64> zeroinitializer) convergent arg1( Mod nocapture )
  %i14 = getelementptr inbounds half, %a4, i64 64
  tail call void @f16 [air SimdMatrix(Store8x8 { elem: F16, space: Device })](%i7, %i14, <2 x i64> c39, <2 x i64> c40, <2 x i64> zeroinitializer) convergent arg1( Mod nocapture )
  ret void
}

define %t9 @f2 "matrix_threadgroup_block" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="2048" "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" %a0( Ref nocapture "air-buffer-no-alias"="" ) %a1( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = zext %a2 to i64
  %i1 = getelementptr inbounds float, %a0, %i0
  %i2 = load float, %i1, align 4
  %i3 = getelementptr inbounds %t2, ptr addrspace(3) @g0, i64 0, %i0
  store %i2, %i3, align 4
  %i5 = add i32 %a2, i32 32
  %i6 = zext %i5 to i64
  %i7 = getelementptr inbounds float, %a0, %i6
  %i8 = load float, %i7, align 4
  %i9 = getelementptr inbounds %t2, ptr addrspace(3) @g0, i64 0, %i6
  store %i8, %i9, align 4
  %i11 = add i32 %a2, i32 64
  %i12 = zext %i11 to i64
  %i13 = getelementptr inbounds float, %a0, %i12
  %i14 = load float, %i13, align 4
  %i15 = getelementptr inbounds %t2, ptr addrspace(3) @g0, i64 0, %i12
  store %i14, %i15, align 4
  %i17 = add i32 %a2, i32 96
  %i18 = zext %i17 to i64
  %i19 = getelementptr inbounds float, %a0, %i18
  %i20 = load float, %i19, align 4
  %i21 = getelementptr inbounds %t2, ptr addrspace(3) @g0, i64 0, %i18
  store %i20, %i21, align 4
  %i23 = add i32 %a2, i32 128
  %i24 = zext %i23 to i64
  %i25 = getelementptr inbounds float, %a0, %i24
  %i26 = load float, %i25, align 4
  %i27 = getelementptr inbounds %t2, ptr addrspace(3) @g0, i64 0, %i24
  store %i26, %i27, align 4
  %i29 = add i32 %a2, i32 160
  %i30 = zext %i29 to i64
  %i31 = getelementptr inbounds float, %a0, %i30
  %i32 = load float, %i31, align 4
  %i33 = getelementptr inbounds %t2, ptr addrspace(3) @g0, i64 0, %i30
  store %i32, %i33, align 4
  %i35 = add i32 %a2, i32 192
  %i36 = zext %i35 to i64
  %i37 = getelementptr inbounds float, %a0, %i36
  %i38 = load float, %i37, align 4
  %i39 = getelementptr inbounds %t2, ptr addrspace(3) @g0, i64 0, %i36
  store %i38, %i39, align 4
  %i41 = add i32 %a2, i32 224
  %i42 = zext %i41 to i64
  %i43 = getelementptr inbounds float, %a0, %i42
  %i44 = load float, %i43, align 4
  %i45 = getelementptr inbounds %t2, ptr addrspace(3) @g0, i64 0, %i42
  store %i44, %i45, align 4
  tail call void @f3 [air Sync(Barrier { name: Threadgroup, flags: MemFlags { device: false, threadgroup: true, texture: false, threadgroup_imageblock: false, object_data: false }, order: None, scope: Threadgroup, memory: Threadgroup })](i32 2, i32 1) convergent
  %i48 = tail call reassoc nnan ninf nsz arcp contract afn <64 x float> @f17 [air SimdMatrix(Load8x8 { elem: F32, space: Threadgroup })](ptr addrspace(3) @g0, <2 x i64> c54, <2 x i64> c55, <2 x i64> zeroinitializer) convergent arg0( Ref nocapture )
  %i49 = tail call reassoc nnan ninf nsz arcp contract afn <64 x float> @f17 [air SimdMatrix(Load8x8 { elem: F32, space: Threadgroup })](ptr addrspace(3) @g0, <2 x i64> c56, <2 x i64> c57, <2 x i64> c58) convergent arg0( Ref nocapture )
  %i50 = tail call reassoc nnan ninf nsz arcp contract afn <64 x float> @f6 [air SimdMatrix(MultiplyAccumulate8x8 { result: F32, lhs: F32, rhs: F32, acc: F32 })](%i48, %i49, <64 x float> zeroinitializer) convergent
  tail call void @f7 [air SimdMatrix(Store8x8 { elem: F32, space: Device })](%i50, %a1, <2 x i64> c56, <2 x i64> c57, <2 x i64> c60) convergent arg1( Mod nocapture )
  ret void
}

declare %t10 @f3 "air.wg.barrier" convergent

declare %t12 @f4 "air.simdgroup_matrix_8x8_init_diag.v64f32.f32" convergent

declare %t12 @f5 "air.simdgroup_matrix_8x8_init_filled.v64f32.f32" convergent

declare %t13 @f6 "air.simdgroup_matrix_8x8_multiply_accumulate.v64f32.v64f32.v64f32.v64f32" convergent

declare %t16 @f7 "air.simdgroup_matrix_8x8_store.v64f32.p1f32" convergent memory(Mod, Mod, Mod) %a1( Mod nocapture )

declare %t17 @f8 "air.simdgroup_matrix_8x8_load.v64f32.p1f32" convergent memory(Ref, Ref, Ref) %a0( Ref nocapture )

declare %t20 @f9 "air.simdgroup_matrix_8x8_load.v64f16.p1f16" convergent memory(Ref, Ref, Ref) %a0( Ref nocapture )

declare %t23 @f10 "air.simdgroup_matrix_8x8_load.v64bf16.p1bf16" convergent memory(Ref, Ref, Ref) %a0( Ref nocapture )

declare %t24 @f11 "air.simdgroup_matrix_8x8_multiply_accumulate.v64f32.v64f32.v64f16.v64f32" convergent

declare %t25 @f12 "air.simdgroup_matrix_8x8_multiply_accumulate.v64f32.v64f16.v64f16.v64f32" convergent

declare %t26 @f13 "air.simdgroup_matrix_8x8_multiply_accumulate.v64f32.v64bf16.v64bf16.v64f32" convergent

declare %t27 @f14 "air.simdgroup_matrix_8x8_multiply_accumulate.v64f16.v64f16.v64f16.v64f16" convergent

declare %t28 @f15 "air.simdgroup_matrix_8x8_multiply_accumulate.v64f16.v64f32.v64f16.v64f16" convergent

declare %t29 @f16 "air.simdgroup_matrix_8x8_store.v64f16.p1f16" convergent memory(Mod, Mod, Mod) %a1( Mod nocapture )

declare %t30 @f17 "air.simdgroup_matrix_8x8_load.v64f32.p3f32" convergent memory(Ref, Ref, Ref) %a0( Ref nocapture )
!md0 = !"SDK Version"
!md1 = !"wchar_size"
!md2 = !"frame-pointer"
!md3 = !"air.max_device_buffers"
!md4 = !"air.max_constant_buffers"
!md5 = !"air.max_threadgroup_buffers"
!md6 = !"air.max_textures"
!md7 = !"air.max_read_write_textures"
!md8 = !"air.max_samplers"
!md9 = !"air.buffer"
!md10 = !"air.location_index"
!md11 = !"air.read"
!md12 = !"air.address_space"
!md13 = !"air.arg_type_size"
!md14 = !"air.arg_type_align_size"
!md15 = !"air.arg_type_name"
!md16 = !"float"
!md17 = !"air.arg_name"
!md18 = !"in"
!md19 = !"air.read_write"
!md20 = !"out"
!md21 = !"blk"
!md22 = !"air.thread_index_in_simdgroup"
!md23 = !"uint"
!md24 = !"lane"
!md25 = !"fa"
!md26 = !"half"
!md27 = !"ha"
!md28 = !"bfloat"
!md29 = !"ba"
!md30 = !"fo"
!md31 = !"ho"
!md32 = !"air.compile.denorms_disable"
!md33 = !"air.compile.fast_math_enable"
!md34 = !"air.compile.framebuffer_fetch_enable"
!md35 = !"Apple metal version 32023.883 (metalfe-32023.883)"
!md36 = !"Metal"
!md37 = !"omnipotent char"
!md38 = !"Simple C++ TBAA"
!md39 = !"air-alias-scope-arg(0)"
!md40 = !"air-alias-scope-arg(1)"
!md41 = i32 2
!md42 = %t32 c23
!md43 = i32 1
!md44 = i32 4
!md45 = i32 7
!md46 = i32 31
!md47 = i32 128
!md48 = i32 8
!md49 = i32 16
!md50 = ptr addrspace(0) @f0
!md51 = i32 0
!md52 = i32 3
!md53 = ptr addrspace(0) @f1
!md54 = ptr addrspace(0) @f2
!md55 = i64 0
!md56 = !{!md41, !md0, !md42}
!md57 = !{!md43, !md1, !md44}
!md58 = !{!md45, !md2, !md41}
!md59 = !{!md45, !md3, !md46}
!md60 = !{!md45, !md4, !md46}
!md61 = !{!md45, !md5, !md46}
!md62 = !{!md45, !md6, !md47}
!md63 = !{!md45, !md7, !md48}
!md64 = !{!md45, !md8, !md49}
!md65 = !{}
!md66 = !{!md51, !md9, !md10, !md51, !md43, !md11, !md12, !md43, !md13, !md44, !md14, !md44, !md15, !md16, !md17, !md18}
!md67 = !{!md43, !md9, !md10, !md43, !md43, !md19, !md12, !md43, !md13, !md44, !md14, !md44, !md15, !md16, !md17, !md20}
!md68 = !{!md41, !md9, !md10, !md41, !md43, !md19, !md12, !md43, !md13, !md44, !md14, !md44, !md15, !md16, !md17, !md21}
!md69 = !{!md52, !md22, !md15, !md23, !md17, !md24}
!md70 = !{!md66, !md67, !md68, !md69}
!md71 = !{!md50, !md65, !md70}
!md72 = !{!md51, !md9, !md10, !md51, !md43, !md11, !md12, !md43, !md13, !md44, !md14, !md44, !md15, !md16, !md17, !md25}
!md73 = !{!md43, !md9, !md10, !md43, !md43, !md11, !md12, !md43, !md13, !md41, !md14, !md41, !md15, !md26, !md17, !md27}
!md74 = !{!md41, !md9, !md10, !md41, !md43, !md11, !md12, !md43, !md13, !md41, !md14, !md41, !md15, !md28, !md17, !md29}
!md75 = !{!md52, !md9, !md10, !md52, !md43, !md19, !md12, !md43, !md13, !md44, !md14, !md44, !md15, !md16, !md17, !md30}
!md76 = !{!md44, !md9, !md10, !md44, !md43, !md19, !md12, !md43, !md13, !md41, !md14, !md41, !md15, !md26, !md17, !md31}
!md77 = !{!md72, !md73, !md74, !md75, !md76}
!md78 = !{!md53, !md65, !md77}
!md79 = !{!md41, !md22, !md15, !md23, !md17, !md24}
!md80 = !{!md66, !md67, !md79}
!md81 = !{!md54, !md65, !md80}
!md82 = !{!md32}
!md83 = !{!md33}
!md84 = !{!md34}
!md85 = !{!md35}
!md86 = !{!md41, !md48, !md51}
!md87 = !{!md36, !md44, !md51, !md51}
!md88 = !{!md38}
!md89 = !{!md37, !md88, !md55}
!md90 = !{!md16, !md89, !md55}
!md91 = !{!md90, !md90, !md55}
!"llvm.module.flags" = !{!md56, !md57, !md58, !md59, !md60, !md61, !md62, !md63, !md64}
!"air.kernel" = !{!md71, !md78, !md81}
!"air.compile_options" = !{!md82, !md83, !md84}
!"llvm.ident" = !{!md85}
!"air.version" = !{!md86}
!"air.language_version" = !{!md87}
