File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
mlir/lib/Target/SPIRV/Deserialization Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -1065,12 +1065,20 @@ LogicalResult spirv::Deserializer::processCooperativeMatrixTypeKHR(
1065
1065
IntegerAttr columnsAttr = getConstantInt (operands[4 ]);
1066
1066
IntegerAttr useAttr = getConstantInt (operands[5 ]);
1067
1067
1068
- if (!rowsAttr || !columnsAttr || !useAttr)
1069
- return emitError (
1070
- unknownLoc,
1071
- " OpTypeCooperativeMatrixKHR references undefined constant <id> " )
1072
- << (rowsAttr ? (columnsAttr ? operands[5 ] : operands[4 ])
1073
- : operands[3 ]);
1068
+ if (!rowsAttr)
1069
+ return emitError (unknownLoc, " OpTypeCooperativeMatrixKHR `Rows` references "
1070
+ " undefined constant <id> " )
1071
+ << operands[3 ];
1072
+
1073
+ if (!columnsAttr)
1074
+ return emitError (unknownLoc, " OpTypeCooperativeMatrixKHR `Columns` "
1075
+ " references undefined constant <id> " )
1076
+ << operands[4 ];
1077
+
1078
+ if (!useAttr)
1079
+ return emitError (unknownLoc, " OpTypeCooperativeMatrixKHR `Use` references "
1080
+ " undefined constant <id> " )
1081
+ << operands[5 ];
1074
1082
1075
1083
unsigned rows = rowsAttr.getInt ();
1076
1084
unsigned columns = columnsAttr.getInt ();
You can’t perform that action at this time.
0 commit comments