aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFraser Cormack <fraser@codeplay.com>2025-04-01 17:25:04 +0100
committerFraser Cormack <fraser@codeplay.com>2025-04-01 17:36:01 +0100
commit00e6d4fe064bb48e16c1eda018e6ed5e9f99cba9 (patch)
treebc55531c652f7bd9751a9f10d804c18d990ff41b
parent1f194ff34e4e861a18f7108c7874bccbd6459f30 (diff)
downloadllvm-00e6d4fe064bb48e16c1eda018e6ed5e9f99cba9.zip
llvm-00e6d4fe064bb48e16c1eda018e6ed5e9f99cba9.tar.gz
llvm-00e6d4fe064bb48e16c1eda018e6ed5e9f99cba9.tar.bz2
[libclc][NFC] Delete three unused .inc files
-rw-r--r--libclc/generic/lib/clc_unary.inc11
-rw-r--r--libclc/generic/lib/math/binary_impl.inc29
-rw-r--r--libclc/generic/lib/math/clc_sw_binary.inc34
3 files changed, 0 insertions, 74 deletions
diff --git a/libclc/generic/lib/clc_unary.inc b/libclc/generic/lib/clc_unary.inc
deleted file mode 100644
index 702ddd4..0000000
--- a/libclc/generic/lib/clc_unary.inc
+++ /dev/null
@@ -1,11 +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_DEF __CLC_GENTYPE __CLC_FUNC(__CLC_GENTYPE x) {
- return __CLC_IMPL_FUNC(x);
-}
diff --git a/libclc/generic/lib/math/binary_impl.inc b/libclc/generic/lib/math/binary_impl.inc
deleted file mode 100644
index e7637d9..0000000
--- a/libclc/generic/lib/math/binary_impl.inc
+++ /dev/null
@@ -1,29 +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
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef __CLC_SCALAR
-
-_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x, __CLC_GENTYPE y) {
- return FUNCTION_IMPL(x, y);
-}
-
-#endif
-
-_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x, float y) {
- __CLC_GENTYPE vec_y = (__CLC_GENTYPE) (y);
- return FUNCTION_IMPL(x, vec_y);
-}
-
-#ifdef cl_khr_fp64
-
-_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x, double y) {
- __CLC_GENTYPE vec_y = (__CLC_GENTYPE) (y);
- return FUNCTION_IMPL(x, vec_y);
-}
-
-#endif
diff --git a/libclc/generic/lib/math/clc_sw_binary.inc b/libclc/generic/lib/math/clc_sw_binary.inc
deleted file mode 100644
index fb787c2..0000000
--- a/libclc/generic/lib/math/clc_sw_binary.inc
+++ /dev/null
@@ -1,34 +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
-//
-//===----------------------------------------------------------------------===//
-
-#include <clc/utils.h>
-
-#define __CLC_SW_FUNC(x) __CLC_CONCAT(__clc_, x)
-
-#if __CLC_FPSIZE > 16
-_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __CLC_FUNC(__CLC_GENTYPE x, __CLC_GENTYPE y) {
- return __CLC_SW_FUNC(__CLC_FUNC)(x, y);
-}
-#elif __CLC_FPSIZE == 16
-#ifdef __CLC_SCALAR
-_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __CLC_FUNC(__CLC_GENTYPE x,
- __CLC_GENTYPE y) {
- return convert_half(
- __CLC_SW_FUNC(__CLC_FUNC)(convert_float(x), convert_float(y)));
-}
-#else
-_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __CLC_FUNC(__CLC_GENTYPE x,
- __CLC_GENTYPE y) {
- return __CLC_XCONCAT(convert_half, __CLC_VECSIZE)(__CLC_SW_FUNC(__CLC_FUNC)(
- __CLC_XCONCAT(convert_float, __CLC_VECSIZE)(x),
- __CLC_XCONCAT(convert_float, __CLC_VECSIZE)(y)));
-}
-#endif
-#endif
-
-#undef __CLC_SW_FUNC