summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/math
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2019-03-13 07:06:08 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2019-03-13 07:06:08 +0000
commit1c395b74bf6d7328a34ddf7633d647bc705c9e06 (patch)
tree4ec86257d17aaa5d396bc72cba4f1d1eae606ed3 /libclc/generic/lib/math
parentb3d64e4a83e0de4f2ac1d498637432cf29c1c6a5 (diff)
downloadbcm5719-llvm-1c395b74bf6d7328a34ddf7633d647bc705c9e06.tar.gz
bcm5719-llvm-1c395b74bf6d7328a34ddf7633d647bc705c9e06.zip
round: Remove llvm intrinsic from the header
Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356017
Diffstat (limited to 'libclc/generic/lib/math')
-rw-r--r--libclc/generic/lib/math/round.cl10
1 files changed, 10 insertions, 0 deletions
diff --git a/libclc/generic/lib/math/round.cl b/libclc/generic/lib/math/round.cl
new file mode 100644
index 00000000000..285328aaa5d
--- /dev/null
+++ b/libclc/generic/lib/math/round.cl
@@ -0,0 +1,10 @@
+#include <clc/clc.h>
+
+// Map the llvm intrinsic to an OpenCL function.
+#define __CLC_FUNCTION __clc_round
+#define __CLC_INTRINSIC "llvm.round"
+#include <clc/math/unary_intrin.inc>
+
+#undef __CLC_FUNCTION
+#define __CLC_FUNCTION round
+#include "unary_builtin.inc"
OpenPOWER on IntegriCloud