yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
e4c40890
main
1spv.debuginfo.implicit_br.glsl.frag 2// Module Version 10000 3// Generated by (magic number): 8000b 4// Id's are bound by 204 5 6 Capability Shader 7 Extension "SPV_KHR_non_semantic_info" 8 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" 9 3: ExtInstImport "GLSL.std.450" 10 MemoryModel Logical GLSL450 11 EntryPoint Fragment 14 "main" 54 12 ExecutionMode 14 OriginUpperLeft 13 2: String "spv.debuginfo.implicit_br.glsl.frag" 14 8: String "uint" 15 18: String "test_if" 16 21: String "#version 460 17 18out int outx; 19int counter = 0; 20 21void test_if() { 22 if (false) { 23 counter += 1; 24 } 25} 26 27void test_ifelse() { 28 if (false) { 29 counter += 1; 30 } 31 else { 32 counter += 2; 33 } 34} 35 36void test_if_compound() { 37 if (false) { 38 if (false) { 39 counter += 1; 40 } 41 } 42} 43 44void test_if_compound2() { 45 if (false) { 46 if (false) { 47 counter += 1; 48 } 49 50 counter += 2; 51 } 52} 53 54void test_switch() { 55 switch (0) { 56 case 0: 57 counter += 1; 58 // implict fallthrough 59 case 1: 60 counter += 2; 61 break; 62 default: 63 counter += 3; 64 // implicit break 65 } 66} 67 68void main() { 69 test_if(); 70 test_ifelse(); 71 test_if_compound(); 72 test_if_compound2(); 73 test_switch(); 74 outx = counter; 75}" 76 28: String "test_ifelse" 77 33: String "test_if_compound" 78 38: String "test_if_compound2" 79 43: String "test_switch" 80 46: String "main" 81 50: String "int" 82 56: String "outx" 83 62: String "counter" 84 70: String "bool" 85 Name 14 "main" 86 Name 16 "test_if(" 87 Name 26 "test_ifelse(" 88 Name 31 "test_if_compound(" 89 Name 36 "test_if_compound2(" 90 Name 41 "test_switch(" 91 Name 54 "outx" 92 Name 60 "counter" 93 Decorate 54(outx) Location 0 94 4: TypeVoid 95 5: TypeFunction 4 96 7: TypeInt 32 0 97 10: 7(int) Constant 32 98 11: 7(int) Constant 6 99 12: 7(int) Constant 0 100 9: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12 101 13: 7(int) Constant 3 102 6: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 103 20: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 21 104 23: 7(int) Constant 1 105 24: 7(int) Constant 4 106 25: 7(int) Constant 2 107 22: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 23 24 20 25 108 19: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 18 6 20 11 12 22 18 13 11 109 30: 7(int) Constant 12 110 29: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 28 6 20 30 12 22 28 13 30 111 35: 7(int) Constant 21 112 34: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 33 6 20 35 12 22 33 13 35 113 40: 7(int) Constant 29 114 39: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 38 6 20 40 12 22 38 13 40 115 45: 7(int) Constant 39 116 44: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 43 6 20 45 12 22 43 13 45 117 48: 7(int) Constant 53 118 47: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 46 6 20 48 12 22 46 13 48 119 49: TypeInt 32 1 120 51: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 50 10 24 12 121 52: TypePointer Output 49(int) 122 53: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 51 13 12 123 54(outx): 52(ptr) Variable Output 124 57: 7(int) Constant 8 125 55: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 56 51 20 13 12 22 56 54(outx) 57 126 58: TypePointer Private 49(int) 127 59: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 51 11 12 128 60(counter): 58(ptr) Variable Private 129 61: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 62 51 20 24 12 22 62 60(counter) 57 130 63: 49(int) Constant 0 131 69: TypeBool 132 71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 70 10 25 12 133 72: 69(bool) ConstantFalse 134 76: 7(int) Constant 17 135 75: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 20 57 76 19 136 77: 49(int) Constant 1 137 84: 7(int) Constant 10 138 91: 7(int) Constant 14 139 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 20 91 76 29 140 97: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 20 76 76 29 141 98: 49(int) Constant 2 142 105: 7(int) Constant 19 143 112: 7(int) Constant 23 144 113: 7(int) Constant 9 145 111: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 20 112 113 34 146 119: 7(int) Constant 24 147 118: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 20 119 35 111 148 126: 7(int) Constant 27 149 133: 7(int) Constant 31 150 132: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 20 133 113 39 151 138: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 20 10 35 132 152 146: 7(int) Constant 35 153 150: 7(int) Constant 37 154 161: 7(int) Constant 42 155 166: 7(int) Constant 45 156 169: 7(int) Constant 46 157 171: 49(int) Constant 3 158 175: 7(int) Constant 48 159 180: 7(int) Constant 51 160 186: 7(int) Constant 54 161 189: 7(int) Constant 55 162 192: 7(int) Constant 56 163 195: 7(int) Constant 57 164 198: 7(int) Constant 58 165 201: 7(int) Constant 59 166 203: 7(int) Constant 60 167 14(main): 4 Function None 5 168 15: Label 169 64: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 22 170 65: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 24 24 12 12 171 Store 60(counter) 63 172 182: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 47 173 183: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 48 48 12 12 174 181: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 47 14(main) 175 185: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 186 186 12 12 176 184: 4 FunctionCall 16(test_if() 177 188: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 189 189 12 12 178 187: 4 FunctionCall 26(test_ifelse() 179 191: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 192 192 12 12 180 190: 4 FunctionCall 31(test_if_compound() 181 194: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 195 195 12 12 182 193: 4 FunctionCall 36(test_if_compound2() 183 197: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 198 198 12 12 184 196: 4 FunctionCall 41(test_switch() 185 200: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 201 201 12 12 186 199: 49(int) Load 60(counter) 187 Store 54(outx) 199 188 202: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 203 203 12 12 189 Return 190 FunctionEnd 191 16(test_if(): 4 Function None 5 192 17: Label 193 67: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 19 194 68: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 11 11 12 12 195 66: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 19 16(test_if() 196 SelectionMerge 74 None 197 BranchConditional 72 73 74 198 73: Label 199 79: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 75 200 80: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 57 57 12 12 201 78: 49(int) Load 60(counter) 202 81: 49(int) IAdd 78 77 203 Store 60(counter) 81 204 Branch 74 205 74: Label 206 82: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 19 207 83: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 84 84 12 12 208 Return 209 FunctionEnd 21026(test_ifelse(): 4 Function None 5 211 27: Label 212 86: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 29 213 87: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 30 30 12 12 214 85: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 29 26(test_ifelse() 215 SelectionMerge 89 None 216 BranchConditional 72 88 96 217 88: Label 218 93: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 90 219 94: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 91 91 12 12 220 92: 49(int) Load 60(counter) 221 95: 49(int) IAdd 92 77 222 Store 60(counter) 95 223 Branch 89 224 96: Label 225 100: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 97 226 101: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 76 76 12 12 227 99: 49(int) Load 60(counter) 228 102: 49(int) IAdd 99 98 229 Store 60(counter) 102 230 Branch 89 231 89: Label 232 103: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 29 233 104: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 105 105 12 12 234 Return 235 FunctionEnd 23631(test_if_compound(): 4 Function None 5 237 32: Label 238 107: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 34 239 108: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 35 35 12 12 240 106: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 34 31(test_if_compound() 241 SelectionMerge 110 None 242 BranchConditional 72 109 110 243 109: Label 244 116: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 111 245 117: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 35 35 12 12 246 SelectionMerge 115 None 247 BranchConditional 72 114 115 248 114: Label 249 121: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 118 250 122: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 119 119 12 12 251 120: 49(int) Load 60(counter) 252 123: 49(int) IAdd 120 77 253 Store 60(counter) 123 254 Branch 115 255 115: Label 256 Branch 110 257 110: Label 258 124: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 34 259 125: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 126 126 12 12 260 Return 261 FunctionEnd 26236(test_if_compound2(): 4 Function None 5 263 37: Label 264 128: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 39 265 129: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 40 40 12 12 266 127: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 39 36(test_if_compound2() 267 SelectionMerge 131 None 268 BranchConditional 72 130 131 269 130: Label 270 136: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 132 271 137: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 40 40 12 12 272 SelectionMerge 135 None 273 BranchConditional 72 134 135 274 134: Label 275 140: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 138 276 141: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 10 10 12 12 277 139: 49(int) Load 60(counter) 278 142: 49(int) IAdd 139 77 279 Store 60(counter) 142 280 Branch 135 281 135: Label 282 144: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 132 283 145: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 146 146 12 12 284 143: 49(int) Load 60(counter) 285 147: 49(int) IAdd 143 98 286 Store 60(counter) 147 287 Branch 131 288 131: Label 289 148: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 39 290 149: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 150 150 12 12 291 Return 292 FunctionEnd 29341(test_switch(): 4 Function None 5 294 42: Label 295 152: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 44 296 153: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 45 45 12 12 297 151: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 44 41(test_switch() 298 SelectionMerge 157 None 299 Switch 63 156 300 case 0: 154 301 case 1: 155 302 156: Label 303 173: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 44 304 174: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 175 175 12 12 305 172: 49(int) Load 60(counter) 306 176: 49(int) IAdd 172 171 307 Store 60(counter) 176 308 Branch 157 309 154: Label 310 159: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 44 311 160: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 161 161 12 12 312 158: 49(int) Load 60(counter) 313 162: 49(int) IAdd 158 77 314 Store 60(counter) 162 315 Branch 155 316 155: Label 317 164: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 44 318 165: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 166 166 12 12 319 163: 49(int) Load 60(counter) 320 167: 49(int) IAdd 163 98 321 Store 60(counter) 167 322 168: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 169 169 12 12 323 Branch 157 324 157: Label 325 178: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 44 326 179: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 180 180 12 12 327 Return 328 FunctionEnd