Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/spirv-extensions-control.spt

raw
1 119734787 65536 393230 16 0
2 2 Capability Addresses
3 2 Capability Linkage
4 2 Capability Kernel
5 2 Extension "SPV_KHR_no_integer_wrap_decoration"
6 5 ExtInstImport 1 "OpenCL.std"
7 3 MemoryModel 2 2
8 3 Source 3 200000
9 3 Name 4 "foo"
10 4 Name 5 "entry"
11 4 Name 11 "agg1"
12 3 Name 12 "bar"
13 4 Name 13 "entry"
14 4 Name 14 "agg2"
15 5 Decorate 4 LinkageAttributes "foo" Export
16 5 Decorate 12 LinkageAttributes "bar" Export
17 4 TypeInt 7 32 0
18 4 Constant 7 10 1
19 2 TypeVoid 2
20 3 TypeFunction 3 2
21 3 TypeFloat 8 32
22 4 TypeStruct 6 7 8
23
24 5 Function 2 4 0 3
25
26 2 Label 5
27 3 Undef 6 9
28 6 CompositeInsert 6 11 10 9 0
29 1 Return
30
31 1 FunctionEnd
32
33 5 Function 2 12 0 3
34
35 2 Label 13
36 3 Undef 6 15
37 6 CompositeInsert 6 14 10 15 0
38 1 Return
39
40 1 FunctionEnd
41
42 ; RUN: llvm-spirv %s -to-binary -o %t.spv
43 ; RUN: spirv-val %t.spv
44 ; The purpose of this test is to check that SPIR-V file that uses extensions is
45 ; not rejected by the translator by default
46 ; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o %t.bc