[libclc] r315190 - Do not include clc_nextafter header globally

Jan Vesely via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 8 12:33:58 PDT 2017


Author: jvesely
Date: Sun Oct  8 12:33:58 2017
New Revision: 315190

URL: http://llvm.org/viewvc/llvm-project?rev=315190&view=rev
Log:
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 at rutgers.edu>

Removed:
    libclc/trunk/generic/include/clc/math/clc_nextafter.h
Modified:
    libclc/trunk/amdgpu/lib/math/nextafter.cl
    libclc/trunk/generic/include/clc/clc.h
    libclc/trunk/generic/include/clc/math/gentype.inc

Modified: libclc/trunk/amdgpu/lib/math/nextafter.cl
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/amdgpu/lib/math/nextafter.cl?rev=315190&r1=315189&r2=315190&view=diff
==============================================================================
--- libclc/trunk/amdgpu/lib/math/nextafter.cl (original)
+++ libclc/trunk/amdgpu/lib/math/nextafter.cl Sun Oct  8 12:33:58 2017
@@ -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)
 

Modified: libclc/trunk/generic/include/clc/clc.h
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/clc.h?rev=315190&r1=315189&r2=315190&view=diff
==============================================================================
--- libclc/trunk/generic/include/clc/clc.h (original)
+++ libclc/trunk/generic/include/clc/clc.h Sun Oct  8 12:33:58 2017
@@ -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

Removed: libclc/trunk/generic/include/clc/math/clc_nextafter.h
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/math/clc_nextafter.h?rev=315189&view=auto
==============================================================================
--- libclc/trunk/generic/include/clc/math/clc_nextafter.h (original)
+++ libclc/trunk/generic/include/clc/math/clc_nextafter.h (removed)
@@ -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

Modified: libclc/trunk/generic/include/clc/math/gentype.inc
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/math/gentype.inc?rev=315190&r1=315189&r2=315190&view=diff
==============================================================================
--- libclc/trunk/generic/include/clc/math/gentype.inc (original)
+++ libclc/trunk/generic/include/clc/math/gentype.inc Sun Oct  8 12:33:58 2017
@@ -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
 




More information about the cfe-commits mailing list