[clang] [HLSL][Matrix] Add support for Matrix element and trunc Casts (PR #168915)

Chris B via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 20 10:30:50 PST 2025


================
@@ -162,6 +162,7 @@ ImplicitConversionRank clang::GetConversionRank(ImplicitConversionKind Kind) {
       ICR_C_Conversion_Extension,
       ICR_Conversion,
       ICR_HLSL_Dimension_Reduction,
+      ICR_HLSL_Dimension_Reduction,
----------------
llvm-beanz wrote:

We should make sure the language spec is up to date with the conversion ranks (see: https://github.com/microsoft/hlsl-specs/blob/main/specs/language/overloading.tex#L296).

https://github.com/llvm/llvm-project/pull/168915


More information about the cfe-commits mailing list