Fixture: kernel_program_scope_buffers' companions, its inventory rows and its golden printout
The companions compiled from our MSL by scripts/regen-air-fixtures (Apple metal 32023.922, macOS SDK 27.2), the engine inventory's two rows (both translate in every column) and the air_input printout, blessed in potluck job m3-max-70338 on the M3 Max.
This commit is contained in:
1 parent
2dde97928f
commit
4c3cac2956
5 files changed
+334
No files matched your search
@@ -205,6 +205,7 @@ fixture kernel_frexp_ilogb: metal: Apple metal version 32023.921 (metalfe-32023.
|
||||
fixture kernel_imageblock_wide_access: metal: Apple metal version 32023.922 (metalfe-32023.922.4); macosx-sdk: 27.2 (26B118)
|
||||
fixture kernel_inline_asm: metal: Apple metal version 32023.922 (metalfe-32023.922.4); macosx-sdk: 27.2 (26B118)
|
||||
fixture kernel_integer_median3: metal: Apple metal version 32023.922 (metalfe-32023.922.4); macosx-sdk: 27.2 (26B118)
|
||||
fixture kernel_program_scope_buffers: metal: Apple metal version 32023.922 (metalfe-32023.922.4); macosx-sdk: 27.2 (26B118)
|
||||
fixture kernel_read_through: metal: Apple metal version 32023.922 (metalfe-32023.922.4); macosx-sdk: 27.2 (26B118)
|
||||
fixture kernel_read_through_constant: metal: Apple metal version 32023.922 (metalfe-32023.922.4); macosx-sdk: 27.2 (26B118)
|
||||
fixture kernel_signed_remainders: metal: Apple metal version 32023.922 (metalfe-32023.922.4); macosx-sdk: 27.2 (26B118)
|
||||
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
; Generated by scripts/regen-air-fixtures from kernel_program_scope_buffers.metal (typed pointers; xcrun metal-as reassembles it). Do not edit.
|
||||
; ModuleID = '-'
|
||||
source_filename = "-"
|
||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v24:32:32-v32:32:32-v48:64:64-v64:64:64-v96:128:128-v128:128:128-v192:256:256-v256:256:256-v512:512:512-v1024:1024:1024-n8:16:32"
|
||||
target triple = "air64_v28-apple-macosx26.0.0"
|
||||
|
||||
%struct.Scale = type { <4 x float>, i32, [12 x i8] }
|
||||
|
||||
@_ZL9psb_scale = internal unnamed_addr addrspace(2) externally_initialized constant %struct.Scale addrspace(2)* undef, align 8
|
||||
@_ZL9psb_words = internal unnamed_addr addrspace(2) externally_initialized constant i32 addrspace(2)* undef, align 8
|
||||
@_ZL7psb_out = internal unnamed_addr addrspace(2) externally_initialized constant i32 addrspace(1)* undef, align 8
|
||||
|
||||
; Function Attrs: mustprogress nofree nosync nounwind willreturn writeonly
|
||||
define void @program_scope_buffers(i32 addrspace(1)* nocapture noundef writeonly "air-buffer-no-alias" %0, i32 noundef %1) local_unnamed_addr #0 {
|
||||
%3 = load i32 addrspace(2)*, i32 addrspace(2)* addrspace(2)* @_ZL9psb_words, align 8
|
||||
%4 = shl i32 %1, 5
|
||||
%5 = and i32 %4, 32
|
||||
%6 = zext i32 %5 to i64
|
||||
%7 = getelementptr i32, i32 addrspace(2)* %3, i64 %6
|
||||
%8 = zext i32 %1 to i64
|
||||
%9 = getelementptr inbounds i32, i32 addrspace(2)* %7, i64 %8
|
||||
%10 = load i32, i32 addrspace(2)* %9, align 4, !tbaa !27
|
||||
%11 = mul i32 %10, 3
|
||||
%12 = load %struct.Scale addrspace(2)*, %struct.Scale addrspace(2)* addrspace(2)* @_ZL9psb_scale, align 8, !tbaa !31
|
||||
%13 = getelementptr inbounds %struct.Scale, %struct.Scale addrspace(2)* %12, i64 0, i32 1
|
||||
%14 = load i32, i32 addrspace(2)* %13, align 16, !tbaa !33
|
||||
%15 = add i32 %14, %11
|
||||
%16 = getelementptr inbounds i32, i32 addrspace(1)* %0, i64 %8
|
||||
store i32 %15, i32 addrspace(1)* %16, align 4, !tbaa !27, !alias.scope !35
|
||||
%17 = getelementptr inbounds %struct.Scale, %struct.Scale addrspace(2)* %12, i64 0, i32 0
|
||||
%18 = load <4 x float>, <4 x float> addrspace(2)* %17, align 16, !tbaa !38
|
||||
%19 = and i32 %1, 3
|
||||
%20 = extractelement <4 x float> %18, i32 %19
|
||||
%21 = and i32 %10, 255
|
||||
%22 = tail call fast float @air.convert.f.f32.u.i32(i32 %21) #2
|
||||
%23 = fmul fast float %20, %22
|
||||
%24 = load i32 addrspace(1)*, i32 addrspace(1)* addrspace(2)* @_ZL7psb_out, align 8, !tbaa !31
|
||||
%25 = add i32 %1, 64
|
||||
%26 = zext i32 %25 to i64
|
||||
%27 = getelementptr inbounds i32, i32 addrspace(1)* %24, i64 %26
|
||||
%28 = bitcast i32 addrspace(1)* %27 to float addrspace(1)*
|
||||
store float %23, float addrspace(1)* %28, align 4, !tbaa !27
|
||||
ret void
|
||||
}
|
||||
|
||||
; Function Attrs: mustprogress nofree nosync nounwind readnone willreturn
|
||||
declare float @air.convert.f.f32.u.i32(i32) local_unnamed_addr #1
|
||||
|
||||
attributes #0 = { mustprogress nofree 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 #1 = { mustprogress nofree nosync nounwind readnone willreturn }
|
||||
attributes #2 = { nounwind readnone willreturn }
|
||||
|
||||
!llvm.module.flags = !{!0, !1, !2, !3, !4, !5, !6, !7, !8}
|
||||
!air.kernel = !{!9}
|
||||
!air.compile_options = !{!14, !15, !16}
|
||||
!air.global_bindings = !{!17, !20, !22}
|
||||
!llvm.ident = !{!24}
|
||||
!air.version = !{!25}
|
||||
!air.language_version = !{!26}
|
||||
|
||||
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 27, i32 2]}
|
||||
!1 = !{i32 1, !"wchar_size", i32 4}
|
||||
!2 = !{i32 7, !"frame-pointer", i32 2}
|
||||
!3 = !{i32 7, !"air.max_device_buffers", i32 31}
|
||||
!4 = !{i32 7, !"air.max_constant_buffers", i32 31}
|
||||
!5 = !{i32 7, !"air.max_threadgroup_buffers", i32 31}
|
||||
!6 = !{i32 7, !"air.max_textures", i32 128}
|
||||
!7 = !{i32 7, !"air.max_read_write_textures", i32 8}
|
||||
!8 = !{i32 7, !"air.max_samplers", i32 16}
|
||||
!9 = !{void (i32 addrspace(1)*, i32)* @program_scope_buffers, !10, !11}
|
||||
!10 = !{}
|
||||
!11 = !{!12, !13}
|
||||
!12 = !{i32 0, !"air.buffer", !"air.location_index", i32 0, i32 1, !"air.read_write", !"air.address_space", i32 1, !"air.arg_type_size", i32 4, !"air.arg_type_align_size", i32 4, !"air.arg_type_name", !"uint", !"air.arg_name", !"out"}
|
||||
!13 = !{i32 1, !"air.thread_position_in_grid", !"air.arg_type_name", !"uint", !"air.arg_name", !"i"}
|
||||
!14 = !{!"air.compile.denorms_disable"}
|
||||
!15 = !{!"air.compile.fast_math_enable"}
|
||||
!16 = !{!"air.compile.framebuffer_fetch_enable"}
|
||||
!17 = !{!"air.global_binding", %struct.Scale addrspace(2)* addrspace(2)* @_ZL9psb_scale, !18}
|
||||
!18 = !{i32 -1, !"air.buffer", !"air.location_index", i32 1, i32 1, !"air.read", !"air.address_space", i32 2, !"air.struct_type_info", !19, !"air.arg_type_size", i32 32, !"air.arg_type_align_size", i32 16, !"air.arg_type_name", !"Scale", !"air.arg_name", !"psb_scale"}
|
||||
!19 = !{i32 0, i32 16, i32 0, !"float4", !"gain", i32 16, i32 4, i32 0, !"uint", !"bias"}
|
||||
!20 = !{!"air.global_binding", i32 addrspace(2)* addrspace(2)* @_ZL9psb_words, !21}
|
||||
!21 = !{i32 -1, !"air.buffer", !"air.location_index", i32 2, i32 1, !"air.read", !"air.address_space", i32 2, !"air.arg_type_size", i32 4, !"air.arg_type_align_size", i32 4, !"air.arg_type_name", !"uint", !"air.arg_name", !"psb_words"}
|
||||
!22 = !{!"air.global_binding", i32 addrspace(1)* addrspace(2)* @_ZL7psb_out, !23}
|
||||
!23 = !{i32 -1, !"air.buffer", !"air.location_index", i32 0, i32 1, !"air.read_write", !"air.address_space", i32 1, !"air.arg_type_size", i32 4, !"air.arg_type_align_size", i32 4, !"air.arg_type_name", !"uint", !"air.arg_name", !"psb_out"}
|
||||
!24 = !{!"Apple metal version 32023.922 (metalfe-32023.922.4)"}
|
||||
!25 = !{i32 2, i32 8, i32 0}
|
||||
!26 = !{!"Metal", i32 4, i32 0, i32 0}
|
||||
!27 = !{!28, !28, i64 0}
|
||||
!28 = !{!"int", !29, i64 0}
|
||||
!29 = !{!"omnipotent char", !30, i64 0}
|
||||
!30 = !{!"Simple C++ TBAA"}
|
||||
!31 = !{!32, !32, i64 0}
|
||||
!32 = !{!"any pointer", !29, i64 0}
|
||||
!33 = !{!34, !28, i64 16}
|
||||
!34 = !{!"_ZTS5Scale", !29, i64 0, !28, i64 16}
|
||||
!35 = !{!36}
|
||||
!36 = distinct !{!36, !37, !"air-alias-scope-arg(0)"}
|
||||
!37 = distinct !{!37, !"air-alias-scopes(program_scope_buffers)"}
|
||||
!38 = !{!29, !29, i64 0}
|
||||
@@ -0,0 +1,99 @@
|
||||
; Generated by scripts/regen-air-fixtures from kernel_program_scope_buffers.metal (llvm-dis of kernel_program_scope_buffers.air). Do not edit.
|
||||
; ModuleID = '<stdin>'
|
||||
source_filename = "-"
|
||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v24:32:32-v32:32:32-v48:64:64-v64:64:64-v96:128:128-v128:128:128-v192:256:256-v256:256:256-v512:512:512-v1024:1024:1024-n8:16:32"
|
||||
target triple = "air64_v28-apple-macosx26.0.0"
|
||||
|
||||
%struct.Scale = type { <4 x float>, i32, [12 x i8] }
|
||||
|
||||
@_ZL9psb_scale = internal unnamed_addr addrspace(2) externally_initialized constant ptr addrspace(2) undef, align 8
|
||||
@_ZL9psb_words = internal unnamed_addr addrspace(2) externally_initialized constant ptr addrspace(2) undef, align 8
|
||||
@_ZL7psb_out = internal unnamed_addr addrspace(2) externally_initialized constant ptr addrspace(1) undef, align 8
|
||||
|
||||
; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(write)
|
||||
define void @program_scope_buffers(ptr addrspace(1) noundef writeonly captures(none) "air-buffer-no-alias" %0, i32 noundef %1) local_unnamed_addr #0 {
|
||||
%3 = load ptr addrspace(2), ptr addrspace(2) @_ZL9psb_words, align 8
|
||||
%4 = shl i32 %1, 5
|
||||
%5 = and i32 %4, 32
|
||||
%6 = zext i32 %5 to i64
|
||||
%7 = getelementptr i32, ptr addrspace(2) %3, i64 %6
|
||||
%8 = zext i32 %1 to i64
|
||||
%9 = getelementptr inbounds i32, ptr addrspace(2) %7, i64 %8
|
||||
%10 = load i32, ptr addrspace(2) %9, align 4, !tbaa !27
|
||||
%11 = mul i32 %10, 3
|
||||
%12 = load ptr addrspace(2), ptr addrspace(2) @_ZL9psb_scale, align 8, !tbaa !31
|
||||
%13 = getelementptr inbounds %struct.Scale, ptr addrspace(2) %12, i64 0, i32 1
|
||||
%14 = load i32, ptr addrspace(2) %13, align 16, !tbaa !33
|
||||
%15 = add i32 %14, %11
|
||||
%16 = getelementptr inbounds i32, ptr addrspace(1) %0, i64 %8
|
||||
store i32 %15, ptr addrspace(1) %16, align 4, !tbaa !27, !alias.scope !35
|
||||
%17 = getelementptr inbounds %struct.Scale, ptr addrspace(2) %12, i64 0, i32 0
|
||||
%18 = load <4 x float>, ptr addrspace(2) %17, align 16, !tbaa !38
|
||||
%19 = and i32 %1, 3
|
||||
%20 = extractelement <4 x float> %18, i32 %19
|
||||
%21 = and i32 %10, 255
|
||||
%22 = tail call fast float @air.convert.f.f32.u.i32(i32 %21) #2
|
||||
%23 = fmul fast float %20, %22
|
||||
%24 = load ptr addrspace(1), ptr addrspace(2) @_ZL7psb_out, align 8, !tbaa !31
|
||||
%25 = add i32 %1, 64
|
||||
%26 = zext i32 %25 to i64
|
||||
%27 = getelementptr inbounds i32, ptr addrspace(1) %24, i64 %26
|
||||
%28 = bitcast ptr addrspace(1) %27 to ptr addrspace(1)
|
||||
store float %23, ptr addrspace(1) %28, align 4, !tbaa !27
|
||||
ret void
|
||||
}
|
||||
|
||||
; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
|
||||
declare float @air.convert.f.f32.u.i32(i32) local_unnamed_addr #1
|
||||
|
||||
attributes #0 = { mustprogress nofree 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 #1 = { mustprogress nofree nosync nounwind willreturn memory(none) }
|
||||
attributes #2 = { nounwind willreturn memory(none) }
|
||||
|
||||
!llvm.module.flags = !{!0, !1, !2, !3, !4, !5, !6, !7, !8}
|
||||
!air.kernel = !{!9}
|
||||
!air.compile_options = !{!14, !15, !16}
|
||||
!air.global_bindings = !{!17, !20, !22}
|
||||
!llvm.ident = !{!24}
|
||||
!air.version = !{!25}
|
||||
!air.language_version = !{!26}
|
||||
|
||||
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 27, i32 2]}
|
||||
!1 = !{i32 1, !"wchar_size", i32 4}
|
||||
!2 = !{i32 7, !"frame-pointer", i32 2}
|
||||
!3 = !{i32 7, !"air.max_device_buffers", i32 31}
|
||||
!4 = !{i32 7, !"air.max_constant_buffers", i32 31}
|
||||
!5 = !{i32 7, !"air.max_threadgroup_buffers", i32 31}
|
||||
!6 = !{i32 7, !"air.max_textures", i32 128}
|
||||
!7 = !{i32 7, !"air.max_read_write_textures", i32 8}
|
||||
!8 = !{i32 7, !"air.max_samplers", i32 16}
|
||||
!9 = !{ptr @program_scope_buffers, !10, !11}
|
||||
!10 = !{}
|
||||
!11 = !{!12, !13}
|
||||
!12 = !{i32 0, !"air.buffer", !"air.location_index", i32 0, i32 1, !"air.read_write", !"air.address_space", i32 1, !"air.arg_type_size", i32 4, !"air.arg_type_align_size", i32 4, !"air.arg_type_name", !"uint", !"air.arg_name", !"out"}
|
||||
!13 = !{i32 1, !"air.thread_position_in_grid", !"air.arg_type_name", !"uint", !"air.arg_name", !"i"}
|
||||
!14 = !{!"air.compile.denorms_disable"}
|
||||
!15 = !{!"air.compile.fast_math_enable"}
|
||||
!16 = !{!"air.compile.framebuffer_fetch_enable"}
|
||||
!17 = !{!"air.global_binding", ptr addrspace(2) @_ZL9psb_scale, !18}
|
||||
!18 = !{i32 -1, !"air.buffer", !"air.location_index", i32 1, i32 1, !"air.read", !"air.address_space", i32 2, !"air.struct_type_info", !19, !"air.arg_type_size", i32 32, !"air.arg_type_align_size", i32 16, !"air.arg_type_name", !"Scale", !"air.arg_name", !"psb_scale"}
|
||||
!19 = !{i32 0, i32 16, i32 0, !"float4", !"gain", i32 16, i32 4, i32 0, !"uint", !"bias"}
|
||||
!20 = !{!"air.global_binding", ptr addrspace(2) @_ZL9psb_words, !21}
|
||||
!21 = !{i32 -1, !"air.buffer", !"air.location_index", i32 2, i32 1, !"air.read", !"air.address_space", i32 2, !"air.arg_type_size", i32 4, !"air.arg_type_align_size", i32 4, !"air.arg_type_name", !"uint", !"air.arg_name", !"psb_words"}
|
||||
!22 = !{!"air.global_binding", ptr addrspace(2) @_ZL7psb_out, !23}
|
||||
!23 = !{i32 -1, !"air.buffer", !"air.location_index", i32 0, i32 1, !"air.read_write", !"air.address_space", i32 1, !"air.arg_type_size", i32 4, !"air.arg_type_align_size", i32 4, !"air.arg_type_name", !"uint", !"air.arg_name", !"psb_out"}
|
||||
!24 = !{!"Apple metal version 32023.922 (metalfe-32023.922.4)"}
|
||||
!25 = !{i32 2, i32 8, i32 0}
|
||||
!26 = !{!"Metal", i32 4, i32 0, i32 0}
|
||||
!27 = !{!28, !28, i64 0}
|
||||
!28 = !{!"int", !29, i64 0}
|
||||
!29 = !{!"omnipotent char", !30, i64 0}
|
||||
!30 = !{!"Simple C++ TBAA"}
|
||||
!31 = !{!32, !32, i64 0}
|
||||
!32 = !{!"any pointer", !29, i64 0}
|
||||
!33 = !{!34, !28, i64 16}
|
||||
!34 = !{!"_ZTS5Scale", !29, i64 0, !28, i64 16}
|
||||
!35 = !{!36}
|
||||
!36 = distinct !{!36, !37, !"air-alias-scope-arg(0)"}
|
||||
!37 = distinct !{!37, !"air-alias-scopes(program_scope_buffers)"}
|
||||
!38 = !{!29, !29, i64 0}
|
||||
@@ -0,0 +1,133 @@
|
||||
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: [] }
|
||||
%t5 = type void (ptr addrspace(1), i32)
|
||||
%t7 = type float (i32)
|
||||
%t9 = type [2 x i32]
|
||||
%t13 = type [12 x i8]
|
||||
%t14 = type { <4 x float>, i32, %t13 } ; "struct.Scale"
|
||||
c9 = %t9 [27, 2]
|
||||
@g0 "_ZL9psb_scale" = internal externally_initialized addrspace(2) constant ptr addrspace(2) undef, align 8
|
||||
@g1 "_ZL9psb_words" = internal externally_initialized addrspace(2) constant ptr addrspace(2) undef, align 8
|
||||
@g2 "_ZL7psb_out" = internal externally_initialized addrspace(2) constant ptr addrspace(1) undef, align 8
|
||||
|
||||
define %t5 @f0 "program_scope_buffers" memory(Mod, Mod, Mod) "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
|
||||
bb0:
|
||||
%i0 = load ptr addrspace(2), ptr addrspace(2) @g1, align 8
|
||||
%i1 = shl i32 %a1, i32 5
|
||||
%i2 = and i32 %i1, i32 32
|
||||
%i3 = zext %i2 to i64
|
||||
%i4 = getelementptr i32, %i0, %i3
|
||||
%i5 = zext %a1 to i64
|
||||
%i6 = getelementptr inbounds i32, %i4, %i5
|
||||
%i7 = load i32, %i6, align 4
|
||||
%i8 = mul i32 %i7, i32 3
|
||||
%i9 = load ptr addrspace(2), ptr addrspace(2) @g0, align 8
|
||||
%i10 = getelementptr inbounds %t14, %i9, i64 0, i32 1
|
||||
%i11 = load i32, %i10, align 16
|
||||
%i12 = add i32 %i11, %i8
|
||||
%i13 = getelementptr inbounds i32, %a0, %i5
|
||||
store %i12, %i13, align 4
|
||||
%i15 = getelementptr inbounds %t14, %i9, i64 0, i32 0
|
||||
%i16 = load <4 x float>, %i15, align 16
|
||||
%i17 = and i32 %a1, i32 3
|
||||
%i18 = extractelement %i16, %i17
|
||||
%i19 = and i32 %i7, i32 255
|
||||
%i20 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i19)
|
||||
%i21 = fmul reassoc nnan ninf nsz arcp contract afn float %i18, %i20
|
||||
%i22 = load ptr addrspace(1), ptr addrspace(2) @g2, align 8
|
||||
%i23 = add i32 %a1, i32 64
|
||||
%i24 = zext %i23 to i64
|
||||
%i25 = getelementptr inbounds i32, %i22, %i24
|
||||
%i26 = bitcast %i25 to ptr addrspace(1)
|
||||
store %i21, %i26, align 4
|
||||
ret void
|
||||
}
|
||||
|
||||
declare %t7 @f1 "air.convert.f.f32.u.i32" memory(NoModRef, NoModRef, NoModRef)
|
||||
!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_write"
|
||||
!md12 = !"air.address_space"
|
||||
!md13 = !"air.arg_type_size"
|
||||
!md14 = !"air.arg_type_align_size"
|
||||
!md15 = !"air.arg_type_name"
|
||||
!md16 = !"uint"
|
||||
!md17 = !"air.arg_name"
|
||||
!md18 = !"out"
|
||||
!md19 = !"air.thread_position_in_grid"
|
||||
!md20 = !"i"
|
||||
!md21 = !"air.compile.denorms_disable"
|
||||
!md22 = !"air.compile.fast_math_enable"
|
||||
!md23 = !"air.compile.framebuffer_fetch_enable"
|
||||
!md24 = !"air.global_binding"
|
||||
!md25 = !"air.read"
|
||||
!md26 = !"air.struct_type_info"
|
||||
!md27 = !"float4"
|
||||
!md28 = !"gain"
|
||||
!md29 = !"bias"
|
||||
!md30 = !"Scale"
|
||||
!md31 = !"psb_scale"
|
||||
!md32 = !"psb_words"
|
||||
!md33 = !"psb_out"
|
||||
!md34 = !"Apple metal version 32023.922 (metalfe-32023.922.4)"
|
||||
!md35 = !"Metal"
|
||||
!md36 = i32 2
|
||||
!md37 = %t9 c9
|
||||
!md38 = i32 1
|
||||
!md39 = i32 4
|
||||
!md40 = i32 7
|
||||
!md41 = i32 31
|
||||
!md42 = i32 128
|
||||
!md43 = i32 8
|
||||
!md44 = i32 16
|
||||
!md45 = ptr addrspace(0) @f0
|
||||
!md46 = i32 0
|
||||
!md47 = ptr addrspace(2) @g0
|
||||
!md48 = i32 4294967295
|
||||
!md49 = i32 32
|
||||
!md50 = ptr addrspace(2) @g1
|
||||
!md51 = ptr addrspace(2) @g2
|
||||
!md52 = !{!md36, !md0, !md37}
|
||||
!md53 = !{!md38, !md1, !md39}
|
||||
!md54 = !{!md40, !md2, !md36}
|
||||
!md55 = !{!md40, !md3, !md41}
|
||||
!md56 = !{!md40, !md4, !md41}
|
||||
!md57 = !{!md40, !md5, !md41}
|
||||
!md58 = !{!md40, !md6, !md42}
|
||||
!md59 = !{!md40, !md7, !md43}
|
||||
!md60 = !{!md40, !md8, !md44}
|
||||
!md61 = !{}
|
||||
!md62 = !{!md46, !md9, !md10, !md46, !md38, !md11, !md12, !md38, !md13, !md39, !md14, !md39, !md15, !md16, !md17, !md18}
|
||||
!md63 = !{!md38, !md19, !md15, !md16, !md17, !md20}
|
||||
!md64 = !{!md62, !md63}
|
||||
!md65 = !{!md45, !md61, !md64}
|
||||
!md66 = !{!md21}
|
||||
!md67 = !{!md22}
|
||||
!md68 = !{!md23}
|
||||
!md69 = !{!md46, !md44, !md46, !md27, !md28, !md44, !md39, !md46, !md16, !md29}
|
||||
!md70 = !{!md48, !md9, !md10, !md38, !md38, !md25, !md12, !md36, !md26, !md69, !md13, !md49, !md14, !md44, !md15, !md30, !md17, !md31}
|
||||
!md71 = !{!md24, !md47, !md70}
|
||||
!md72 = !{!md48, !md9, !md10, !md36, !md38, !md25, !md12, !md36, !md13, !md39, !md14, !md39, !md15, !md16, !md17, !md32}
|
||||
!md73 = !{!md24, !md50, !md72}
|
||||
!md74 = !{!md48, !md9, !md10, !md46, !md38, !md11, !md12, !md38, !md13, !md39, !md14, !md39, !md15, !md16, !md17, !md33}
|
||||
!md75 = !{!md24, !md51, !md74}
|
||||
!md76 = !{!md34}
|
||||
!md77 = !{!md36, !md43, !md46}
|
||||
!md78 = !{!md35, !md39, !md46, !md46}
|
||||
!"llvm.module.flags" = !{!md52, !md53, !md54, !md55, !md56, !md57, !md58, !md59, !md60}
|
||||
!"air.kernel" = !{!md65}
|
||||
!"air.compile_options" = !{!md66, !md67, !md68}
|
||||
!"air.global_bindings" = !{!md71, !md73, !md75}
|
||||
!"llvm.ident" = !{!md76}
|
||||
!"air.version" = !{!md77}
|
||||
!"air.language_version" = !{!md78}
|
||||
@@ -1666,6 +1666,8 @@ engine/kernel_integer_median3.air.ll median3_ops ok ok ok ok ok ok ok ok ok ok o
|
||||
engine/kernel_integer_median3.ll median3_ops ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/kernel_nested_loop_constant_weight_walk.air.ll nested_loop_constant_weight_walk ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/kernel_nested_loop_constant_weight_walk.ll nested_loop_constant_weight_walk ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/kernel_program_scope_buffers.air.ll program_scope_buffers ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/kernel_program_scope_buffers.ll program_scope_buffers ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/kernel_read_through.air.ll rt_repeat ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/kernel_read_through.air.ll rt_zero ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/kernel_read_through.air.ll rt_border_ob ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
|
||||
|
Can't render this file because it is too large.
|
Reference in new issue
Block a user