https://github.com/wenju-he created 
https://github.com/llvm/llvm-project/pull/166330

__clc_cbrt functions are declared in clc_cbrt.inc. Rename to .h for consistency 
with other headers.

>From afa018e40a542d71079870a4201893c56a7e840e Mon Sep 17 00:00:00 2001
From: Wenju He <[email protected]>
Date: Tue, 4 Nov 2025 09:10:38 +0100
Subject: [PATCH] [NFC][libclc] Rename clc_cbrt.inc to clc_cbrt.h

__clc_cbrt functions are declared in clc_cbrt.inc.
Rename to .h for consistency with other headers.
---
 libclc/clc/include/clc/math/{clc_cbrt.inc => clc_cbrt.h} | 0
 libclc/clc/lib/generic/math/clc_cbrt.cl                  | 1 +
 libclc/opencl/lib/generic/math/cbrt.cl                   | 2 +-
 3 files changed, 2 insertions(+), 1 deletion(-)
 rename libclc/clc/include/clc/math/{clc_cbrt.inc => clc_cbrt.h} (100%)

diff --git a/libclc/clc/include/clc/math/clc_cbrt.inc 
b/libclc/clc/include/clc/math/clc_cbrt.h
similarity index 100%
rename from libclc/clc/include/clc/math/clc_cbrt.inc
rename to libclc/clc/include/clc/math/clc_cbrt.h
diff --git a/libclc/clc/lib/generic/math/clc_cbrt.cl 
b/libclc/clc/lib/generic/math/clc_cbrt.cl
index 105f6329d5bad..935b7b7eae78c 100644
--- a/libclc/clc/lib/generic/math/clc_cbrt.cl
+++ b/libclc/clc/lib/generic/math/clc_cbrt.cl
@@ -8,6 +8,7 @@
 
 #include <clc/clc_convert.h>
 #include <clc/internal/clc.h>
+#include <clc/math/clc_cbrt.h>
 #include <clc/math/clc_copysign.h>
 #include <clc/math/clc_fabs.h>
 #include <clc/math/clc_fma.h>
diff --git a/libclc/opencl/lib/generic/math/cbrt.cl 
b/libclc/opencl/lib/generic/math/cbrt.cl
index 0d670150ed4c9..7de61436522b3 100644
--- a/libclc/opencl/lib/generic/math/cbrt.cl
+++ b/libclc/opencl/lib/generic/math/cbrt.cl
@@ -6,7 +6,7 @@
 //
 
//===----------------------------------------------------------------------===//
 
-#include <clc/math/clc_cbrt.inc>
+#include <clc/math/clc_cbrt.h>
 #include <clc/opencl/math/cbrt.h>
 
 #define __CLC_FUNCTION cbrt

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to