yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Wooyoung KimGLSL_EXT_split_barrier / SPV_EXT_split_barrierb8a8b3ed

main
13.9 KiB248 linesraw
1spv.split.barrier.comp
2// Module Version 10600
3// Generated by (magic number): 8000b
4// Id's are bound by 155
5
6                              Capability Shader
7                              Capability SplitBarrierEXT
8                              Extension  "SPV_EXT_split_barrier"
9                              Extension  "SPV_KHR_non_semantic_info"
10               1:             ExtInstImport  "NonSemantic.Shader.DebugInfo.100"
11               3:             ExtInstImport  "GLSL.std.450"
12                              MemoryModel Logical GLSL450
13                              EntryPoint GLCompute 14  "main" 43
14                              ExecutionMode 14 LocalSize 1 1 1
15               2:             String  "spv.split.barrier.comp"
16               8:             String  "uint"
17              18:             String  "fooBarrier1"
18              21:             String  "#version 430 core
19#extension GL_EXT_split_barrier : enable
20
21float f;
22
23void fooBarrier1()
24{
25    controlBarrierArrive();
26    controlBarrierWait();
27}
28
29void fooBarrier2()
30{
31    uint i = 0;
32    for (i = 0; i < 16; ++i) {
33      controlBarrierArrive();
34      controlBarrierWait();
35    }
36}
37
38void fooBarrier3()
39{
40    bool cond = f > 0.0f;
41    if (cond) {
42        controlBarrierArrive();
43    }
44    if (cond) {
45        controlBarrierWait();
46    }
47}
48
49void main()
50{
51    fooBarrier1();
52    fooBarrier2();
53    fooBarrier3();
54}
55"
56              28:             String  "fooBarrier2"
57              33:             String  "fooBarrier3"
58              36:             String  "main"
59              39:             String  "float"
60              45:             String  "f"
61              65:             String  "i"
62              87:             String  "bool"
63              98:             String  "int"
64             112:             String  "cond"
65                              SourceExtension  "GL_EXT_split_barrier"
66                              Name 14  "main"
67                              Name 16  "fooBarrier1("
68                              Name 26  "fooBarrier2("
69                              Name 31  "fooBarrier3("
70                              Name 43  "f"
71                              Name 63  "i"
72                              Name 110  "cond"
73                              ModuleProcessed  "auto-map-locations"
74                              ModuleProcessed  "auto-map-bindings"
75                              ModuleProcessed  "client vulkan100"
76                              ModuleProcessed  "target-env spirv1.6"
77                              ModuleProcessed  "target-env vulkan1.4"
78                              ModuleProcessed  "keep-uncalled"
79                              ModuleProcessed  "entry-point main"
80               4:             TypeVoid
81               5:             TypeFunction 4
82               7:             TypeInt 32 0
83              10:      7(int) Constant 32
84              11:      7(int) Constant 6
85              12:      7(int) Constant 0
86               9:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12
87              13:      7(int) Constant 3
88               6:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4
89              20:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 21
90              23:      7(int) Constant 1
91              24:      7(int) Constant 4
92              25:      7(int) Constant 2
93              22:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 23 24 20 25
94              19:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 18 6 20 11 12 22 18 13 11
95              30:      7(int) Constant 12
96              29:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 28 6 20 30 12 22 28 13 30
97              35:      7(int) Constant 21
98              34:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 33 6 20 35 12 22 33 13 35
99              37:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 36 6 20 10 12 22 36 13 10
100              38:             TypeFloat 32
101              40:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 39 10 13 12
102              41:             TypePointer Private 38(float)
103              42:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 40 11 12
104           43(f):     41(ptr) Variable Private
105              46:      7(int) Constant 8
106              44:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 45 40 20 24 12 22 45 43(f) 46
107              50:      7(int) Constant 260
108              52:      7(int) Constant 258
109              54:      7(int) Constant 9
110              56:      7(int) Constant 10
111              60:             TypePointer Function 7(int)
112              61:      7(int) Constant 7
113              62:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 9 61 12
114              66:      7(int) Constant 14
115              64:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 65 9 20 66 12 29 24
116              68:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
117              71:      7(int) Constant 15
118              72:      7(int) Constant 5
119              70:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 20 71 72 29
120              85:      7(int) Constant 16
121              86:             TypeBool
122              88:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 87 10 25 12
123              93:      7(int) Constant 17
124              97:             TypeInt 32 1
125              99:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 98 10 24 12
126             100:     97(int) Constant 1
127             104:      7(int) Constant 19
128             108:             TypePointer Function 86(bool)
129             109:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 88 61 12
130             113:      7(int) Constant 23
131             111:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 112 88 20 113 12 34 24
132             117:   38(float) Constant 0
133             121:      7(int) Constant 24
134             125:      7(int) Constant 25
135             126:      7(int) Constant 30
136             124:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 20 125 126 34
137             132:      7(int) Constant 27
138             136:      7(int) Constant 28
139             135:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 20 136 136 34
140             146:      7(int) Constant 34
141             149:      7(int) Constant 35
142             152:      7(int) Constant 36
143             154:      7(int) Constant 37
144        14(main):           4 Function None 5
145              15:             Label
146             142:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 37
147             143:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 10 10 12 12
148             141:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 37 14(main)
149             145:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 146 146 12 12
150             144:           4 FunctionCall 16(fooBarrier1()
151             148:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 149 149 12 12
152             147:           4 FunctionCall 26(fooBarrier2()
153             151:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 152 152 12 12
154             150:           4 FunctionCall 31(fooBarrier3()
155             153:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 154 154 12 12
156                              Return
157                              FunctionEnd
15816(fooBarrier1():           4 Function None 5
159              17:             Label
160              48:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 19
161              49:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 11 11 12 12
162              47:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 19 16(fooBarrier1()
163              51:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 46 46 12 12
164                              ControlBarrierArriveEXT 25 25 50
165              53:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 54 54 12 12
166                              ControlBarrierWaitEXT 25 25 52
167              55:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 56 56 12 12
168                              Return
169                              FunctionEnd
17026(fooBarrier2():           4 Function None 5
171              27:             Label
172           63(i):     60(ptr) Variable Function
173              58:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 29
174              59:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 30 30 12 12
175              57:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 29 26(fooBarrier2()
176              69:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 66 66 12 12
177              67:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 64 63(i) 68
178                              Store 63(i) 12
179              73:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 70
180              74:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 71 71 12 12
181                              Store 63(i) 12
182                              Branch 75
183              75:             Label
184              79:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 70
185              80:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 71 71 12 12
186                              LoopMerge 77 78 None
187                              Branch 81
188              81:             Label
189              83:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 70
190              84:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 71 71 12 12
191              82:      7(int) Load 63(i)
192              89:    86(bool) ULessThan 82 85
193                              BranchConditional 89 76 77
194              76:               Label
195              90:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 70
196              91:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 85 85 12 12
197                                ControlBarrierArriveEXT 25 25 50
198              92:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 93 93 12 12
199                                ControlBarrierWaitEXT 25 25 52
200                                Branch 78
201              78:               Label
202              95:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 70
203              96:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 71 71 12 12
204              94:      7(int)   Load 63(i)
205             101:      7(int)   IAdd 94 100
206                                Store 63(i) 101
207                                Branch 75
208              77:             Label
209             102:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 29
210             103:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 104 104 12 12
211                              Return
212                              FunctionEnd
21331(fooBarrier3():           4 Function None 5
214              32:             Label
215       110(cond):    108(ptr) Variable Function
216             106:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 34
217             107:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 35 35 12 12
218             105:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 34 31(fooBarrier3()
219             115:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 113 113 12 12
220             114:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 111 110(cond) 68
221             116:   38(float) Load 43(f)
222             118:    86(bool) FOrdGreaterThan 116 117
223                              Store 110(cond) 118
224             120:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 121 121 12 12
225             119:    86(bool) Load 110(cond)
226                              SelectionMerge 123 None
227                              BranchConditional 119 122 123
228             122:               Label
229             127:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 124
230             128:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 125 125 12 12
231                                ControlBarrierArriveEXT 25 25 50
232                                Branch 123
233             123:             Label
234             130:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 34
235             131:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 132 132 12 12
236             129:    86(bool) Load 110(cond)
237                              SelectionMerge 134 None
238                              BranchConditional 129 133 134
239             133:               Label
240             137:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 135
241             138:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 136 136 12 12
242                                ControlBarrierWaitEXT 25 25 52
243                                Branch 134
244             134:             Label
245             139:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 34
246             140:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 126 126 12 12
247                              Return
248                              FunctionEnd