Author: jvesely Date: Wed Mar 13 00:06:08 2019 New Revision: 356017 URL: http://llvm.org/viewvc/llvm-project?rev=356017&view=rev Log: round: Remove llvm intrinsic from the header
Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.ves...@rutgers.edu> Added: libclc/trunk/generic/lib/math/round.cl - copied, changed from r356016, libclc/trunk/generic/include/clc/math/round.h Modified: libclc/trunk/generic/include/clc/math/round.h libclc/trunk/generic/lib/SOURCES Modified: libclc/trunk/generic/include/clc/math/round.h URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/math/round.h?rev=356017&r1=356016&r2=356017&view=diff ============================================================================== --- libclc/trunk/generic/include/clc/math/round.h (original) +++ libclc/trunk/generic/include/clc/math/round.h Wed Mar 13 00:06:08 2019 @@ -1,9 +1,7 @@ -#undef round -#define round __clc_round +#define __CLC_BODY <clc/math/unary_decl.inc> +#define __CLC_FUNCTION round -#define __CLC_FUNCTION __clc_round -#define __CLC_INTRINSIC "llvm.round" -#include <clc/math/unary_intrin.inc> +#include <clc/math/gentype.inc> +#undef __CLC_BODY #undef __CLC_FUNCTION -#undef __CLC_INTRINSIC Modified: libclc/trunk/generic/lib/SOURCES URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/lib/SOURCES?rev=356017&r1=356016&r2=356017&view=diff ============================================================================== --- libclc/trunk/generic/lib/SOURCES (original) +++ libclc/trunk/generic/lib/SOURCES Wed Mar 13 00:06:08 2019 @@ -175,6 +175,7 @@ math/remquo.cl math/rint.cl math/clc_rootn.cl math/rootn.cl +math/round.cl math/sin.cl math/sincos.cl math/sincos_helpers.cl Copied: libclc/trunk/generic/lib/math/round.cl (from r356016, libclc/trunk/generic/include/clc/math/round.h) URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/lib/math/round.cl?p2=libclc/trunk/generic/lib/math/round.cl&p1=libclc/trunk/generic/include/clc/math/round.h&r1=356016&r2=356017&rev=356017&view=diff ============================================================================== --- libclc/trunk/generic/include/clc/math/round.h (original) +++ libclc/trunk/generic/lib/math/round.cl Wed Mar 13 00:06:08 2019 @@ -1,9 +1,10 @@ -#undef round -#define round __clc_round +#include <clc/clc.h> +// Map the llvm intrinsic to an OpenCL function. #define __CLC_FUNCTION __clc_round #define __CLC_INTRINSIC "llvm.round" #include <clc/math/unary_intrin.inc> #undef __CLC_FUNCTION -#undef __CLC_INTRINSIC +#define __CLC_FUNCTION round +#include "unary_builtin.inc" _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits