Debian Codegraph @

third_party/spirv-cross/shaders/asm/frag/temporary-phi-hoisting.asm.frag

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 1
4 ; Bound: 87
5 ; Schema: 0
6 OpCapability Shader
7 %1 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Fragment %main "main" %_entryPointOutput
10 OpExecutionMode %main OriginUpperLeft
11 OpSource HLSL 500
12 OpName %main "main"
13 OpName %MyStruct "MyStruct"
14 OpMemberName %MyStruct 0 "color"
15 OpName %MyStruct_CB "MyStruct_CB"
16 OpMemberName %MyStruct_CB 0 "g_MyStruct"
17 OpName %_ ""
18 OpName %_entryPointOutput "@entryPointOutput"
19 OpMemberDecorate %MyStruct 0 Offset 0
20 OpDecorate %_arr_MyStruct_uint_4 ArrayStride 16
21 OpMemberDecorate %MyStruct_CB 0 Offset 0
22 OpDecorate %MyStruct_CB Block
23 OpDecorate %_ DescriptorSet 0
24 OpDecorate %_ Binding 0
25 OpDecorate %_entryPointOutput Location 0
26 %void = OpTypeVoid
27 %3 = OpTypeFunction %void
28 %float = OpTypeFloat 32
29 %v4float = OpTypeVector %float 4
30 %v3float = OpTypeVector %float 3
31 %float_0 = OpConstant %float 0
32 %15 = OpConstantComposite %v3float %float_0 %float_0 %float_0
33 %int = OpTypeInt 32 1
34 %int_0 = OpConstant %int 0
35 %int_4 = OpConstant %int 4
36 %bool = OpTypeBool
37 %MyStruct = OpTypeStruct %v4float
38 %uint = OpTypeInt 32 0
39 %uint_4 = OpConstant %uint 4
40 %_arr_MyStruct_uint_4 = OpTypeArray %MyStruct %uint_4
41 %MyStruct_CB = OpTypeStruct %_arr_MyStruct_uint_4
42 %_ptr_Uniform_MyStruct_CB = OpTypePointer Uniform %MyStruct_CB
43 %_ = OpVariable %_ptr_Uniform_MyStruct_CB Uniform
44 %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
45 %int_1 = OpConstant %int 1
46 %float_1 = OpConstant %float 1
47 %_ptr_Output_v4float = OpTypePointer Output %v4float
48 %_entryPointOutput = OpVariable %_ptr_Output_v4float Output
49 %main = OpFunction %void None %3
50 %5 = OpLabel
51 OpBranch %64
52 %64 = OpLabel
53 %85 = OpPhi %v3float %15 %5 %77 %66
54 %86 = OpPhi %int %int_0 %5 %79 %66
55 OpLoopMerge %65 %66 None
56 OpBranch %67
57 %67 = OpLabel
58 %69 = OpSLessThan %bool %86 %int_4
59 OpBranchConditional %69 %70 %65
60 %70 = OpLabel
61 %72 = OpAccessChain %_ptr_Uniform_v4float %_ %int_0 %86 %int_0
62 %73 = OpLoad %v4float %72
63 %74 = OpVectorShuffle %v3float %73 %73 0 1 2
64 %77 = OpFAdd %v3float %85 %74
65 OpBranch %66
66 %66 = OpLabel
67 %79 = OpIAdd %int %86 %int_1
68 OpBranch %64
69 %65 = OpLabel
70 %81 = OpCompositeExtract %float %85 0
71 %82 = OpCompositeExtract %float %85 1
72 %83 = OpCompositeExtract %float %85 2
73 %84 = OpCompositeConstruct %v4float %81 %82 %83 %float_1
74 OpStore %_entryPointOutput %84
75 OpReturn
76 OpFunctionEnd