[libclc] 80913b4 - [libclc][NFC] Reuse inc file for OpenCL frexp decl
Fraser Cormack via cfe-commits
cfe-commits at lists.llvm.org
Wed May 21 02:22:30 PDT 2025
Author: Fraser Cormack
Date: 2025-05-21T10:19:31+01:00
New Revision: 80913b44a41ae0bbfbfee0c7b15cfa5a20e445d8
URL: https://github.com/llvm/llvm-project/commit/80913b44a41ae0bbfbfee0c7b15cfa5a20e445d8
DIFF: https://github.com/llvm/llvm-project/commit/80913b44a41ae0bbfbfee0c7b15cfa5a20e445d8.diff
LOG: [libclc][NFC] Reuse inc file for OpenCL frexp decl
Added:
Modified:
libclc/opencl/include/clc/opencl/math/frexp.h
Removed:
libclc/opencl/include/clc/opencl/math/frexp.inc
################################################################################
diff --git a/libclc/opencl/include/clc/opencl/math/frexp.h b/libclc/opencl/include/clc/opencl/math/frexp.h
index a03aefbf60899..796acca1cb75a 100644
--- a/libclc/opencl/include/clc/opencl/math/frexp.h
+++ b/libclc/opencl/include/clc/opencl/math/frexp.h
@@ -6,5 +6,8 @@
//
//===----------------------------------------------------------------------===//
-#define __CLC_BODY <clc/opencl/math/frexp.inc>
+#define __CLC_FUNCTION frexp
+#define __CLC_BODY <clc/math/unary_decl_with_int_ptr.inc>
#include <clc/math/gentype.inc>
+
+#undef __CLC_FUNCTION
diff --git a/libclc/opencl/include/clc/opencl/math/frexp.inc b/libclc/opencl/include/clc/opencl/math/frexp.inc
deleted file mode 100644
index 620db60636107..0000000000000
--- a/libclc/opencl/include/clc/opencl/math/frexp.inc
+++ /dev/null
@@ -1,14 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE frexp(__CLC_GENTYPE x,
- global __CLC_INTN *iptr);
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE frexp(__CLC_GENTYPE x,
- local __CLC_INTN *iptr);
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE frexp(__CLC_GENTYPE x,
- private __CLC_INTN *iptr);
More information about the cfe-commits
mailing list