summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2017-11-02 19:48:57 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2017-11-02 19:48:57 +0000
commite4d5d10076229e6f6dbfa106f7881b89de8b2048 (patch)
treecbca4fd090a06675b67da68e2d4c2a2651e0fe55
parentb0fab2696a5b13c6b87a69bb1c24bf2490e44ff2 (diff)
downloadbcm5719-llvm-e4d5d10076229e6f6dbfa106f7881b89de8b2048.tar.gz
bcm5719-llvm-e4d5d10076229e6f6dbfa106f7881b89de8b2048.zip
tan: Use unary_decl instead of custom inc file
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-By: Aaron Watry <awatry@gmail.com> llvm-svn: 317258
-rw-r--r--libclc/generic/include/clc/math/tan.h7
-rw-r--r--libclc/generic/include/clc/math/tan.inc1
2 files changed, 6 insertions, 2 deletions
diff --git a/libclc/generic/include/clc/math/tan.h b/libclc/generic/include/clc/math/tan.h
index d2d52a9459d..57f76e884e6 100644
--- a/libclc/generic/include/clc/math/tan.h
+++ b/libclc/generic/include/clc/math/tan.h
@@ -1,2 +1,7 @@
-#define __CLC_BODY <clc/math/tan.inc>
+#define __CLC_BODY <clc/math/unary_decl.inc>
+#define __CLC_FUNCTION tan
+
#include <clc/math/gentype.inc>
+
+#undef __CLC_BODY
+#undef __CLC_FUNCTION
diff --git a/libclc/generic/include/clc/math/tan.inc b/libclc/generic/include/clc/math/tan.inc
deleted file mode 100644
index 50c5b1d160c..00000000000
--- a/libclc/generic/include/clc/math/tan.inc
+++ /dev/null
@@ -1 +0,0 @@
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE tan(__CLC_GENTYPE x);
OpenPOWER on IntegriCloud