[libclc] r313107 - Add native_recip(x) as ((1)/(x))

2017-09-12 Thread Aaron Watry via cfe-commits
Author: awatry Date: Tue Sep 12 18:40:25 2017 New Revision: 313107 URL: http://llvm.org/viewvc/llvm-project?rev=313107=rev Log: Add native_recip(x) as ((1)/(x)) Signed-off-by: Aaron Watry Acked-by: Jan Vesely Added:

[libclc] r312854 - integer: Add popcount implementation using ctpop intrinsic

2017-09-08 Thread Aaron Watry via cfe-commits
Author: awatry Date: Fri Sep 8 19:23:54 2017 New Revision: 312854 URL: http://llvm.org/viewvc/llvm-project?rev=312854=rev Log: integer: Add popcount implementation using ctpop intrinsic Also copy/modify the unary_intrin.inc from math/ to make the intrinsic declaration somewhat reusable. Passes

[libclc] r312404 - relational: Implement shuffle2 builtin

2017-09-01 Thread Aaron Watry via cfe-commits
Author: awatry Date: Fri Sep 1 19:23:28 2017 New Revision: 312404 URL: http://llvm.org/viewvc/llvm-project?rev=312404=rev Log: relational: Implement shuffle2 builtin This was added in CL 1.1 Tested with a Radeon HD 7850 (Pitcairn) using the CL CTS via:

[libclc] r312403 - relational: Implement shuffle builtin

2017-09-01 Thread Aaron Watry via cfe-commits
Author: awatry Date: Fri Sep 1 19:23:26 2017 New Revision: 312403 URL: http://llvm.org/viewvc/llvm-project?rev=312403=rev Log: relational: Implement shuffle builtin This was added in CL 1.1 Tested with a Radeon HD 7850 (Pitcairn) using the CL CTS via:

[libclc] r312402 - Add halfN types and enable fp16 when generating builtin declarations

2017-09-01 Thread Aaron Watry via cfe-commits
Author: awatry Date: Fri Sep 1 19:23:16 2017 New Revision: 312402 URL: http://llvm.org/viewvc/llvm-project?rev=312402=rev Log: Add halfN types and enable fp16 when generating builtin declarations Uses the same mechanism to enable fp16 as we use for fp64 when processing clc.h Signed-off-by:

[libclc] r295920 - math: Add native_tan as wrapper to tan

2017-02-22 Thread Aaron Watry via cfe-commits
Author: awatry Date: Wed Feb 22 19:46:57 2017 New Revision: 295920 URL: http://llvm.org/viewvc/llvm-project?rev=295920=rev Log: math: Add native_tan as wrapper to tan Trivially define native_tan as a redirect to tan. If there are any targets with a native implementation, we can deal with it

[libclc] r292335 - math: Add logb builtin

2017-01-17 Thread Aaron Watry via cfe-commits
Author: awatry Date: Tue Jan 17 21:14:10 2017 New Revision: 292335 URL: http://llvm.org/viewvc/llvm-project?rev=292335=rev Log: math: Add logb builtin Ported from the amd-builtins branch. Signed-off-by: Aaron Watry Reviewed-by: Matt Arsenault CC:

[libclc] r292334 - math: Add expm1 builtin function

2017-01-17 Thread Aaron Watry via cfe-commits
Author: awatry Date: Tue Jan 17 21:13:37 2017 New Revision: 292334 URL: http://llvm.org/viewvc/llvm-project?rev=292334=rev Log: math: Add expm1 builtin function Ported from the amd-builtins branch. Signed-off-by: Aaron Watry Reviewed-by: Matt Arsenault

[libclc] r281566 - math: Implement tgamma

2016-09-14 Thread Aaron Watry via cfe-commits
Author: awatry Date: Wed Sep 14 19:17:34 2016 New Revision: 281566 URL: http://llvm.org/viewvc/llvm-project?rev=281566=rev Log: math: Implement tgamma Signed-off-by: Aaron Watry Reviewed-by: Tom Stellard Added:

[libclc] r281563 - Add ADDR_SPACE parameter to _CLC_V_V_VP_VECTORIZE

2016-09-14 Thread Aaron Watry via cfe-commits
Author: awatry Date: Wed Sep 14 19:17:22 2016 New Revision: 281563 URL: http://llvm.org/viewvc/llvm-project?rev=281563=rev Log: Add ADDR_SPACE parameter to _CLC_V_V_VP_VECTORIZE This macro is currently unused, but I plan to use it shortly. The previous form did casts of pointers without an

[libclc] r281564 - math: Implement lgamma_r

2016-09-14 Thread Aaron Watry via cfe-commits
Author: awatry Date: Wed Sep 14 19:17:28 2016 New Revision: 281564 URL: http://llvm.org/viewvc/llvm-project?rev=281564=rev Log: math: Implement lgamma_r Ported from the amd-builtins branch, which is itself based on the Sun Microsystems implementation. Signed-off-by: Aaron Watry

[libclc] r268708 - math: Add fdim implementation

2016-05-05 Thread Aaron Watry via cfe-commits
Author: awatry Date: Thu May 5 22:34:45 2016 New Revision: 268708 URL: http://llvm.org/viewvc/llvm-project?rev=268708=rev Log: math: Add fdim implementation Based on the amd-builtin, but explicitly vectorized for all sizes (not just float4), and includes a vectorized double implementation.

[libclc] r261714 - math: Fix ilogb(double) return type

2016-02-23 Thread Aaron Watry via cfe-commits
Author: awatry Date: Tue Feb 23 18:52:15 2016 New Revision: 261714 URL: http://llvm.org/viewvc/llvm-project?rev=261714=rev Log: math: Fix ilogb(double) return type Signed-off-by: Aaron Watry Reviewed-by: Jan Vesely Modified:

[libclc] r261639 - math: Add ilogb ported from amd-builtins

2016-02-23 Thread Aaron Watry via cfe-commits
Author: awatry Date: Tue Feb 23 08:43:09 2016 New Revision: 261639 URL: http://llvm.org/viewvc/llvm-project?rev=261639=rev Log: math: Add ilogb ported from amd-builtins The scalar float/double function bodies are a direct copy/paste with usage of the CLC wrappers to vectorize them. This commit

[libclc] r260114 - math: Add frexp ported from amd-builtins

2016-02-08 Thread Aaron Watry via cfe-commits
Author: awatry Date: Mon Feb 8 11:07:21 2016 New Revision: 260114 URL: http://llvm.org/viewvc/llvm-project?rev=260114=rev Log: math: Add frexp ported from amd-builtins The float implementation is almost a direct port from the amd-builtins, but instead of just having a scalar and float4

[libclc] r249445 - integer: remove explicit casts from _MIN definitions

2015-10-06 Thread Aaron Watry via cfe-commits
Author: awatry Date: Tue Oct 6 14:12:12 2015 New Revision: 249445 URL: http://llvm.org/viewvc/llvm-project?rev=249445=rev Log: integer: remove explicit casts from _MIN definitions The spec says (section 6.12.3, CL version 1.2): The macro names given in the following list must use the values