================ @@ -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 << ")))"; ---------------- fhahn wrote:
may be simpler to read to duplicate some code but have the HSL and C++ matrixes types printed completely separately? https://github.com/llvm/llvm-project/pull/111415 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits