Skip to content

Commit 99a9566

Browse files
review feedback
1 parent 46c2caf commit 99a9566

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

tools/clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8048,7 +8048,7 @@ def err_hlsl_linalg_mul_muladd_isUnsigned_for_packed_input_must_be_true : Error<
80488048
"IsInputUnsigned must be true for packed input interpretations in linalg mul/muladd operations">;
80498049
def err_hlsl_linalg_mul_muladd_packed_input_vector_must_be_uint : Error<
80508050
"packed input vector type must be a 32-bit unsigned int in linalg mul/muladd operations, "
8051-
"packed formats uint8_t4_packed and sint8_t4_packed are not supported currently">;
8051+
"packed formats uint8_t4_packed and sint8_t4_packed are not supported currently">;
80528052

80538053
def err_hlsl_linalg_outer_prod_acc_vector_type_mismatch : Error<
80548054
"input vectors of outerproductaccumulate must have the same element type">;

tools/clang/lib/Sema/SemaHLSL.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11682,7 +11682,7 @@ static const unsigned kMatVecMulMatrixStrideIdx = 12;
1168211682
// MatVecAdd
1168311683
const 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

Comments
 (0)