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