[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:43 PDT 2026


================
@@ -14102,6 +14105,31 @@ void Sema::DiagnoseUniqueObjectDuplication(const VarDecl *VD) {
   }
 }
 
+// Return the CallExpr if builtin call returns cooperative matrix.
+CallExpr *Sema::getCoopMatrixBuiltinCall(Expr *RHSExpr) {
+  RHSExpr = RHSExpr->IgnoreParens();
----------------
svenvh wrote:

Please make sure to add a test for e.g. the form `MatA_t a = (coop_mat_load(ptr, ROW_MAJOR, 16));`

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


More information about the cfe-commits mailing list