Debian Codegraph @

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

raw
1 119734787 65536 393230 16 0
2 2 Capability Addresses
3 2 Capability Linkage
4 2 Capability Kernel
5 5 ExtInstImport 1 "OpenCL.std"
6 3 MemoryModel 2 2
7 3 Source 3 200000
8 3 Name 4 "foo"
9 4 Name 5 "entry"
10 4 Name 11 "agg1"
11 3 Name 12 "bar"
12 4 Name 13 "entry"
13 4 Name 14 "agg2"
14 5 Decorate 4 LinkageAttributes "foo" Export
15 5 Decorate 12 LinkageAttributes "bar" Export
16 4 TypeInt 7 32 0
17 4 Constant 7 10 1
18 2 TypeVoid 2
19 3 TypeFloat 8 32
20 4 TypeStruct 6 7 8
21 3 TypeFunction 3 6
22
23 5 Function 6 4 0 3
24
25 2 Label 5
26 3 Undef 6 9
27 6 CompositeInsert 6 11 10 9 0
28 2 ReturnValue 11
29
30 1 FunctionEnd
31
32 5 Function 6 12 0 3
33
34 2 Label 13
35 3 Undef 6 15
36 6 CompositeInsert 6 14 10 15 0
37 2 ReturnValue 14
38
39 1 FunctionEnd
40
41 ; RUN: llvm-spirv %s -to-binary -o %t.spv
42 ; RUN: spirv-val %t.spv
43 ; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o %t.bc
44 ; RUN: llvm-dis < %t.bc | FileCheck %s
45
46 ; CHECK: define spir_func %structtype @foo() #0 {
47 ; CHECK-NEXT: entry:
48 ; CHECK-NEXT: ret %structtype { i32 1, float undef }
49 ; CHECK-NEXT: }
50 ; CHECK: define spir_func %structtype @bar() #0 {
51 ; CHECK-NEXT: entry:
52 ; CHECK-NEXT: ret %structtype { i32 1, float undef }
53 ; CHECK-NEXT: }
54