[clang] clang/HIP: Remove some unused ocml function declarations (PR #204735)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 20 10:24:03 PDT 2026


================
@@ -43,40 +40,17 @@ __device__ __attribute__((pure)) float __ocml_erfcinv_f32(float);
 __device__ __attribute__((pure)) float __ocml_erfcx_f32(float);
----------------
arsenm wrote:

The CLR HIP headers also redeclare all of these functions. Until some time last year, the declarations in CLR were conditional and sometimes coming from the clang builtin headers ,which created an ugly circular dependency. Downstream projects really should not be directly using any of these functions. If they are, they should be responsible for including headers themselves. In practice they are relying on the CLR declarations 

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


More information about the cfe-commits mailing list