@@ -11682,7 +11682,7 @@ static const unsigned kMatVecMulMatrixStrideIdx = 12;
1168211682// MatVecAdd
1168311683const unsigned kMatVecMulAddBiasInterpretation = 15;
1168411684
11685- static bool IsValidMatrixLayoutForMulandMulAddOps (unsigned Layout) {
11685+ static bool IsValidMatrixLayoutForMulAndMulAddOps (unsigned Layout) {
1168611686 return Layout <=
1168711687 static_cast<unsigned>(DXIL::LinalgMatrixLayout::OuterProductOptimal);
1168811688}
@@ -11897,15 +11897,15 @@ static void CheckCommonMulandMulAddParameters(Sema &S, CallExpr *CE,
1189711897
1189811898 // Check if the isUnsigned flag setting
1189911899 if (IsInputVectorPacked) {
11900- // Check that the input vector type is always uint32_t
11900+ // Check that the input vector element type is "32bit"
1190111901 if (!Is32Bit) {
1190211902 S.Diags.Report(
1190311903 InputVectorExpr->getExprLoc(),
1190411904 diag::err_hlsl_linalg_mul_muladd_packed_input_vector_must_be_uint);
1190511905 return;
1190611906 }
1190711907
11908- // Check that the input vector is unsigned int
11908+ // Check that the input vector element type is an unsigned int
1190911909 if (!InputVectorTypePtr->isUnsignedIntegerType()) {
1191011910 S.Diags.Report(
1191111911 InputVectorExpr->getExprLoc(),
@@ -12039,7 +12039,7 @@ static void CheckCommonMulandMulAddParameters(Sema &S, CallExpr *CE,
1203912039 unsigned MatrixLayoutValue = 0;
1204012040 if (MatrixLayoutExpr->isIntegerConstantExpr(MatrixLayoutExprVal, S.Context)) {
1204112041 MatrixLayoutValue = MatrixLayoutExprVal.getLimitedValue();
12042- if (!IsValidMatrixLayoutForMulandMulAddOps (MatrixLayoutValue)) {
12042+ if (!IsValidMatrixLayoutForMulAndMulAddOps (MatrixLayoutValue)) {
1204312043 S.Diags.Report(MatrixLayoutExpr->getExprLoc(),
1204412044 diag::err_hlsl_linalg_matrix_layout_invalid)
1204512045 << std::to_string(MatrixLayoutValue)
0 commit comments