[libclc] r317235 - asin: Use unary_decl instead of custom inc file

Jan Vesely via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 2 12:48:15 PDT 2017


Author: jvesely
Date: Thu Nov  2 12:48:15 2017
New Revision: 317235

URL: http://llvm.org/viewvc/llvm-project?rev=317235&view=rev
Log:
asin: Use unary_decl instead of custom inc file

Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
Reviewed-By: Aaron Watry <awatry at gmail.com>

Removed:
    libclc/trunk/generic/include/clc/math/asin.inc
Modified:
    libclc/trunk/generic/include/clc/math/asin.h

Modified: libclc/trunk/generic/include/clc/math/asin.h
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/math/asin.h?rev=317235&r1=317234&r2=317235&view=diff
==============================================================================
--- libclc/trunk/generic/include/clc/math/asin.h (original)
+++ libclc/trunk/generic/include/clc/math/asin.h Thu Nov  2 12:48:15 2017
@@ -1,2 +1,7 @@
-#define __CLC_BODY <clc/math/asin.inc>
+#define __CLC_BODY <clc/math/unary_decl.inc>
+#define __CLC_FUNCTION asin
+
 #include <clc/math/gentype.inc>
+
+#undef __CLC_BODY
+#undef __CLC_FUNCTION

Removed: libclc/trunk/generic/include/clc/math/asin.inc
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/math/asin.inc?rev=317234&view=auto
==============================================================================
--- libclc/trunk/generic/include/clc/math/asin.inc (original)
+++ libclc/trunk/generic/include/clc/math/asin.inc (removed)
@@ -1 +0,0 @@
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE asin(__CLC_GENTYPE x);




More information about the cfe-commits mailing list