summaryrefslogtreecommitdiffstats
path: root/libclc
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2017-10-08 19:33:58 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2017-10-08 19:33:58 +0000
commit1de1444d6254604b5d410ae81e09e32e56cc7a95 (patch)
tree5512b8e9a9f3f21753525cfd80e2e6460e8a7472 /libclc
parent6a5c8ddb3a35f603253d7c44e45fd2a54aaa944a (diff)
downloadbcm5719-llvm-1de1444d6254604b5d410ae81e09e32e56cc7a95.tar.gz
bcm5719-llvm-1de1444d6254604b5d410ae81e09e32e56cc7a95.zip
Do not include clc_nextafter header globally
Drop unused clc/math/clc_nextafter.h header Reviewer: Jeroen Ketema Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 315190
Diffstat (limited to 'libclc')
-rw-r--r--libclc/amdgpu/lib/math/nextafter.cl1
-rw-r--r--libclc/generic/include/clc/clc.h5
-rw-r--r--libclc/generic/include/clc/math/clc_nextafter.h11
-rw-r--r--libclc/generic/include/clc/math/gentype.inc2
4 files changed, 3 insertions, 16 deletions
diff --git a/libclc/amdgpu/lib/math/nextafter.cl b/libclc/amdgpu/lib/math/nextafter.cl
index 6aee0a0c065..5b4521d21c2 100644
--- a/libclc/amdgpu/lib/math/nextafter.cl
+++ b/libclc/amdgpu/lib/math/nextafter.cl
@@ -1,5 +1,6 @@
#include <clc/clc.h>
#include "../lib/clcmacro.h"
+#include <math/clc_nextafter.h>
_CLC_DEFINE_BINARY_BUILTIN(float, nextafter, __clc_nextafter, float, float)
diff --git a/libclc/generic/include/clc/clc.h b/libclc/generic/include/clc/clc.h
index adaab909f73..3701336ad1a 100644
--- a/libclc/generic/include/clc/clc.h
+++ b/libclc/generic/include/clc/clc.h
@@ -264,9 +264,4 @@
#include <clc/image/image_defines.h>
#include <clc/image/image.h>
-/* libclc internal defintions */
-#ifdef __CLC_INTERNAL
-#include <math/clc_nextafter.h>
-#endif
-
#pragma OPENCL EXTENSION all : disable
diff --git a/libclc/generic/include/clc/math/clc_nextafter.h b/libclc/generic/include/clc/math/clc_nextafter.h
deleted file mode 100644
index 81c8f369c3b..00000000000
--- a/libclc/generic/include/clc/math/clc_nextafter.h
+++ /dev/null
@@ -1,11 +0,0 @@
-#define __CLC_BODY <clc/math/binary_decl.inc>
-
-#define __CLC_FUNCTION nextafter
-#include <clc/math/gentype.inc>
-#undef __CLC_FUNCTION
-
-#define __CLC_FUNCTION __clc_nextafter
-#include <clc/math/gentype.inc>
-#undef __CLC_FUNCTION
-
-#undef __CLC_BODY
diff --git a/libclc/generic/include/clc/math/gentype.inc b/libclc/generic/include/clc/math/gentype.inc
index e6ffad104b5..954cd000502 100644
--- a/libclc/generic/include/clc/math/gentype.inc
+++ b/libclc/generic/include/clc/math/gentype.inc
@@ -54,6 +54,8 @@
#ifndef __FLOAT_ONLY
#ifdef cl_khr_fp64
+#pragma OPENCL EXTENSION cl_khr_fp64 : enable
+
#define __CLC_SCALAR_GENTYPE double
#define __CLC_FPSIZE 64
OpenPOWER on IntegriCloud