Fixtures: coherent_texture_handoff's companions, and its inventory rows
The typed .air.ll and the opaque .ll from scripts/regen-air-fixtures on the M3 (m3-max-83664: Metal 32023.922, SDK 27.2 26B118), and the fixture's TOOLCHAIN line. Apple's compiler names the texture's read and write air.read_texture_2d.device_coherent.u.v4i32 and air.write_texture_2d.device_coherent.u.v4i32, the writer's fence air.atomic.fence(i32 4, i32 3, i32 2) and the reader's air.atomic.fence(i32 4, i32 2, i32 2) (texture memory, release or acquire, device scope), and the flag's add and load air.atomic.global.add.u.i32 and air.atomic.global.load.i32 at relaxed order and device scope. The engine inventory gets four rows, the two kernels from each text. Each reads and writes a uint texture2d declared read_write, as format_scout's scout_read_write_u does, and takes its row: ok on every profile but the three Intel profiles and the runtime floor, which have no storage-image read without a format and need the texture's format (NeedsInput StorageTextureFormat at texture 0).
This commit is contained in:
1 parent
3994ea73dc
commit
5410866d9a
4 files changed
+383
No files matched your search
@@ -47,6 +47,7 @@ fixture cfit_fragment_tile_memory: metal: Apple metal version 32023.921 (metalfe
|
||||
fixture cfit_tile_imageblock: metal: Apple metal version 32023.921 (metalfe-32023.921.6); macosx-sdk: 27.0 (26A425)
|
||||
fixture cfit_tile_memory: metal: Apple metal version 32023.921 (metalfe-32023.921.6); macosx-sdk: 27.0 (26A425)
|
||||
fixture cof_offsets: metal: Apple metal version 32023.922 (metalfe-32023.922.4); macosx-sdk: 27.2 (26B118)
|
||||
fixture coherent_texture_handoff: metal: Apple metal version 32023.922 (metalfe-32023.922.4); macosx-sdk: 27.2 (26B118)
|
||||
fixture color_groups: metal: Apple metal version 32023.921 (metalfe-32023.921.6); macosx-sdk: 27.0 (26A425)
|
||||
fixture color_groups_fetch: metal: Apple metal version 32023.921 (metalfe-32023.921.6); macosx-sdk: 27.0 (26A425)
|
||||
fixture compute_thread_limit: metal: Apple metal version 32023.922 (metalfe-32023.922.4); macosx-sdk: 27.2 (26B118)
|
||||
|
||||
+190
@@ -0,0 +1,190 @@
|
||||
; Generated by scripts/regen-air-fixtures from coherent_texture_handoff.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_v29-apple-macosx27.0.0"
|
||||
|
||||
%struct._texture_2d_t = type opaque
|
||||
%"struct.metal::_atomic" = type { i32 }
|
||||
%struct._sampler_t = type opaque
|
||||
|
||||
; Function Attrs: mustprogress nounwind
|
||||
define void @coherent_texture_handoff(%struct._texture_2d_t addrspace(1)* %0, %"struct.metal::_atomic" addrspace(1)* nocapture noundef "air-buffer-no-alias" %1, i32 addrspace(1)* nocapture noundef writeonly "air-buffer-no-alias" %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #0 {
|
||||
%6 = insertelement <2 x i32> <i32 poison, i32 0>, i32 %4, i64 0
|
||||
%7 = icmp eq i32 %3, 0
|
||||
br i1 %7, label %10, label %8
|
||||
|
||||
8: ; preds = %5
|
||||
%9 = getelementptr inbounds %"struct.metal::_atomic", %"struct.metal::_atomic" addrspace(1)* %1, i64 0, i32 0
|
||||
br label %28
|
||||
|
||||
10: ; preds = %5
|
||||
%11 = add i32 %4, 1000
|
||||
%12 = insertelement <4 x i32> poison, i32 %11, i64 0
|
||||
%13 = shufflevector <4 x i32> %12, <4 x i32> poison, <4 x i32> zeroinitializer
|
||||
tail call void @air.write_texture_2d.device_coherent.u.v4i32(%struct._texture_2d_t addrspace(1)* nocapture %0, <2 x i32> %6, <4 x i32> %13, i32 0, i32 3) #5, !alias.scope !27, !noalias !30
|
||||
tail call void @air.atomic.fence(i32 4, i32 3, i32 2) #6
|
||||
%14 = getelementptr inbounds %"struct.metal::_atomic", %"struct.metal::_atomic" addrspace(1)* %1, i64 0, i32 0
|
||||
%15 = tail call i32 @air.atomic.global.add.u.i32(i32 addrspace(1)* nocapture %14, i32 1, i32 0, i32 2, i32 0, i1 false) #6
|
||||
br label %35
|
||||
|
||||
16: ; preds = %28
|
||||
tail call void @air.atomic.fence(i32 4, i32 2, i32 2) #6
|
||||
%17 = tail call %struct._sampler_t addrspace(2)* @air.get_read_sampler() #7
|
||||
%18 = tail call { <4 x i32>, i8 } @air.read_texture_2d.device_coherent.u.v4i32(%struct._texture_2d_t addrspace(1)* nocapture readonly %0, %struct._sampler_t addrspace(2)* %17, <2 x i32> %6, <2 x i32> zeroinitializer, i32 0, i32 3) #8
|
||||
%19 = extractvalue { <4 x i32>, i8 } %18, 0
|
||||
%20 = extractelement <4 x i32> %19, i64 0
|
||||
%21 = icmp eq i32 %30, 64
|
||||
%22 = add i32 %4, 1000
|
||||
%23 = icmp ne i32 %20, %22
|
||||
%24 = select i1 %21, i1 %23, i1 false
|
||||
%25 = select i1 %24, i32 2, i32 1
|
||||
%26 = zext i32 %4 to i64
|
||||
%27 = getelementptr inbounds i32, i32 addrspace(1)* %2, i64 %26
|
||||
store i32 %25, i32 addrspace(1)* %27, align 4, !tbaa !33, !alias.scope !37, !noalias !38
|
||||
br label %35
|
||||
|
||||
28: ; preds = %8, %28
|
||||
%29 = phi i32 [ 0, %8 ], [ %31, %28 ]
|
||||
%30 = tail call i32 @air.atomic.global.load.i32(i32 addrspace(1)* nocapture %9, i32 0, i32 2, i32 0, i1 false) #6
|
||||
%31 = add nuw nsw i32 %29, 1
|
||||
%32 = icmp ult i32 %29, 4095
|
||||
%33 = icmp ult i32 %30, 64
|
||||
%34 = select i1 %32, i1 %33, i1 false
|
||||
br i1 %34, label %28, label %16, !llvm.loop !39
|
||||
|
||||
35: ; preds = %16, %10
|
||||
ret void
|
||||
}
|
||||
|
||||
; Function Attrs: mustprogress nounwind
|
||||
define void @coherent_texture_handoff_seen(%struct._texture_2d_t addrspace(1)* %0, %"struct.metal::_atomic" addrspace(1)* nocapture noundef "air-buffer-no-alias" %1, <2 x i32> addrspace(1)* nocapture noundef writeonly "air-buffer-no-alias" %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #0 {
|
||||
%6 = insertelement <2 x i32> <i32 poison, i32 0>, i32 %4, i64 0
|
||||
%7 = icmp eq i32 %3, 0
|
||||
br i1 %7, label %10, label %8
|
||||
|
||||
8: ; preds = %5
|
||||
%9 = getelementptr inbounds %"struct.metal::_atomic", %"struct.metal::_atomic" addrspace(1)* %1, i64 0, i32 0
|
||||
br label %25
|
||||
|
||||
10: ; preds = %5
|
||||
%11 = add i32 %4, 1000
|
||||
%12 = insertelement <4 x i32> poison, i32 %11, i64 0
|
||||
%13 = shufflevector <4 x i32> %12, <4 x i32> poison, <4 x i32> zeroinitializer
|
||||
tail call void @air.write_texture_2d.device_coherent.u.v4i32(%struct._texture_2d_t addrspace(1)* nocapture %0, <2 x i32> %6, <4 x i32> %13, i32 0, i32 3) #5, !alias.scope !41, !noalias !44
|
||||
tail call void @air.atomic.fence(i32 4, i32 3, i32 2) #6
|
||||
%14 = getelementptr inbounds %"struct.metal::_atomic", %"struct.metal::_atomic" addrspace(1)* %1, i64 0, i32 0
|
||||
%15 = tail call i32 @air.atomic.global.add.u.i32(i32 addrspace(1)* nocapture %14, i32 1, i32 0, i32 2, i32 0, i1 false) #6
|
||||
br label %32
|
||||
|
||||
16: ; preds = %25
|
||||
tail call void @air.atomic.fence(i32 4, i32 2, i32 2) #6
|
||||
%17 = insertelement <2 x i32> undef, i32 %27, i64 0
|
||||
%18 = tail call %struct._sampler_t addrspace(2)* @air.get_read_sampler() #7
|
||||
%19 = tail call { <4 x i32>, i8 } @air.read_texture_2d.device_coherent.u.v4i32(%struct._texture_2d_t addrspace(1)* nocapture readonly %0, %struct._sampler_t addrspace(2)* %18, <2 x i32> %6, <2 x i32> zeroinitializer, i32 0, i32 3) #8
|
||||
%20 = extractvalue { <4 x i32>, i8 } %19, 0
|
||||
%21 = extractelement <4 x i32> %20, i64 0
|
||||
%22 = insertelement <2 x i32> %17, i32 %21, i64 1
|
||||
%23 = zext i32 %4 to i64
|
||||
%24 = getelementptr inbounds <2 x i32>, <2 x i32> addrspace(1)* %2, i64 %23
|
||||
store <2 x i32> %22, <2 x i32> addrspace(1)* %24, align 8, !tbaa !33, !alias.scope !47, !noalias !48
|
||||
br label %32
|
||||
|
||||
25: ; preds = %8, %25
|
||||
%26 = phi i32 [ 0, %8 ], [ %28, %25 ]
|
||||
%27 = tail call i32 @air.atomic.global.load.i32(i32 addrspace(1)* nocapture %9, i32 0, i32 2, i32 0, i1 false) #6
|
||||
%28 = add nuw nsw i32 %26, 1
|
||||
%29 = icmp ult i32 %26, 4095
|
||||
%30 = icmp ult i32 %27, 64
|
||||
%31 = select i1 %29, i1 %30, i1 false
|
||||
br i1 %31, label %25, label %16, !llvm.loop !49
|
||||
|
||||
32: ; preds = %16, %10
|
||||
ret void
|
||||
}
|
||||
|
||||
; Function Attrs: mustprogress nounwind willreturn
|
||||
declare void @air.atomic.fence(i32, i32, i32) local_unnamed_addr #1
|
||||
|
||||
; Function Attrs: argmemonly mustprogress nounwind willreturn
|
||||
declare void @air.write_texture_2d.device_coherent.u.v4i32(%struct._texture_2d_t addrspace(1)* nocapture, <2 x i32>, <4 x i32>, i32, i32) local_unnamed_addr #2
|
||||
|
||||
; Function Attrs: mustprogress nounwind willreturn
|
||||
declare i32 @air.atomic.global.add.u.i32(i32 addrspace(1)* nocapture, i32, i32, i32, i32, i1) local_unnamed_addr #1
|
||||
|
||||
; Function Attrs: mustprogress nounwind willreturn
|
||||
declare i32 @air.atomic.global.load.i32(i32 addrspace(1)* nocapture, i32, i32, i32, i1) local_unnamed_addr #1
|
||||
|
||||
; Function Attrs: inaccessiblememonly mustprogress nofree nounwind readonly willreturn
|
||||
declare %struct._sampler_t addrspace(2)* @air.get_read_sampler() local_unnamed_addr #3
|
||||
|
||||
; Function Attrs: argmemonly mustprogress nofree nounwind readonly willreturn
|
||||
declare { <4 x i32>, i8 } @air.read_texture_2d.device_coherent.u.v4i32(%struct._texture_2d_t addrspace(1)* nocapture readonly, %struct._sampler_t addrspace(2)*, <2 x i32>, <2 x i32>, i32, i32) local_unnamed_addr #4
|
||||
|
||||
attributes #0 = { mustprogress nounwind "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "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 nounwind willreturn }
|
||||
attributes #2 = { argmemonly mustprogress nounwind willreturn }
|
||||
attributes #3 = { inaccessiblememonly mustprogress nofree nounwind readonly willreturn }
|
||||
attributes #4 = { argmemonly mustprogress nofree nounwind readonly willreturn }
|
||||
attributes #5 = { argmemonly nounwind willreturn }
|
||||
attributes #6 = { nounwind willreturn }
|
||||
attributes #7 = { inaccessiblememonly nounwind readonly willreturn }
|
||||
attributes #8 = { argmemonly nounwind readonly willreturn }
|
||||
|
||||
!llvm.module.flags = !{!0, !1, !2, !3, !4, !5, !6, !7, !8}
|
||||
!air.kernel = !{!9, !18}
|
||||
!air.compile_options = !{!21, !22, !23}
|
||||
!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 (%struct._texture_2d_t addrspace(1)*, %"struct.metal::_atomic" addrspace(1)*, i32 addrspace(1)*, i32, i32)* @coherent_texture_handoff, !10, !11}
|
||||
!10 = !{}
|
||||
!11 = !{!12, !13, !15, !16, !17}
|
||||
!12 = !{i32 0, !"air.texture", !"air.location_index", i32 0, i32 1, !"air.read_write", !"air.arg_type_name", !"texture2d<uint, read_write>", !"air.arg_name", !"tex"}
|
||||
!13 = !{i32 1, !"air.buffer", !"air.location_index", i32 0, i32 1, !"air.read_write", !"air.address_space", i32 1, !"air.struct_type_info", !14, !"air.arg_type_size", i32 4, !"air.arg_type_align_size", i32 4, !"air.arg_type_name", !"metal::_atomic", !"air.arg_name", !"flag"}
|
||||
!14 = !{i32 0, i32 4, i32 0, !"uint", !"__s"}
|
||||
!15 = !{i32 2, !"air.buffer", !"air.location_index", i32 1, 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"}
|
||||
!16 = !{i32 3, !"air.threadgroup_position_in_grid", !"air.arg_type_name", !"uint", !"air.arg_name", !"group"}
|
||||
!17 = !{i32 4, !"air.thread_position_in_threadgroup", !"air.arg_type_name", !"uint", !"air.arg_name", !"i"}
|
||||
!18 = !{void (%struct._texture_2d_t addrspace(1)*, %"struct.metal::_atomic" addrspace(1)*, <2 x i32> addrspace(1)*, i32, i32)* @coherent_texture_handoff_seen, !10, !19}
|
||||
!19 = !{!12, !13, !20, !16, !17}
|
||||
!20 = !{i32 2, !"air.buffer", !"air.location_index", i32 1, i32 1, !"air.read_write", !"air.address_space", i32 1, !"air.arg_type_size", i32 8, !"air.arg_type_align_size", i32 8, !"air.arg_type_name", !"uint2", !"air.arg_name", !"out"}
|
||||
!21 = !{!"air.compile.denorms_disable"}
|
||||
!22 = !{!"air.compile.fast_math_enable"}
|
||||
!23 = !{!"air.compile.framebuffer_fetch_enable"}
|
||||
!24 = !{!"Apple metal version 32023.922 (metalfe-32023.922.4)"}
|
||||
!25 = !{i32 2, i32 9, i32 0}
|
||||
!26 = !{!"Metal", i32 4, i32 1, i32 0}
|
||||
!27 = !{!28}
|
||||
!28 = distinct !{!28, !29, !"air-alias-scope-textures"}
|
||||
!29 = distinct !{!29, !"air-alias-scopes(coherent_texture_handoff)"}
|
||||
!30 = !{!31, !32}
|
||||
!31 = distinct !{!31, !29, !"air-alias-scope-arg(1)"}
|
||||
!32 = distinct !{!32, !29, !"air-alias-scope-arg(2)"}
|
||||
!33 = !{!34, !34, i64 0}
|
||||
!34 = !{!"int", !35, i64 0}
|
||||
!35 = !{!"omnipotent char", !36, i64 0}
|
||||
!36 = !{!"Simple C++ TBAA"}
|
||||
!37 = !{!32}
|
||||
!38 = !{!28, !31}
|
||||
!39 = distinct !{!39, !40}
|
||||
!40 = !{!"llvm.loop.mustprogress"}
|
||||
!41 = !{!42}
|
||||
!42 = distinct !{!42, !43, !"air-alias-scope-textures"}
|
||||
!43 = distinct !{!43, !"air-alias-scopes(coherent_texture_handoff_seen)"}
|
||||
!44 = !{!45, !46}
|
||||
!45 = distinct !{!45, !43, !"air-alias-scope-arg(1)"}
|
||||
!46 = distinct !{!46, !43, !"air-alias-scope-arg(2)"}
|
||||
!47 = !{!46}
|
||||
!48 = !{!42, !45}
|
||||
!49 = distinct !{!49, !40}
|
||||
@@ -0,0 +1,188 @@
|
||||
; Generated by scripts/regen-air-fixtures from coherent_texture_handoff.metal (llvm-dis of coherent_texture_handoff.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_v29-apple-macosx27.0.0"
|
||||
|
||||
%"struct.metal::_atomic" = type { i32 }
|
||||
|
||||
; Function Attrs: mustprogress nounwind
|
||||
define void @coherent_texture_handoff(ptr addrspace(1) %0, ptr addrspace(1) noundef captures(none) "air-buffer-no-alias" %1, ptr addrspace(1) noundef writeonly captures(none) "air-buffer-no-alias" %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #0 {
|
||||
%6 = insertelement <2 x i32> <i32 poison, i32 0>, i32 %4, i64 0
|
||||
%7 = icmp eq i32 %3, 0
|
||||
br i1 %7, label %10, label %8
|
||||
|
||||
8: ; preds = %5
|
||||
%9 = getelementptr inbounds %"struct.metal::_atomic", ptr addrspace(1) %1, i64 0, i32 0
|
||||
br label %28
|
||||
|
||||
10: ; preds = %5
|
||||
%11 = add i32 %4, 1000
|
||||
%12 = insertelement <4 x i32> poison, i32 %11, i64 0
|
||||
%13 = shufflevector <4 x i32> %12, <4 x i32> poison, <4 x i32> zeroinitializer
|
||||
tail call void @air.write_texture_2d.device_coherent.u.v4i32(ptr addrspace(1) captures(none) %0, <2 x i32> %6, <4 x i32> %13, i32 0, i32 3) #5, !alias.scope !27, !noalias !30
|
||||
tail call void @air.atomic.fence(i32 4, i32 3, i32 2) #6
|
||||
%14 = getelementptr inbounds %"struct.metal::_atomic", ptr addrspace(1) %1, i64 0, i32 0
|
||||
%15 = tail call i32 @air.atomic.global.add.u.i32(ptr addrspace(1) captures(none) %14, i32 1, i32 0, i32 2, i32 0, i1 false) #6
|
||||
br label %35
|
||||
|
||||
16: ; preds = %28
|
||||
tail call void @air.atomic.fence(i32 4, i32 2, i32 2) #6
|
||||
%17 = tail call ptr addrspace(2) @air.get_read_sampler() #7
|
||||
%18 = tail call { <4 x i32>, i8 } @air.read_texture_2d.device_coherent.u.v4i32(ptr addrspace(1) readonly captures(none) %0, ptr addrspace(2) %17, <2 x i32> %6, <2 x i32> zeroinitializer, i32 0, i32 3) #8
|
||||
%19 = extractvalue { <4 x i32>, i8 } %18, 0
|
||||
%20 = extractelement <4 x i32> %19, i64 0
|
||||
%21 = icmp eq i32 %30, 64
|
||||
%22 = add i32 %4, 1000
|
||||
%23 = icmp ne i32 %20, %22
|
||||
%24 = select i1 %21, i1 %23, i1 false
|
||||
%25 = select i1 %24, i32 2, i32 1
|
||||
%26 = zext i32 %4 to i64
|
||||
%27 = getelementptr inbounds i32, ptr addrspace(1) %2, i64 %26
|
||||
store i32 %25, ptr addrspace(1) %27, align 4, !tbaa !33, !alias.scope !37, !noalias !38
|
||||
br label %35
|
||||
|
||||
28: ; preds = %28, %8
|
||||
%29 = phi i32 [ 0, %8 ], [ %31, %28 ]
|
||||
%30 = tail call i32 @air.atomic.global.load.i32(ptr addrspace(1) captures(none) %9, i32 0, i32 2, i32 0, i1 false) #6
|
||||
%31 = add nuw nsw i32 %29, 1
|
||||
%32 = icmp ult i32 %29, 4095
|
||||
%33 = icmp ult i32 %30, 64
|
||||
%34 = select i1 %32, i1 %33, i1 false
|
||||
br i1 %34, label %28, label %16, !llvm.loop !39
|
||||
|
||||
35: ; preds = %16, %10
|
||||
ret void
|
||||
}
|
||||
|
||||
; Function Attrs: mustprogress nounwind
|
||||
define void @coherent_texture_handoff_seen(ptr addrspace(1) %0, ptr addrspace(1) noundef captures(none) "air-buffer-no-alias" %1, ptr addrspace(1) noundef writeonly captures(none) "air-buffer-no-alias" %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #0 {
|
||||
%6 = insertelement <2 x i32> <i32 poison, i32 0>, i32 %4, i64 0
|
||||
%7 = icmp eq i32 %3, 0
|
||||
br i1 %7, label %10, label %8
|
||||
|
||||
8: ; preds = %5
|
||||
%9 = getelementptr inbounds %"struct.metal::_atomic", ptr addrspace(1) %1, i64 0, i32 0
|
||||
br label %25
|
||||
|
||||
10: ; preds = %5
|
||||
%11 = add i32 %4, 1000
|
||||
%12 = insertelement <4 x i32> poison, i32 %11, i64 0
|
||||
%13 = shufflevector <4 x i32> %12, <4 x i32> poison, <4 x i32> zeroinitializer
|
||||
tail call void @air.write_texture_2d.device_coherent.u.v4i32(ptr addrspace(1) captures(none) %0, <2 x i32> %6, <4 x i32> %13, i32 0, i32 3) #5, !alias.scope !41, !noalias !44
|
||||
tail call void @air.atomic.fence(i32 4, i32 3, i32 2) #6
|
||||
%14 = getelementptr inbounds %"struct.metal::_atomic", ptr addrspace(1) %1, i64 0, i32 0
|
||||
%15 = tail call i32 @air.atomic.global.add.u.i32(ptr addrspace(1) captures(none) %14, i32 1, i32 0, i32 2, i32 0, i1 false) #6
|
||||
br label %32
|
||||
|
||||
16: ; preds = %25
|
||||
tail call void @air.atomic.fence(i32 4, i32 2, i32 2) #6
|
||||
%17 = insertelement <2 x i32> undef, i32 %27, i64 0
|
||||
%18 = tail call ptr addrspace(2) @air.get_read_sampler() #7
|
||||
%19 = tail call { <4 x i32>, i8 } @air.read_texture_2d.device_coherent.u.v4i32(ptr addrspace(1) readonly captures(none) %0, ptr addrspace(2) %18, <2 x i32> %6, <2 x i32> zeroinitializer, i32 0, i32 3) #8
|
||||
%20 = extractvalue { <4 x i32>, i8 } %19, 0
|
||||
%21 = extractelement <4 x i32> %20, i64 0
|
||||
%22 = insertelement <2 x i32> %17, i32 %21, i64 1
|
||||
%23 = zext i32 %4 to i64
|
||||
%24 = getelementptr inbounds <2 x i32>, ptr addrspace(1) %2, i64 %23
|
||||
store <2 x i32> %22, ptr addrspace(1) %24, align 8, !tbaa !33, !alias.scope !47, !noalias !48
|
||||
br label %32
|
||||
|
||||
25: ; preds = %25, %8
|
||||
%26 = phi i32 [ 0, %8 ], [ %28, %25 ]
|
||||
%27 = tail call i32 @air.atomic.global.load.i32(ptr addrspace(1) captures(none) %9, i32 0, i32 2, i32 0, i1 false) #6
|
||||
%28 = add nuw nsw i32 %26, 1
|
||||
%29 = icmp ult i32 %26, 4095
|
||||
%30 = icmp ult i32 %27, 64
|
||||
%31 = select i1 %29, i1 %30, i1 false
|
||||
br i1 %31, label %25, label %16, !llvm.loop !49
|
||||
|
||||
32: ; preds = %16, %10
|
||||
ret void
|
||||
}
|
||||
|
||||
; Function Attrs: mustprogress nounwind willreturn
|
||||
declare void @air.atomic.fence(i32, i32, i32) local_unnamed_addr #1
|
||||
|
||||
; Function Attrs: mustprogress nounwind willreturn memory(argmem: readwrite)
|
||||
declare void @air.write_texture_2d.device_coherent.u.v4i32(ptr addrspace(1) captures(none), <2 x i32>, <4 x i32>, i32, i32) local_unnamed_addr #2
|
||||
|
||||
; Function Attrs: mustprogress nounwind willreturn
|
||||
declare i32 @air.atomic.global.add.u.i32(ptr addrspace(1) captures(none), i32, i32, i32, i32, i1) local_unnamed_addr #1
|
||||
|
||||
; Function Attrs: mustprogress nounwind willreturn
|
||||
declare i32 @air.atomic.global.load.i32(ptr addrspace(1) captures(none), i32, i32, i32, i1) local_unnamed_addr #1
|
||||
|
||||
; Function Attrs: mustprogress nofree nounwind willreturn memory(inaccessiblemem: read)
|
||||
declare ptr addrspace(2) @air.get_read_sampler() local_unnamed_addr #3
|
||||
|
||||
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
|
||||
declare { <4 x i32>, i8 } @air.read_texture_2d.device_coherent.u.v4i32(ptr addrspace(1) readonly captures(none), ptr addrspace(2), <2 x i32>, <2 x i32>, i32, i32) local_unnamed_addr #4
|
||||
|
||||
attributes #0 = { mustprogress nounwind "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "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 nounwind willreturn }
|
||||
attributes #2 = { mustprogress nounwind willreturn memory(argmem: readwrite) }
|
||||
attributes #3 = { mustprogress nofree nounwind willreturn memory(inaccessiblemem: read) }
|
||||
attributes #4 = { mustprogress nofree nounwind willreturn memory(argmem: read) }
|
||||
attributes #5 = { nounwind willreturn memory(argmem: readwrite) }
|
||||
attributes #6 = { nounwind willreturn }
|
||||
attributes #7 = { nounwind willreturn memory(inaccessiblemem: read) }
|
||||
attributes #8 = { nounwind willreturn memory(argmem: read) }
|
||||
|
||||
!llvm.module.flags = !{!0, !1, !2, !3, !4, !5, !6, !7, !8}
|
||||
!air.kernel = !{!9, !18}
|
||||
!air.compile_options = !{!21, !22, !23}
|
||||
!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 @coherent_texture_handoff, !10, !11}
|
||||
!10 = !{}
|
||||
!11 = !{!12, !13, !15, !16, !17}
|
||||
!12 = !{i32 0, !"air.texture", !"air.location_index", i32 0, i32 1, !"air.read_write", !"air.arg_type_name", !"texture2d<uint, read_write>", !"air.arg_name", !"tex"}
|
||||
!13 = !{i32 1, !"air.buffer", !"air.location_index", i32 0, i32 1, !"air.read_write", !"air.address_space", i32 1, !"air.struct_type_info", !14, !"air.arg_type_size", i32 4, !"air.arg_type_align_size", i32 4, !"air.arg_type_name", !"metal::_atomic", !"air.arg_name", !"flag"}
|
||||
!14 = !{i32 0, i32 4, i32 0, !"uint", !"__s"}
|
||||
!15 = !{i32 2, !"air.buffer", !"air.location_index", i32 1, 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"}
|
||||
!16 = !{i32 3, !"air.threadgroup_position_in_grid", !"air.arg_type_name", !"uint", !"air.arg_name", !"group"}
|
||||
!17 = !{i32 4, !"air.thread_position_in_threadgroup", !"air.arg_type_name", !"uint", !"air.arg_name", !"i"}
|
||||
!18 = !{ptr @coherent_texture_handoff_seen, !10, !19}
|
||||
!19 = !{!12, !13, !20, !16, !17}
|
||||
!20 = !{i32 2, !"air.buffer", !"air.location_index", i32 1, i32 1, !"air.read_write", !"air.address_space", i32 1, !"air.arg_type_size", i32 8, !"air.arg_type_align_size", i32 8, !"air.arg_type_name", !"uint2", !"air.arg_name", !"out"}
|
||||
!21 = !{!"air.compile.denorms_disable"}
|
||||
!22 = !{!"air.compile.fast_math_enable"}
|
||||
!23 = !{!"air.compile.framebuffer_fetch_enable"}
|
||||
!24 = !{!"Apple metal version 32023.922 (metalfe-32023.922.4)"}
|
||||
!25 = !{i32 2, i32 9, i32 0}
|
||||
!26 = !{!"Metal", i32 4, i32 1, i32 0}
|
||||
!27 = !{!28}
|
||||
!28 = distinct !{!28, !29, !"air-alias-scope-textures"}
|
||||
!29 = distinct !{!29, !"air-alias-scopes(coherent_texture_handoff)"}
|
||||
!30 = !{!31, !32}
|
||||
!31 = distinct !{!31, !29, !"air-alias-scope-arg(1)"}
|
||||
!32 = distinct !{!32, !29, !"air-alias-scope-arg(2)"}
|
||||
!33 = !{!34, !34, i64 0}
|
||||
!34 = !{!"int", !35, i64 0}
|
||||
!35 = !{!"omnipotent char", !36, i64 0}
|
||||
!36 = !{!"Simple C++ TBAA"}
|
||||
!37 = !{!32}
|
||||
!38 = !{!28, !31}
|
||||
!39 = distinct !{!39, !40}
|
||||
!40 = !{!"llvm.loop.mustprogress"}
|
||||
!41 = !{!42}
|
||||
!42 = distinct !{!42, !43, !"air-alias-scope-textures"}
|
||||
!43 = distinct !{!43, !"air-alias-scopes(coherent_texture_handoff_seen)"}
|
||||
!44 = !{!45, !46}
|
||||
!45 = distinct !{!45, !43, !"air-alias-scope-arg(1)"}
|
||||
!46 = distinct !{!46, !43, !"air-alias-scope-arg(2)"}
|
||||
!47 = !{!46}
|
||||
!48 = !{!42, !45}
|
||||
!49 = distinct !{!49, !40}
|
||||
@@ -576,6 +576,10 @@ engine/cof_offsets.air.ll cof_flat ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/cof_offsets.ll cof_constant ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/cof_offsets.ll cof_device ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/cof_offsets.ll cof_flat ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/coherent_texture_handoff.air.ll coherent_texture_handoff ok ok ok ok ok ok NeedsInput{StorageTextureFormat { slot: SlotRef { stage: Kernel, class: Texture, index: 0 } }} NeedsInput{StorageTextureFormat { slot: SlotRef { stage: Kernel, class: Texture, index: 0 } }} NeedsInput{StorageTextureFormat { slot: SlotRef { stage: Kernel, class: Texture, index: 0 } }} ok ok ok ok ok NeedsInput{StorageTextureFormat { slot: SlotRef { stage: Kernel, class: Texture, index: 0 } }}
|
||||
engine/coherent_texture_handoff.air.ll coherent_texture_handoff_seen ok ok ok ok ok ok NeedsInput{StorageTextureFormat { slot: SlotRef { stage: Kernel, class: Texture, index: 0 } }} NeedsInput{StorageTextureFormat { slot: SlotRef { stage: Kernel, class: Texture, index: 0 } }} NeedsInput{StorageTextureFormat { slot: SlotRef { stage: Kernel, class: Texture, index: 0 } }} ok ok ok ok ok NeedsInput{StorageTextureFormat { slot: SlotRef { stage: Kernel, class: Texture, index: 0 } }}
|
||||
engine/coherent_texture_handoff.ll coherent_texture_handoff ok ok ok ok ok ok NeedsInput{StorageTextureFormat { slot: SlotRef { stage: Kernel, class: Texture, index: 0 } }} NeedsInput{StorageTextureFormat { slot: SlotRef { stage: Kernel, class: Texture, index: 0 } }} NeedsInput{StorageTextureFormat { slot: SlotRef { stage: Kernel, class: Texture, index: 0 } }} ok ok ok ok ok NeedsInput{StorageTextureFormat { slot: SlotRef { stage: Kernel, class: Texture, index: 0 } }}
|
||||
engine/coherent_texture_handoff.ll coherent_texture_handoff_seen ok ok ok ok ok ok NeedsInput{StorageTextureFormat { slot: SlotRef { stage: Kernel, class: Texture, index: 0 } }} NeedsInput{StorageTextureFormat { slot: SlotRef { stage: Kernel, class: Texture, index: 0 } }} NeedsInput{StorageTextureFormat { slot: SlotRef { stage: Kernel, class: Texture, index: 0 } }} ok ok ok ok ok NeedsInput{StorageTextureFormat { slot: SlotRef { stage: Kernel, class: Texture, index: 0 } }}
|
||||
engine/color_groups.air.ll cg_cover ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/color_groups.air.ll cg_five ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/color_groups.air.ll cg_seven 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