Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/image_without_access_qualifier.spt

raw
1 119734787 65536 393230 34 0
2 2 Capability Addresses
3 2 Capability Linkage
4 2 Capability Kernel
5 2 Capability Int64
6 2 Capability ImageBasic
7 5 ExtInstImport 1 "OpenCL.std"
8 3 MemoryModel 2 2
9 6 EntryPoint 6 13 "image_test"
10 3 Source 3 200000
11 11 Name 5 "__spirv_BuiltInGlobalInvocationId"
12 4 Name 14 "srcImg"
13 4 Name 15 "samp"
14 4 Name 16 "result"
15 4 Name 17 "entry"
16 4 Name 19 "call"
17 4 Name 21 "call1"
18 4 Name 22 "conv"
19 4 Name 25 "vecinit"
20 4 Name 26 "conv2"
21 5 Name 27 "vecinit3"
22 7 Name 29 "TempSampledImage"
23 5 Name 30 "call4.old"
24 5 Name 33 "arrayidx"
25 4 Decorate 5 BuiltIn 28
26 3 Decorate 5 Constant
27 13 Decorate 5 LinkageAttributes "__spirv_BuiltInGlobalInvocationId" Import
28 4 TypeInt 2 64 0
29 4 TypeInt 9 32 0
30 4 TypeVector 3 2 3
31 4 TypePointer 4 0 3
32 2 TypeVoid 6
33 9 TypeImage 7 6 1 0 0 0 0 0
34 2 TypeSampler 8
35 4 TypeVector 10 9 4
36 4 TypePointer 11 5 10
37 6 TypeFunction 12 6 7 8 11
38 4 TypeVector 23 9 2
39 3 TypeSampledImage 28 7
40 3 TypeFloat 31 32
41 4 Variable 4 5 0
42 3 Undef 23 24
43 4 Constant 31 32 0
44
45 5 Function 6 13 0 12
46 3 FunctionParameter 7 14
47 3 FunctionParameter 8 15
48 3 FunctionParameter 11 16
49
50 2 Label 17
51 4 Load 3 18 5
52 5 CompositeExtract 2 19 18 0
53 4 Load 3 20 5
54 5 CompositeExtract 2 21 20 1
55 4 UConvert 9 22 19
56 6 CompositeInsert 23 25 22 24 0
57 4 UConvert 9 26 21
58 6 CompositeInsert 23 27 26 25 1
59 5 SampledImage 28 29 14 15
60 7 ImageSampleExplicitLod 10 30 29 27 2 32
61 5 InBoundsPtrAccessChain 11 33 16 19
62 5 Store 33 30 2 16
63 1 Return
64
65 1 FunctionEnd
66
67 ; RUN: llvm-spirv %s -to-binary -o %t.spv
68 ; RUN: spirv-val %t.spv
69 ; RUN: llvm-spirv -r %t.spv -o %t.bc
70 ; RUN: llvm-dis -opaque-pointers=0 < %t.bc | FileCheck %s --check-prefix=CHECK-LLVM
71
72 ; CHECK-LLVM: %opencl.image2d_ro_t = type opaque
73 ; CHECK-LLVM: !{{[0-9]*}} = !{!"read_only", !"none", !"none"}