================
@@ -14074,6 +14074,25 @@ void Sema::DiagnoseUniqueObjectDuplication(const 
VarDecl *VD) {
   }
 }
 
+// Return true if RHSExpr is a cooperative matrix builtin call.
+bool Sema::IsCoopMatrixBuiltin(Expr *RHSExpr) {
+  auto call = dyn_cast<CallExpr>(RHSExpr);
+  if (!call)
+    return false;
+  FunctionDecl *F = call->getDirectCallee();
+  if (!F)
+    return false;
+  DeclarationName MemberName = F->getDeclName();
+  IdentifierInfo *Fname = MemberName.getAsIdentifierInfo();
+  if (!Fname)
+    return false;
+  if (Fname->getName().starts_with("coop_mat") &&
----------------
asudarsa-qti wrote:

You are right. This check is expected to return 'true' for all builtins that 
will give back a cooperative matrix. For all coop builtins except 
coop_mat_store (returns void) and coop_mat_length (returns scalar), we should 
return true.

https://github.com/llvm/llvm-project/pull/221328
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to