[clang] [lldb] [llvm] [OpenCL][Clang] Add support for cooperative matrix extension (PR #221328)

Sven van Haastregt via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 9 08:49:42 PDT 2026


================
@@ -5185,7 +5186,8 @@ ExprResult Sema::ActOnArraySubscriptExpr(Scope *S, Expr *base,
   }
 
   // If the base is a matrix type, try to create a new MatrixSubscriptExpr.
-  if (base->getType()->isMatrixType()) {
+  if (base->getType()->isMatrixType() ||
----------------
svenvh wrote:

Do we have tests covering subscript expressions?

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


More information about the cfe-commits mailing list