4
4
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64-G1"
5
5
6
6
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none)
7
- declare target ("spirv.VulkanBuffer" , [0 x i32 ], 12 , 0 , 0 ) @llvm.spv.resource.handlefrombinding.tspirv.VulkanBuffer_a0i32_12_0_0t (i32 , i32 , i32 , i32 , i1 ) #0
7
+ declare target ("spirv.VulkanBuffer" , [0 x i32 ], 12 , 0 ) @llvm.spv.resource.handlefrombinding.tspirv.VulkanBuffer_a0i32_12_0t (i32 , i32 , i32 , i32 , i1 ) #0
8
8
9
9
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none)
10
10
declare target ("spirv.Image" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) @llvm.spv.resource.handlefrombinding.tspirv.Image_i32_5_2_0_0_2_0t (i32 , i32 , i32 , i32 , i1 ) #0
@@ -31,12 +31,12 @@ declare target("spirv.Image", i32, 5, 2, 0, 0, 2, 0) @llvm.spv.resource.handlefr
31
31
define void @main () local_unnamed_addr #1 {
32
32
entry:
33
33
; CHECK: [[BufferHandle:%.+]] = OpCopyObject [[BufferPtrType]] [[BufferVar]]
34
- %i_h.i.i = tail call target ("spirv.VulkanBuffer" , [0 x i32 ], 12 , 0 , 0 ) @llvm.spv.resource.handlefrombinding.tspirv.VulkanBuffer_a0i32_12_0_0t (i32 0 , i32 0 , i32 1 , i32 0 , i1 false )
34
+ %i_h.i.i = tail call target ("spirv.VulkanBuffer" , [0 x i32 ], 12 , 0 ) @llvm.spv.resource.handlefrombinding.tspirv.VulkanBuffer_a0i32_12_0t (i32 0 , i32 0 , i32 1 , i32 0 , i1 false )
35
35
36
36
%o_h.i.i = tail call target ("spirv.Image" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ) @llvm.spv.resource.handlefrombinding.tspirv.Image_i32_5_2_0_0_2_0t (i32 0 , i32 1 , i32 1 , i32 0 , i1 false )
37
37
38
38
; CHECK: [[AC:%.+]] = OpAccessChain {{.*}} [[BufferHandle]] [[zero]] [[one]]
39
- %0 = tail call noundef align 4 dereferenceable (4 ) ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.VulkanBuffer_a0i32_12_0_0t (target ("spirv.VulkanBuffer" , [0 x i32 ], 12 , 0 , 0 ) %i_h.i.i , i32 1 )
39
+ %0 = tail call noundef align 4 dereferenceable (4 ) ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.VulkanBuffer_a0i32_12_0t (target ("spirv.VulkanBuffer" , [0 x i32 ], 12 , 0 ) %i_h.i.i , i32 1 )
40
40
41
41
; CHECK: [[LD:%.+]] = OpLoad [[int]] [[AC]] Aligned 4
42
42
%1 = load i32 , ptr addrspace (11 ) %0 , align 4 , !tbaa !3
53
53
declare ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.Image_i32_5_2_0_0_2_0t (target ("spirv.Image" , i32 , 5 , 2 , 0 , 0 , 2 , 0 ), i32 ) #0
54
54
55
55
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none)
56
- declare ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.VulkanBuffer_a0i32_12_0_0t (target ("spirv.VulkanBuffer" , [0 x i32 ], 12 , 0 , 0 ), i32 ) #0
56
+ declare ptr addrspace (11 ) @llvm.spv.resource.getpointer.p11.tspirv.VulkanBuffer_a0i32_12_0t (target ("spirv.VulkanBuffer" , [0 x i32 ], 12 , 0 ), i32 ) #0
57
57
58
58
attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(none) }
59
59
attributes #1 = { mustprogress nofree noinline norecurse nosync nounwind willreturn memory(readwrite, inaccessiblemem: none) "approx-func-fp-math" ="false" "frame-pointer" ="all" "hlsl.numthreads" ="1,1,1" "hlsl.shader" ="compute" "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" }
0 commit comments