[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
Thu Oct 22 08:52:51 PDT 2026


================
@@ -0,0 +1,52 @@
+// cl_khr_cooperative_matrix registration test.
+//
+// Test if extension macro is predefined when the extension is enabled
+// RUN: %clang_cc1 -triple spirv64-unknown-unknown \
+// RUN:   -cl-std=CL2.0 -cl-ext=+cl_khr_cooperative_matrix \
+// RUN:   -finclude-default-header -E -dM %s \
+// RUN:   | FileCheck %s --check-prefix=EXT
+
+// EXT: cl_khr_cooperative_matrix
----------------
svenvh wrote:

```suggestion
// EXT: #define cl_khr_cooperative_matrix
```
to make this less fragile.

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


More information about the cfe-commits mailing list