[Libclc-dev] [PATCH 11/11] Move unary_instrinsic.inc to private headers.

Jan Vesely via Libclc-dev libclc-dev at lists.llvm.org
Tue Mar 12 00:57:02 PDT 2019


Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
 generic/include/{clc => }/math/unary_intrin.inc | 0
 generic/lib/math/ceil.cl                        | 2 +-
 generic/lib/math/clc_sqrt.cl                    | 2 +-
 generic/lib/math/fabs.cl                        | 2 +-
 generic/lib/math/floor.cl                       | 2 +-
 generic/lib/math/native_unary_intrinsic.inc     | 2 +-
 generic/lib/math/rint.cl                        | 2 +-
 generic/lib/math/round.cl                       | 2 +-
 generic/lib/math/trunc.cl                       | 2 +-
 9 files changed, 8 insertions(+), 8 deletions(-)
 rename generic/include/{clc => }/math/unary_intrin.inc (100%)

diff --git a/generic/include/clc/math/unary_intrin.inc b/generic/include/math/unary_intrin.inc
similarity index 100%
rename from generic/include/clc/math/unary_intrin.inc
rename to generic/include/math/unary_intrin.inc
diff --git a/generic/lib/math/ceil.cl b/generic/lib/math/ceil.cl
index 3402f6f..9f7154c 100644
--- a/generic/lib/math/ceil.cl
+++ b/generic/lib/math/ceil.cl
@@ -4,7 +4,7 @@
 // Map the llvm intrinsic to an OpenCL function.
 #define __CLC_FUNCTION __clc_ceil
 #define __CLC_INTRINSIC "llvm.ceil"
-#include <clc/math/unary_intrin.inc>
+#include "math/unary_intrin.inc"
 
 #undef __CLC_FUNCTION
 #define __CLC_FUNCTION ceil
diff --git a/generic/lib/math/clc_sqrt.cl b/generic/lib/math/clc_sqrt.cl
index 92c7f6e..14a48aa 100644
--- a/generic/lib/math/clc_sqrt.cl
+++ b/generic/lib/math/clc_sqrt.cl
@@ -25,7 +25,7 @@
 // Map the llvm sqrt intrinsic to an OpenCL function.
 #define __CLC_FUNCTION __clc_llvm_intr_sqrt
 #define __CLC_INTRINSIC "llvm.sqrt"
-#include <clc/math/unary_intrin.inc>
+#include <math/unary_intrin.inc>
 #undef __CLC_FUNCTION
 #undef __CLC_INTRINSIC
 
diff --git a/generic/lib/math/fabs.cl b/generic/lib/math/fabs.cl
index 9f740c7..0a70370 100644
--- a/generic/lib/math/fabs.cl
+++ b/generic/lib/math/fabs.cl
@@ -4,7 +4,7 @@
 // Map the llvm intrinsic to an OpenCL function.
 #define __CLC_FUNCTION __clc_fabs
 #define __CLC_INTRINSIC "llvm.fabs"
-#include <clc/math/unary_intrin.inc>
+#include "math/unary_intrin.inc"
 
 #undef __CLC_FUNCTION
 #define __CLC_FUNCTION fabs
diff --git a/generic/lib/math/floor.cl b/generic/lib/math/floor.cl
index 333707c..de215e4 100644
--- a/generic/lib/math/floor.cl
+++ b/generic/lib/math/floor.cl
@@ -4,7 +4,7 @@
 // Map the llvm intrinsic to an OpenCL function.
 #define __CLC_FUNCTION __clc_floor
 #define __CLC_INTRINSIC "llvm.floor"
-#include <clc/math/unary_intrin.inc>
+#include "math/unary_intrin.inc"
 
 #undef __CLC_FUNCTION
 #define __CLC_FUNCTION floor
diff --git a/generic/lib/math/native_unary_intrinsic.inc b/generic/lib/math/native_unary_intrinsic.inc
index dbea288..5640141 100644
--- a/generic/lib/math/native_unary_intrinsic.inc
+++ b/generic/lib/math/native_unary_intrinsic.inc
@@ -27,7 +27,7 @@
 #define __CLC_INTRINSIC "llvm." __CLC_XSTR(__CLC_NATIVE_INTRINSIC)
 
 #undef cl_khr_fp64
-#include <clc/math/unary_intrin.inc>
+#include <math/unary_intrin.inc>
 
 #endif
 
diff --git a/generic/lib/math/rint.cl b/generic/lib/math/rint.cl
index eb0a209..5d9f4b1 100644
--- a/generic/lib/math/rint.cl
+++ b/generic/lib/math/rint.cl
@@ -3,7 +3,7 @@
 // Map the llvm intrinsic to an OpenCL function.
 #define __CLC_FUNCTION __clc_rint
 #define __CLC_INTRINSIC "llvm.rint"
-#include <clc/math/unary_intrin.inc>
+#include "math/unary_intrin.inc"
 
 #undef __CLC_FUNCTION
 #define __CLC_FUNCTION rint
diff --git a/generic/lib/math/round.cl b/generic/lib/math/round.cl
index 285328a..17c72c9 100644
--- a/generic/lib/math/round.cl
+++ b/generic/lib/math/round.cl
@@ -3,7 +3,7 @@
 // Map the llvm intrinsic to an OpenCL function.
 #define __CLC_FUNCTION __clc_round
 #define __CLC_INTRINSIC "llvm.round"
-#include <clc/math/unary_intrin.inc>
+#include "math/unary_intrin.inc"
 
 #undef __CLC_FUNCTION
 #define __CLC_FUNCTION round
diff --git a/generic/lib/math/trunc.cl b/generic/lib/math/trunc.cl
index 930bf78..62c7b18 100644
--- a/generic/lib/math/trunc.cl
+++ b/generic/lib/math/trunc.cl
@@ -3,7 +3,7 @@
 // Map the llvm intrinsic to an OpenCL function.
 #define __CLC_FUNCTION __clc_trunc
 #define __CLC_INTRINSIC "llvm.trunc"
-#include <clc/math/unary_intrin.inc>
+#include "math/unary_intrin.inc"
 
 #undef __CLC_FUNCTION
 #define __CLC_FUNCTION trunc
-- 
2.19.2



More information about the Libclc-dev mailing list