[Lldb-commits] [clang] [lldb] [llvm] [OpenCL][Clang] Add support for cooperative matrix extension (PR #221328)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 27 06:22:41 PDT 2026
================
@@ -12022,6 +12022,56 @@ def ext_opencl_ext_vector_type_rgba_selector: ExtWarn<
def err_openclcxx_placement_new : Error<
"use of placement new requires explicit declaration">;
+// OpenCL C Cooperative Matrix.
+def err_coopmat_without_pragma
+ : Error<"cooperative matrix types require OpenCL extension '%0' to be enabled via pragma">;
+
+def err_invalid_coopmat_attr
+ : Error<"invalid '%0' argument of cooperative matrix attribute">;
+
+def err_invalid_coopmat_mem_layout
+ : Error<"memory layout for cooperative matrix load/store should be "
+ "CLK_COOPERATIVE_MATRIX_LAYOUT_ROW_MAJOR or "
+ "CLK_COOPERATIVE_MATRIX_LAYOUT_COLUMN_MAJOR">;
+
+def err_invalid_coopmat_stride_type
+ : Error<"stride argument for load/store of cooperative matrix must have "
+ "type 'size_t'">;
+
+def err_coopmat_mismatch_element_and_pointer_type
+ : Error<"inconsistent between cooperative matrix element type and buffer "
+ "pointer type">;
+
+def err_invalid_coopmat_arg
+ : Error<"argument must be a valid cooperative matrix">;
+
+def err_invalid_coopmat_matrix_operand_type
+ : Error<"fourth argument of 'coop_mat_mulAdd' must have enum or integer type">;
+
+def err_invalid_coopmat_assignment
+ : Error<"builtin return value should be assigned to cooperative matrix "
+ "type variable">;
+
+def err_invalid_coopmat_use : Error<"argument of cooperative matrix must have '%0' use">;
+
+def err_invalid_coopmat_element_type
+ : Error<"%0 is invalid cooperative matrix element type">;
----------------
asudarsa-qti wrote:
Fixed in fad765e96bccde560e6d8632509da0863dd59c28
https://github.com/llvm/llvm-project/pull/221328
More information about the lldb-commits
mailing list