[clang] [Clang][OpenCL] Declare cl_amd_media_ops/cl_amd_media_ops2 builtins with -fdeclare-opencl-builtins (PR #143507)

Juan Manuel Martinez CaamaƱo via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 12 08:21:23 PDT 2025


================
@@ -0,0 +1,98 @@
+// RUN: %clang_cc1 %s -triple amdgcn-unknown-unknown -verify -pedantic -Wconversion -Werror -fsyntax-only -cl-std=CL -finclude-default-header %s
+// RUN: %clang_cc1 %s -triple amdgcn-unknown-unknown -verify -pedantic -Wconversion -Werror -fsyntax-only -cl-std=CL -finclude-default-header -fdeclare-opencl-builtins %s
+// expected-no-diagnostics
+
----------------
jmmartinez wrote:

I filed a ticket to keep track of it (SWDEV-537980) and added `-cl-ext=-all,+cl_amd_media_ops,+cl_amd_media_ops2` to the command lines in the tests.

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


More information about the cfe-commits mailing list