[clang] [HLSL] Modify the Matrix orientation to be AST based instead of Attribute (PR #214001)

Farzon Lotfi via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 11 11:56:00 PDT 2026


================
@@ -3766,6 +3766,9 @@ void MicrosoftCXXNameMangler::mangleType(const ConstantMatrixType *T,
 
   Extra.mangleIntegerLiteral(llvm::APSInt::getUnsigned(T->getNumRows()));
   Extra.mangleIntegerLiteral(llvm::APSInt::getUnsigned(T->getNumColumns()));
+  if (std::optional<MatrixType::LayoutKind> Layout = T->getLayout())
----------------
farzonl wrote:

We don't use Microsoft mangler for  HLSL anymore. I added this more to be consistent, but not clear how we can test this code since c++ does not have Matrix layout modifier like HLSL does. Maybe via the clang unit tests?

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


More information about the cfe-commits mailing list