Author: jvesely Date: Fri Nov 10 14:16:28 2017 New Revision: 317936 URL: http://llvm.org/viewvc/llvm-project?rev=317936&view=rev Log: native_exp: Switch implementation to llvm intrinsic
Reviewer: Jeroen Ketema Signed-off-by: Jan Vesely <jan.ves...@rutgers.edu> Added: libclc/trunk/generic/lib/math/native_exp.cl Modified: libclc/trunk/generic/include/clc/math/native_exp.h libclc/trunk/generic/lib/SOURCES Modified: libclc/trunk/generic/include/clc/math/native_exp.h URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/math/native_exp.h?rev=317936&r1=317935&r2=317936&view=diff ============================================================================== --- libclc/trunk/generic/include/clc/math/native_exp.h (original) +++ libclc/trunk/generic/include/clc/math/native_exp.h Fri Nov 10 14:16:28 2017 @@ -1 +1,9 @@ -#define native_exp exp +#define __CLC_BODY <clc/math/unary_decl.inc> +#define __CLC_FUNCTION native_exp +#define __FLOAT_ONLY + +#include <clc/math/gentype.inc> + +#undef __FLOAT_ONLY +#undef __CLC_BODY +#undef __CLC_FUNCTION Modified: libclc/trunk/generic/lib/SOURCES URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/lib/SOURCES?rev=317936&r1=317935&r2=317936&view=diff ============================================================================== --- libclc/trunk/generic/lib/SOURCES (original) +++ libclc/trunk/generic/lib/SOURCES Fri Nov 10 14:16:28 2017 @@ -119,6 +119,7 @@ math/log2.cl math/logb.cl math/mad.cl math/modf.cl +math/native_exp.cl math/native_log.cl math/native_log10.cl math/native_log2.cl Added: libclc/trunk/generic/lib/math/native_exp.cl URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/lib/math/native_exp.cl?rev=317936&view=auto ============================================================================== --- libclc/trunk/generic/lib/math/native_exp.cl (added) +++ libclc/trunk/generic/lib/math/native_exp.cl Fri Nov 10 14:16:28 2017 @@ -0,0 +1,7 @@ +#include <clc/clc.h> + +#define __CLC_NATIVE_INTRINSIC exp + +#define __CLC_BODY <native_unary_intrinsic.inc> +#define __FLOAT_ONLY +#include <clc/math/gentype.inc> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits