summaryrefslogtreecommitdiffstats
path: root/libclc/generic
Commit message (Collapse)AuthorAgeFilesLines
* sincos: Simplify declaration headers.Jan Vesely2019-03-131-8/+3
| | | | | | | | This follows the same pattern as modf and fract. Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356028
* fdim: Use binary_decl_tt.inc instead of custom inc file.Jan Vesely2019-03-132-2/+6
| | | | | | Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356027
* nextafter: Use binary_decl_tt.inc instead of custom inc file.Jan Vesely2019-03-132-2/+6
| | | | | | Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356026
* copysign: Use binary_decl_tt.inc instead of custom inc file.Jan Vesely2019-03-132-2/+6
| | | | | | Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356025
* atan2pi: Use binary_decl_tt.inc instead of custom inc file.Jan Vesely2019-03-132-24/+6
| | | | | | Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356024
* atan2: Use binary_decl_tt.inc instead of custom inc file.Jan Vesely2019-03-132-24/+6
| | | | | | Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356023
* hypot: Use binary_decl_tt.inc instead of custom inc fileJan Vesely2019-03-132-2/+6
| | | | | | Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356022
* Move unary_instrinsic.inc to private headers.Jan Vesely2019-03-139-8/+8
| | | | | | Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356021
* Move binary_intrinsic.h to private headers.Jan Vesely2019-03-131-0/+0
| | | | | | Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356020
* Move ternary_intrinsic.h to private headers.Jan Vesely2019-03-132-1/+1
| | | | | | Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356019
* trunc: Remove llvm intrinsic from the header.Jan Vesely2019-03-133-6/+15
| | | | | | Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356018
* round: Remove llvm intrinsic from the headerJan Vesely2019-03-133-6/+15
| | | | | | Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356017
* rint: Remove llvm intrinsic from the header.Jan Vesely2019-03-133-5/+17
| | | | | | Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356016
* floor: Remove llvm isntrinsic from the header.Jan Vesely2019-03-133-5/+18
| | | | | | Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356015
* fabs: Remove llvm intrinsic from the header.Jan Vesely2019-03-133-5/+18
| | | | | | Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356014
* ceil: Remove llvm intrinsic from the header.Jan Vesely2019-03-133-5/+18
| | | | | | Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356013
* sqrt: Split function generation to a shared inc file.Jan Vesely2019-03-132-18/+26
| | | | | | | | This will be reused by other unary functions. Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356012
* mad: Convert to standard ternary headerJan Vesely2019-03-132-2/+6
| | | | | | Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356011
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-194-16/+12
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* atom: Use volatile pointers for ↵Jan Vesely2018-06-2114-20/+20
| | | | | | | | | | | | | | | | cl_khr_{global,local}_int32_{base,extended}_atomics int64 versions were switched to volatile pointers in cl1.1 cl1.1 also renamed atom_ functions to atomic_ that use volatile pointers. CTS and applications use volatile pointers. Passes CTS on carrizo no return piglit tests still pass on turks. Reviewed-By: Aaron Watry <awatry@gmail.com> Tested-By: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 335280
* atom: Consolidate cl_khr_{local,global}_int32_{base,extended}_atomics ↵Jan Vesely2018-06-2121-148/+66
| | | | | | | | | | | | implementation These are just atomic_* wrappers. Switch inc, dec to use atomic_* wrappers as well. Reviewed-By: Aaron Watry <awatry@gmail.com> Tested-By: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 335279
* atomic: Provide function implementation of atomic_{dec,inc}Jan Vesely2018-06-215-2/+34
| | | | | | | Reviewed-By: Aaron Watry <awatry@gmail.com> Tested-By: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 335278
* atom: Consolidate cl_khr_int64_{base,extended}_atomics declarationsJan Vesely2018-06-219-32/+27
| | | | | | | Reviewed-By: Aaron Watry <awatry@gmail.com> Tested-By: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 335277
* atom: Consolidate cl_khr_{local,global}_int32_{base,extended}_atomics ↵Jan Vesely2018-06-2117-32/+58
| | | | | | | | | declarations Reviewed-By: Aaron Watry <awatry@gmail.com> Tested-By: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 335276
* atomic: Cleanup atomic_cmpxchg headerJan Vesely2018-06-211-15/+4
| | | | | | | | | It's easier to just list the four function declarations Reviewed-By: Aaron Watry <awatry@gmail.com> Tested-By: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 335275
* atomic: Move define cleanup to shared includeJan Vesely2018-06-219-26/+8
| | | | | | | Reviewed-By: Aaron Watry <awatry@gmail.com> Tested-By: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 335274
* math/fma: Add fp32 software implementationJan Vesely2018-06-077-5/+192
| | | | | | | | Passes CTS on carrizo (when forced to use sw fma) and turks. Reviewer: Tom Stellard <tstellar@redhat.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 334226
* Add initial support for half precision builtinsJan Vesely2018-05-1753-29/+648
| | | | | | | | | | | | | | v2: fix fmax implementation use consistent checks for __CLC_FP_SIZE add missing TODOs fix whitespace in definitions.h v3: undef ZERO in modf.inc Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> reviewer: Jeroen Ketema <j.ketema@xs4all.nl> Reviewed-by: Aaron Watry <awatry@gmail.com> Tested-by: Aaron Watry <awatry@gmail.com> llvm-svn: 332677
* rootn: Use denormal path onlyJan Vesely2018-05-151-10/+1
| | | | | | | | | | | | It's OK to either flush to 0 or return denormal result if the device does not support denormals. See sec 7.2 and 7.5.3 of OCL specs Use 0.0f explicitly intead of relying on GPU to flush it. Fixes CTS on carrizo and turks Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Acked-by: Aaron Watry <awatry@gmail.com> Tested-by: Aaron Watry <awatry@gmail.com> llvm-svn: 332324
* remquo: Flush denormals if not supportedJan Vesely2018-05-031-0/+2
| | | | | | | | | | It's OK to either flush to 0 or return denormal result if the device does not support denormals. See sec 7.2 and 7.5.3 of OCL specs. Fixes CTS on carrizo and turks. Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewer: Aaron Watry <awatry@gmail.com> llvm-svn: 331435
* remquo: Port from amd builtinsJan Vesely2018-05-038-0/+307
| | | | | | | | double version passes on carrizo. float version fails on denormals. Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewer: Aaron Watry <awatry@gmail.com> llvm-svn: 331434
* math: Add helper function to flush denormals if not supported.Jan Vesely2018-05-031-0/+19
| | | | | | Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewer: Aaron Watry <awatry@gmail.com> llvm-svn: 331433
* clc_sqrt: Reuse unary_decl.incJan Vesely2018-05-022-50/+3
| | | | | | | Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Aaron Watry <awatry@gmail.com> Tested-by: Aaron Watry <awatry@gmail.com> llvm-svn: 331366
* relational/select: Condition types for half are short/ushort, not char/ucharJan Vesely2018-04-251-2/+2
| | | | | | Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Aaron Watry <awatry@gmail.com> llvm-svn: 330851
* log10: Use sw implementation from amd builtinsJan Vesely2018-04-235-19/+173
| | | | | | | | | | Add missing table. Fixes log10d CTS on carrizo. Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Acked-by: Aaron Watry <awatry@gmail.com> Tested-by: Aaron Watry <awatry@gmail.com> llvm-svn: 330649
* powr: Use denormal path onlyJan Vesely2018-04-171-11/+1
| | | | | | | | | | It's OK to either flush to 0 or return denormal result if the device does not support denormals. See sec 7.2 and 7.5.3 of OCL specs Fixes CTS on carrizo and turks. Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewer: Aaron Watry <awatry@gmail.com> llvm-svn: 330207
* pown: Use denormal path onlyJan Vesely2018-04-171-11/+1
| | | | | | | | | | It's OK to either flush to 0 or return denormal result if the device does not support denormals. See sec 7.2 and 7.5.3 of OCL specs Fixes CTS on carrizo and turks. Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewer: Aaron Watry <awatry@gmail.com> llvm-svn: 330206
* pow: Use denormal path onlyJan Vesely2018-04-171-11/+1
| | | | | | | | | | It's OK to either flush to 0 or return denormal result if the device does not support denormals. See sec 7.2 and 7.5.3 of OCL specs Fixes CTS on carrizo and turks. Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewer: Aaron Watry <awatry@gmail.com> llvm-svn: 330205
* exp10: Port from amd builtinsJan Vesely2018-04-175-11/+157
| | | | | | | | Passes CTS on carrizo and turks. Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed and Tested (on RX 580) by: Aaron Watry <awatry@gmail.com> llvm-svn: 330197
* hypot: Port from amd builtinsJan Vesely2018-04-105-4/+108
| | | | | | | | | | | v2: Fix whitespace errors Use only subnormal path. Passes CTS on carrizo and turks. Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewer: Aaron Watry <awatry@gmail.com> llvm-svn: 329647
* select: simplify implementation and fix fp16Jan Vesely2018-04-061-18/+4
| | | | | | | | | | Fix half precision implementation Vector ?: operator should behave exactly as select Passes CTS on carrizo Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewer: Jeroen Ketema <j.ketema@xs4all.nl> llvm-svn: 329462
* fmod: Port from amd_builtinsJan Vesely2018-04-066-12/+196
| | | | | | | | | | | Uses only denormal path for fp32. Passes CTS on carrizo and turks. v2: whitespace fix Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewer: Aaron Watry <awatry@gmail.com> llvm-svn: 329433
* remainder: Port from amd builtinsJan Vesely2018-03-196-0/+235
| | | | | | | | | Mostly ported from amd_builtins, uses only denormal path for fp32. Passes CTS on carrizo and turks Reviewer: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 327818
* nan: ImplementJan Vesely2018-03-126-0/+52
| | | | | | | | Passes CTS on carrizo and turks Reviewer: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 327324
* integer/gentype: Add __CLC_VECSIZE macroJan Vesely2018-03-081-0/+96
| | | | | | Reviewer: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 327043
* popcount: Provide function implementation rather than intrinsic redirectJan Vesely2018-03-087-6/+21
| | | | | | | | amdgcn will need to override this Reviewer: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 327042
* lgamma_r: Move code from .inc to .cl fileJan Vesely2018-03-062-475/+496
| | | | | | Reviewed-by: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 326821
* frexp: Reuse types provided by gentype.incJan Vesely2018-03-062-78/+53
| | | | | | | | | | | v2: Use select instead of bitselect to consolidate scalar and vector versions Passes CTS on Carrizo Reviewed-by: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 326820
* select: Add vector implementationJan Vesely2018-03-065-1/+91
| | | | | | | | Passes CTS on Carrizo Reviewed-by: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 326819
* minmag: Condition variable needs to be the same bitwidth as operandsJan Vesely2018-03-062-2/+21
| | | | | | | | No changes wrt CTS Reviewed-by: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 326818
OpenPOWER on IntegriCloud