Skip to content

Commit 974f2d4

Browse files
Fix Build errors
1 parent 182baae commit 974f2d4

2 files changed

Lines changed: 82 additions & 52 deletions

File tree

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

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8013,25 +8013,41 @@ def err_hlsl_reorder_unsupported_stage : Error<
80138013
"dx::MaybeReorderThread is unavailable in shader stage '%0' (requires 'raygeneration')">;
80148014
def err_hlsl_hitobject_unsupported_stage : Error<
80158015
"dx::HitObject is unavailable in shader stage '%0' (requires 'raygeneration', 'closesthit' or 'miss')">;
8016-
// HLSL Change Ends
80178016

80188017
// Linear Algebra Operations
8019-
def err_hlsl_linalg_param_must_be_const : Error<"'%0' must be a constant parameter">;
8020-
def err_hlsl_linalg_vector_incorrect_type : Error<"%0 is incorrect type, must be 16-bit or 32-bit 'unsigned int', 'signed int' or 'float'">;
8021-
def err_hlsl_linalg_isunsigned_incorrect_for_given_type : Error<"%0 must be %select{false|true}1 for a %2 vector type">;
8022-
def err_hlsl_linalg_interpretation_value_incorrect : Error<"%0 is an invalid %select{Memory|Register}1 Interpretation value">;
8023-
def err_hlsl_linalg_matrix_layout_is_not_transposable : Error<"RowMajor and ColumnMajor matrices are not transposable">;
8024-
def err_hlsl_linalg_optimal_matrix_layout_matrix_stride_must_be_zero : Error<"for optimal matrix layout, matrix stride must be zero">;
8025-
def err_hlsl_linalg_exceeds_max_matrix_dim: Error<"matrix dimension for linalg operations must be less than %0">;
8026-
def err_hlsl_linalg_matrix_dim_must_not_be_zero: Error<"matrix dimension must not be zero">;
8027-
def err_hlsl_linalg_matrix_layout_invalid : Error<"matrix layout %0 is not valid, must be in the range %1 - %2">;
8028-
8029-
def err_hlsl_linalg_mul_muladd_output_vector_size_not_equal_to_matrix_M : Error<"output vector length must be equal to Matrix M dimension in a linalg Mul/MulAdd operation">;
8030-
def err_hlsl_linalg_mul_muladd_unpacked_input_vector_size_not_equal_to_matrix_K : Error<"unpacked input vector length must be equal to Matrix K dimension in a linalg Mul/MulAdd operation">;
8031-
def err_hlsl_linalg_mul_muladd_packed_input_vector_size_incorrect : Error<"packed input vector length must be the smallest number that can hold K values of the packed type">;
8032-
8033-
def err_hlsl_linalg_outer_prod_acc_vector_type_mismatch : Error<"input vectors of outerproductaccumulate must have the same element type">;
8034-
def err_hlsl_linalg_outer_prod_acc_matrix_layout_must_be_outer_prod_acc_optimal : Error<"matrix layout for outerproductaccumulate must be %0">;
8018+
def err_hlsl_linalg_param_must_be_const : Error<
8019+
"'%0' must be a constant parameter">;
8020+
def err_hlsl_linalg_vector_incorrect_type : Error<
8021+
"%0 is incorrect type, must be 16-bit or 32-bit 'unsigned int', "
8022+
"'signed int' or 'float'">;
8023+
def err_hlsl_linalg_isunsigned_incorrect_for_given_type : Error<
8024+
"%0 must be %select{false|true}1 for a %2 vector type">;
8025+
def err_hlsl_linalg_interpretation_value_incorrect : Error<
8026+
"%0 is an invalid %select{Memory|Register}1 Interpretation value">;
8027+
def err_hlsl_linalg_matrix_layout_is_not_transposable : Error<
8028+
"RowMajor and ColumnMajor matrices are not transposable">;
8029+
def err_hlsl_linalg_optimal_matrix_layout_matrix_stride_must_be_zero : Error<
8030+
"for optimal matrix layout, matrix stride must be zero">;
8031+
def err_hlsl_linalg_exceeds_max_matrix_dim: Error<
8032+
"matrix dimension for linalg operations must be less than %0">;
8033+
def err_hlsl_linalg_matrix_dim_must_not_be_zero: Error<
8034+
"matrix dimension must not be zero">;
8035+
def err_hlsl_linalg_matrix_layout_invalid : Error<
8036+
"matrix layout %0 is not valid, must be in the range %1 - %2">;
8037+
8038+
def err_hlsl_linalg_mul_muladd_output_vector_size_not_equal_to_matrix_M : Error<
8039+
"output vector length must be equal to Matrix M dimension in a linalg Mul/MulAdd operation">;
8040+
def err_hlsl_linalg_mul_muladd_unpacked_input_vector_size_not_equal_to_matrix_K : Error<
8041+
"unpacked input vector length must be equal to Matrix K dimension in a linalg Mul/MulAdd operation">;
8042+
def err_hlsl_linalg_mul_muladd_packed_input_vector_size_incorrect : Error<
8043+
"packed input vector length must be the smallest number that can hold K values of the packed type">;
8044+
8045+
def err_hlsl_linalg_outer_prod_acc_vector_type_mismatch : Error<
8046+
"input vectors of outerproductaccumulate must have the same element type">;
8047+
def err_hlsl_linalg_outer_prod_acc_matrix_layout_must_be_outer_prod_acc_optimal : Error<
8048+
"matrix layout for outerproductaccumulate must be %0">;
8049+
8050+
// HLSL Change Ends
80358051

80368052
// SPIRV Change Starts
80378053
def err_hlsl_vulkan_specific_feature: Error<"%0 is a Vulkan specific feature">;

0 commit comments

Comments
 (0)