yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
09cfe5ce
main
1spv.coopmat2_tensor.comp 2// Module Version 10600 3// Generated by (magic number): 8000b 4// Id's are bound by 170 5 6 Capability Shader 7 Capability Float16 8 Capability StorageUniformBufferBlock16 9 Capability VulkanMemoryModelKHR 10 Capability PhysicalStorageBufferAddressesEXT 11 Capability CooperativeMatrixTensorAddressingNV 12 Capability CooperativeMatrixBlockLoadsNV 13 Capability TensorAddressingNV 14 Capability CooperativeMatrixKHR 15 Extension "SPV_KHR_cooperative_matrix" 16 Extension "SPV_NV_cooperative_matrix2" 17 Extension "SPV_NV_tensor_addressing" 18 1: ExtInstImport "GLSL.std.450" 19 MemoryModel PhysicalStorageBuffer64EXT VulkanKHR 20 EntryPoint GLCompute 4 "main" 90 122 21 ExecutionMode 4 LocalSize 64 1 1 22 Source GLSL 450 23 SourceExtension "GL_EXT_buffer_reference" 24 SourceExtension "GL_EXT_shader_explicit_arithmetic_types" 25 SourceExtension "GL_KHR_cooperative_matrix" 26 SourceExtension "GL_KHR_memory_scope_semantics" 27 SourceExtension "GL_NV_cooperative_matrix2" 28 Name 4 "main" 29 Name 8 "fp16Buf" 30 MemberName 8(fp16Buf) 0 "f" 31 Name 16 "decode(bref-fp16Buf1;u1[2];u1[2];" 32 Name 13 "b" 33 Name 14 "blockCoords" 34 Name 15 "coordInBlock" 35 Name 28 "t" 36 Name 35 "t2" 37 Name 56 "v" 38 Name 75 "v2" 39 Name 79 "v3" 40 Name 84 "A" 41 Name 88 "BufType" 42 MemberName 88(BufType) 0 "arr" 43 MemberName 88(BufType) 1 "x" 44 Name 90 "Buf" 45 Name 118 "S" 46 MemberName 118(S) 0 "x" 47 Name 120 "SBuf" 48 MemberName 120(SBuf) 0 "s" 49 Name 122 "sbuf" 50 Name 129 "Clamp" 51 Name 132 "tc" 52 Name 136 "Arr" 53 Name 151 "Clamp_signed" 54 Name 154 "tc_s" 55 Name 158 "v4" 56 Name 162 "tc2" 57 Name 166 "v5" 58 Decorate 8(fp16Buf) Block 59 MemberDecorate 8(fp16Buf) 0 Offset 0 60 Decorate 13(b) Aliased 61 Decorate 85 ArrayStride 2 62 Decorate 86 ArrayStride 512 63 Decorate 87 ArrayStride 2 64 Decorate 88(BufType) Block 65 MemberDecorate 88(BufType) 0 Offset 0 66 MemberDecorate 88(BufType) 1 Offset 131072 67 Decorate 90(Buf) Binding 1 68 Decorate 90(Buf) DescriptorSet 0 69 MemberDecorate 118(S) 0 Offset 0 70 Decorate 119 ArrayStride 4 71 Decorate 120(SBuf) Block 72 MemberDecorate 120(SBuf) 0 Offset 0 73 Decorate 122(sbuf) Binding 0 74 Decorate 122(sbuf) DescriptorSet 0 75 Decorate 129(Clamp) SpecId 0 76 Decorate 151(Clamp_signed) SpecId 1 77 2: TypeVoid 78 3: TypeFunction 2 79 TypeForwardPointer 6 PhysicalStorageBufferEXT 80 7: TypeFloat 16 81 8(fp16Buf): TypeStruct 7(float16_t) 82 6: TypePointer PhysicalStorageBufferEXT 8(fp16Buf) 83 9: TypeInt 32 0 84 10: 9(int) Constant 2 85 11: TypeArray 9(int) 10 86 12: TypeFunction 7(float16_t) 6(ptr) 11 11 87 18: TypeInt 32 1 88 19: 18(int) Constant 0 89 20: TypePointer PhysicalStorageBufferEXT 7(float16_t) 90 25: 9(int) Constant 0 91 26: TypeTensorLayoutNV 10 25 92 27: TypePointer Function 26 93 29: 18(int) Constant 2 94 31: 9(int) Constant 3 95 32: 9(int) Constant 1 96 33: TypeTensorLayoutNV 31 32 97 34: TypePointer Function 33 98 36: 18(int) Constant 3 99 37: 18(int) Constant 1 100 40: 9(int) Constant 4 101 41: 9(int) Constant 8 102 44: 9(int) Constant 256 103 45: 9(int) Constant 512 104 48: 9(int) Constant 128 105 49: 9(int) Constant 32 106 51: 9(int) Constant 5 107 52: TypeBool 108 53: 52(bool) ConstantFalse 109 54: TypeTensorViewNV 51 53 25 32 10 31 40 110 55: TypePointer Function 54 111 57: 18(int) Constant 5 112 60: 9(int) Constant 10 113 61: 9(int) Constant 11 114 62: 9(int) Constant 12 115 63: 9(int) Constant 13 116 64: 9(int) Constant 14 117 67: 9(int) Constant 15 118 70: 9(int) Constant 16 119 72: 52(bool) ConstantTrue 120 73: TypeTensorViewNV 51 72 25 32 10 31 40 121 74: TypePointer Function 73 122 77: TypeTensorViewNV 10 72 32 25 123 78: TypePointer Function 77 124 81: 9(int) Constant 64 125 82: TypeCooperativeMatrixKHR 7(float16_t) 10 81 49 25 126 83: TypePointer Function 82 127 85: TypeArray 7(float16_t) 44 128 86: TypeArray 85 44 129 87: TypeRuntimeArray 7(float16_t) 130 88(BufType): TypeStruct 86 87 131 89: TypePointer StorageBuffer 88(BufType) 132 90(Buf): 89(ptr) Variable StorageBuffer 133 91: TypePointer StorageBuffer 7(float16_t) 134 117: TypeVector 7(float16_t) 2 135 118(S): TypeStruct 117(f16vec2) 136 119: TypeRuntimeArray 118(S) 137 120(SBuf): TypeStruct 119 138 121: TypePointer StorageBuffer 120(SBuf) 139 122(sbuf): 121(ptr) Variable StorageBuffer 140 123: TypePointer StorageBuffer 118(S) 141 129(Clamp): 9(int) SpecConstant 1 142 130: TypeTensorLayoutNV 10 129(Clamp) 143 131: TypePointer Function 130 144 134: TypeArray 82 10 145 135: TypePointer Function 134 146 142: 18(int) Constant 8 147 148: 18(int) Constant 16 148151(Clamp_signed): 18(int) SpecConstant 1 149 152: TypeTensorLayoutNV 10 151(Clamp_signed) 150 153: TypePointer Function 152 151 156: TypeTensorViewNV 129(Clamp) 72 25 152 157: TypePointer Function 156 153 160: TypeTensorLayoutNV 129(Clamp) 25 154 161: TypePointer Function 160 155 164: TypeTensorViewNV 129(Clamp) 53 25 156 165: TypePointer Function 164 157 168: TypeVector 9(int) 3 158 169: 168(ivec3) ConstantComposite 81 32 32 159 4(main): 2 Function None 3 160 5: Label 161 28(t): 27(ptr) Variable Function 162 35(t2): 34(ptr) Variable Function 163 56(v): 55(ptr) Variable Function 164 75(v2): 74(ptr) Variable Function 165 79(v3): 78(ptr) Variable Function 166 84(A): 83(ptr) Variable Function 167 132(tc): 131(ptr) Variable Function 168 136(Arr): 135(ptr) Variable Function 169 154(tc_s): 153(ptr) Variable Function 170 158(v4): 157(ptr) Variable Function 171 162(tc2): 161(ptr) Variable Function 172 166(v5): 165(ptr) Variable Function 173 30: 26 CreateTensorLayoutNV 174 Store 28(t) 30 175 38: 33 CreateTensorLayoutNV 176 Store 35(t2) 38 177 39: 26 Load 28(t) 178 42: 26 TensorLayoutSetBlockSizeNV 39 40 41 179 Store 28(t) 42 180 43: 26 Load 28(t) 181 46: 26 TensorLayoutSetDimensionNV 43 44 45 182 Store 28(t) 46 183 47: 26 Load 28(t) 184 50: 26 TensorLayoutSliceNV 47 48 49 44 49 185 Store 28(t) 50 186 58: 54 CreateTensorViewNV 187 Store 56(v) 58 188 59: 54 Load 56(v) 189 65: 54 TensorViewSetDimensionNV 59 60 61 62 63 64 190 Store 56(v) 65 191 66: 54 Load 56(v) 192 68: 54 TensorViewSetStrideNV 66 60 61 62 63 67 193 Store 56(v) 68 194 69: 54 Load 56(v) 195 71: 54 TensorViewSetClipNV 69 25 70 25 70 196 Store 56(v) 71 197 76: 73 CreateTensorViewNV 198 Store 75(v2) 76 199 80: 77 CreateTensorViewNV 200 Store 79(v3) 80 201 92: 91(ptr) AccessChain 90(Buf) 37 25 202 93: 26 Load 28(t) 203 94: 82 Load 84(A) 204 95: 82 CooperativeMatrixLoadTensorNV 92 94 93 None None 205 Store 84(A) 95 206 96: 82 Load 84(A) 207 97: 91(ptr) AccessChain 90(Buf) 37 25 208 98: 26 Load 28(t) 209 CooperativeMatrixStoreTensorNV 97 96 98 None None 210 99: 91(ptr) AccessChain 90(Buf) 37 25 211 100: 26 Load 28(t) 212 101: 54 Load 56(v) 213 102: 82 Load 84(A) 214 103: 82 CooperativeMatrixLoadTensorNV 99 102 100 None TensorView 101 215 Store 84(A) 103 216 104: 82 Load 84(A) 217 105: 91(ptr) AccessChain 90(Buf) 37 25 218 106: 26 Load 28(t) 219 107: 54 Load 56(v) 220 CooperativeMatrixStoreTensorNV 105 104 106 None TensorView 107 221 108: 91(ptr) AccessChain 90(Buf) 37 25 222 109: 26 Load 28(t) 223 110: 82 Load 84(A) 224 111: 82 CooperativeMatrixLoadTensorNV 108 110 109 None DecodeFunc 16(decode(bref-fp16Buf1;u1[2];u1[2];) 225 Store 84(A) 111 226 112: 91(ptr) AccessChain 90(Buf) 37 25 227 113: 26 Load 28(t) 228 114: 54 Load 56(v) 229 115: 82 Load 84(A) 230 116: 82 CooperativeMatrixLoadTensorNV 112 115 113 None TensorView DecodeFunc 114 16(decode(bref-fp16Buf1;u1[2];u1[2];) 231 Store 84(A) 116 232 124: 123(ptr) AccessChain 122(sbuf) 19 32 233 125: 26 Load 28(t) 234 126: 54 Load 56(v) 235 127: 82 Load 84(A) 236 128: 82 CooperativeMatrixLoadTensorNV 124 127 125 None TensorView DecodeFunc 126 16(decode(bref-fp16Buf1;u1[2];u1[2];) 237 Store 84(A) 128 238 133: 130 CreateTensorLayoutNV 239 Store 132(tc) 133 240 137: 83(ptr) AccessChain 136(Arr) 37 241 138: 91(ptr) AccessChain 90(Buf) 37 25 242 139: 26 Load 28(t) 243 140: 82 Load 137 244 141: 82 CooperativeMatrixLoadTensorNV 138 140 139 None None 245 Store 137 141 246 143: 91(ptr) AccessChain 90(Buf) 19 142 25 247 144: 26 Load 28(t) 248 145: 82 Load 84(A) 249 146: 82 CooperativeMatrixLoadTensorNV 143 145 144 None None 250 Store 84(A) 146 251 147: 82 Load 84(A) 252 149: 91(ptr) AccessChain 90(Buf) 19 148 25 253 150: 26 Load 28(t) 254 CooperativeMatrixStoreTensorNV 149 147 150 None None 255 155: 152 CreateTensorLayoutNV 256 Store 154(tc_s) 155 257 159: 156 CreateTensorViewNV 258 Store 158(v4) 159 259 163: 160 CreateTensorLayoutNV 260 Store 162(tc2) 163 261 167: 164 CreateTensorViewNV 262 Store 166(v5) 167 263 Return 264 FunctionEnd 26516(decode(bref-fp16Buf1;u1[2];u1[2];):7(float16_t) Function None 12 266 13(b): 6(ptr) FunctionParameter 267 14(blockCoords): 11 FunctionParameter 26815(coordInBlock): 11 FunctionParameter 269 17: Label 270 21: 20(ptr) AccessChain 13(b) 19 271 22:7(float16_t) Load 21 Aligned 2 272 ReturnValue 22 273 FunctionEnd