Debian Codegraph @

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

raw
1 119734787 65536 458752 45 0
2 2 Capability Addresses
3 2 Capability Linkage
4 2 Capability Kernel
5 2 Capability Int64
6 3 MemoryModel 2 2
7 12 EntryPoint 6 1 "loop_merge_branch_conditional_none"
8 3 Source 3 102000
9 3 Name 2 "res"
10 3 Name 3 "in"
11 3 Name 4 "rep"
12 3 Name 5 "num"
13 4 Decorate 6 FuncParamAttr 5
14 2 DecorationGroup 6
15 4 Decorate 7 BuiltIn 28
16 3 Decorate 7 Constant
17 11 Decorate 7 LinkageAttributes "__spirv_GlobalInvocationId" Import
18 4 GroupDecorate 6 2 3
19 4 TypeInt 8 64 0
20 4 TypeInt 14 32 0
21 5 Constant 8 11 32 0
22 4 Constant 14 15 0
23 4 Constant 14 16 1
24 4 TypeVector 9 8 3
25 4 TypePointer 10 0 9
26 2 TypeBool 12
27 2 TypeVoid 13
28 4 TypePointer 17 5 14
29 4 TypePointer 18 7 14
30 7 TypeFunction 19 13 17 17 14 14
31 4 Variable 10 7 0
32
33 5 Function 13 1 0 19
34 3 FunctionParameter 17 2
35 3 FunctionParameter 17 3
36 3 FunctionParameter 14 4
37 3 FunctionParameter 14 5
38
39 2 Label 20
40 4 Variable 18 26 7
41 4 Variable 18 27 7
42 4 Load 9 21 7
43 5 CompositeExtract 8 22 21 0
44 5 ShiftLeftLogical 8 23 22 11
45 5 ShiftRightArithmetic 8 24 23 11
46 4 SConvert 14 25 24
47 5 Store 26 15 2 4
48 5 Store 27 15 2 4
49 2 Branch 28
50
51 2 Label 28
52 4 Load 14 29 27
53 5 SLessThan 12 30 29 4
54 4 LoopMerge 31 32 0
55 4 BranchConditional 30 33 31
56
57 2 Label 33
58 4 Load 14 34 27
59 5 IMul 14 35 34 5
60 5 IAdd 14 36 25 35
61 5 InBoundsPtrAccessChain 17 37 3 36
62 4 Load 14 38 37
63 4 Load 14 39 26
64 5 IAdd 14 40 39 38
65 5 Store 26 40 2 4
66 2 Branch 32
67
68 2 Label 32
69 4 Load 14 41 27
70 5 IAdd 14 42 41 16
71 3 Store 27 42
72 2 Branch 28
73
74 2 Label 31
75 4 Load 14 43 26
76 5 InBoundsPtrAccessChain 17 44 2 24
77 5 Store 44 43 2 4
78 1 Return
79
80 1 FunctionEnd
81
82 ; RUN: llvm-spirv %s -to-binary -o %t.spv
83 ; RUN: spirv-val %t.spv
84 ; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o %t.bc
85 ; RUN: llvm-dis < %t.bc | FileCheck %s --check-prefix=CHECK-LLVM
86
87 ; CHECK-LLVM: br label %{{[0-9]+}}, !llvm.loop ![[MD:[0-9]+]]
88 ; CHECK-LLVM: ![[MD]] = distinct !{![[MD]]}