[clang] Enable matrices in HLSL (PR #111415)
Greg Roth via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 10 14:21:47 PDT 2024
================
@@ -852,34 +852,50 @@ void TypePrinter::printExtVectorAfter(const ExtVectorType *T, raw_ostream &OS) {
void TypePrinter::printConstantMatrixBefore(const ConstantMatrixType *T,
raw_ostream &OS) {
+ if (Policy.UseHLSLTypes)
+ OS << "matrix<";
printBefore(T->getElementType(), OS);
- OS << " __attribute__((matrix_type(";
- OS << T->getNumRows() << ", " << T->getNumColumns();
- OS << ")))";
----------------
pow2clk wrote:
See my response to Florian [here](https://github.com/llvm/llvm-project/pull/111415/files#r1796090424)
https://github.com/llvm/llvm-project/pull/111415
More information about the cfe-commits
mailing list