summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/clc
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2017-11-02 19:48:53 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2017-11-02 19:48:53 +0000
commite3802356e2933e2c543165890d8420959bc507e4 (patch)
tree228eb0d7d35572e5fdd6e015a4c4921f27d16770 /libclc/generic/include/clc
parent4708b10878f0c0db2d1448bd9227cb996760f497 (diff)
downloadbcm5719-llvm-e3802356e2933e2c543165890d8420959bc507e4.tar.gz
bcm5719-llvm-e3802356e2933e2c543165890d8420959bc507e4.zip
sinpi: 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: 317256
Diffstat (limited to 'libclc/generic/include/clc')
-rw-r--r--libclc/generic/include/clc/math/sinpi.h6
-rw-r--r--libclc/generic/include/clc/math/sinpi.inc1
2 files changed, 5 insertions, 2 deletions
diff --git a/libclc/generic/include/clc/math/sinpi.h b/libclc/generic/include/clc/math/sinpi.h
index 390897673a4..8a355542ebf 100644
--- a/libclc/generic/include/clc/math/sinpi.h
+++ b/libclc/generic/include/clc/math/sinpi.h
@@ -1,3 +1,7 @@
-#define __CLC_BODY <clc/math/sinpi.inc>
+#define __CLC_BODY <clc/math/unary_decl.inc>
+#define __CLC_FUNCTION sinpi
+
#include <clc/math/gentype.inc>
+
#undef __CLC_BODY
+#undef __CLC_FUNCTION
diff --git a/libclc/generic/include/clc/math/sinpi.inc b/libclc/generic/include/clc/math/sinpi.inc
deleted file mode 100644
index f0c872a287d..00000000000
--- a/libclc/generic/include/clc/math/sinpi.inc
+++ /dev/null
@@ -1 +0,0 @@
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE sinpi(__CLC_GENTYPE a);
OpenPOWER on IntegriCloud