Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/image_dim.ll

raw
1 ; RUN: llvm-as -opaque-pointers=0 %s -o %t.bc
2 ; RUN: llvm-spirv %t.bc -opaque-pointers=0 -spirv-text -o %t.spt
3 ; RUN: FileCheck < %t.spt %s --check-prefix=CHECK-SPIRV
4 ; RUN: llvm-spirv %t.bc -opaque-pointers=0 -o %t.spv
5 ; RUN: spirv-val %t.spv
6
7 ; CHECK-SPIRV-DAG: 2 Capability Sampled1D
8 ; CHECK-SPIRV-DAG: 2 Capability SampledBuffer
9
10 ; ModuleID = 'image_d_20.bc'
11 target datalayout = "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
12 target triple = "spir-unknown-unknown"
13
14 %opencl.image1d_t = type opaque
15 %opencl.image1d_buffer_t = type opaque
16
17 ; Function Attrs: nounwind
18 define spir_kernel void @image_d(%opencl.image1d_t addrspace(1)* %image1d_td6, %opencl.image1d_buffer_t addrspace(1)* %image1d_buffer_td8) #0 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3 !kernel_arg_base_type !4 !kernel_arg_type_qual !5 {
19 entry:
20 ret void
21 }
22
23 attributes #0 = { nounwind }
24
25 !opencl.enable.FP_CONTRACT = !{}
26 !spirv.Source = !{!6}
27 !opencl.spir.version = !{!7}
28 !opencl.ocl.version = !{!8}
29 !opencl.used.extensions = !{!9}
30 !opencl.used.optional.core.features = !{!10}
31 !spirv.Generator = !{!11}
32
33 !1 = !{i32 1, i32 1}
34 !2 = !{!"read_only", !"read_only"}
35 !3 = !{!"image1d_t", !"image1d_buffer_t"}
36 !4 = !{!"", !""}
37 !5 = !{!"image1d_t", !"image1d_buffer_t"}
38 !6 = !{i32 3, i32 100000}
39 !7 = !{i32 1, i32 2}
40 !8 = !{i32 1, i32 0}
41 !9 = !{}
42 !10 = !{!"cl_images"}
43 !11 = !{i16 6, i16 14}