aboutsummaryrefslogtreecommitdiff
path: root/libclc
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2019-03-13 07:13:22 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2019-03-13 07:13:22 +0000
commit8985c9c212c7f6e6555d48eeaa4c827e8b354ec9 (patch)
treeeaf8122deab2b31c4a2e6fd7595f1b133f93dc67 /libclc
parent5b136ca1258b2b77768670d661212bb9269cd67e (diff)
downloadllvm-8985c9c212c7f6e6555d48eeaa4c827e8b354ec9.zip
llvm-8985c9c212c7f6e6555d48eeaa4c827e8b354ec9.tar.gz
llvm-8985c9c212c7f6e6555d48eeaa4c827e8b354ec9.tar.bz2
hypot: Use binary_decl_tt.inc instead of custom inc file
Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356022
Diffstat (limited to 'libclc')
-rw-r--r--libclc/generic/include/clc/math/hypot.h7
-rw-r--r--libclc/generic/include/clc/math/hypot.inc1
2 files changed, 6 insertions, 2 deletions
diff --git a/libclc/generic/include/clc/math/hypot.h b/libclc/generic/include/clc/math/hypot.h
index c00eb45..9ec1d21 100644
--- a/libclc/generic/include/clc/math/hypot.h
+++ b/libclc/generic/include/clc/math/hypot.h
@@ -1,2 +1,7 @@
-#define __CLC_BODY <clc/math/hypot.inc>
+#define __CLC_FUNCTION hypot
+#define __CLC_BODY <clc/math/binary_decl_tt.inc>
+
#include <clc/math/gentype.inc>
+
+#undef __CLC_BODY
+#undef __CLC_FUNCTION
diff --git a/libclc/generic/include/clc/math/hypot.inc b/libclc/generic/include/clc/math/hypot.inc
deleted file mode 100644
index 08b4605..0000000
--- a/libclc/generic/include/clc/math/hypot.inc
+++ /dev/null
@@ -1 +0,0 @@
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE hypot(__CLC_GENTYPE x, __CLC_GENTYPE y);