[clang] [CIR] Implement matrix scalar division support (PR #230808)

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 12 11:05:27 PDT 2026


================
@@ -2280,9 +2280,21 @@ mlir::Value ScalarExprEmitter::emitDiv(const BinOpInfo &ops) {
   }
 
   if (ops.fullType->isConstantMatrixType()) {
-    assert(!cir::MissingFeatures::matrixType());
-    cgf.cgm.errorNYI("ScalarExprEmitter::emitDiv: matrix types");
-    return {};
+    auto *bo = cast<BinaryOperator>(ops.e);
+    (void)bo;
+    assert(
----------------
AmrDeveloper wrote:

Thats makes sense, thanks

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


More information about the cfe-commits mailing list