[clang] [CIR] Support builtin matrix type (PR #221773)

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 8 10:59:13 PDT 2026


================
@@ -46,6 +46,17 @@ mlir::Type convertTypeForMemory(const mlir::TypeConverter &converter,
                                   dataLayout.getTypeSizeInBits(type));
   }
 
+  if (auto matrixTy = mlir::dyn_cast<cir::MatrixType>(type)) {
+    if (mlir::isa<cir::BoolType>(matrixTy.getElementType())) {
+      llvm_unreachable(
+          "convertTypeForMemory: Matrix with bool as element type");
+    }
----------------
AmrDeveloper wrote:

I added `cir::MissingFeatures::hlsl()` but the idea of `llvm_unreachable` is to act as NYI for matrix of bools 🤔 not only for hlsl target

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


More information about the cfe-commits mailing list