summaryrefslogtreecommitdiffstats
path: root/libclc
Commit message (Collapse)AuthorAgeFilesLines
...
* Protect functions taking double by #ifdef cl_khr_fp64Jeroen Ketema2014-06-231-2/+6
| | | | | | | Also change the order of the functions to be consistent with the order in the header files. llvm-svn: 211496
* Fix breakage after r211259Jeroen Ketema2014-06-211-9/+11
| | | | | | | While we are here introduce the proper headers for the error code. Reviewed-by: Tom Stellard <tom@stellard.net> llvm-svn: 211432
* Add pownJeroen Ketema2014-06-184-0/+35
| | | | | Reviewed-by: Tom Stellard <tom@stellard.net> llvm-svn: 211211
* Add missing undefsJeroen Ketema2014-06-182-3/+7
| | | | | Reviewed-by: Tom Stellard <tom@stellard.net> llvm-svn: 211210
* Fix definition of INFINITY and add NAN/HUGE_VAL[F]Aaron Watry2014-06-162-2/+6
| | | | | | | | | | | | v3: change __builtin_nanf() to __builtin_nanf("") This doesn't work yet, but it was agreed to commit as-is with the logic that "broken" is better than "completely missing" and this should be fixed in clang. v2: use __builtin_inff() and also add nan/huge_val definitions Signed-off-by: Aaron Watry <awatry@gmail.com> llvm-svn: 211065
* Add remaining float constantsJeroen Ketema2014-06-161-0/+8
| | | | | Reviewed-by: Aaron Watry <awatry@gmail.com> llvm-svn: 211062
* Revert "clctypes.h: Don't rely on stddef.h for size_t and ptrdiff_t"Aaron Watry2014-06-161-2/+1
| | | | | | This reverts commit 4cf021ae67b6ea8cfd42aa76ce6f5e1c329e145a. llvm-svn: 211049
* math: Implement mix builtinAaron Watry2014-06-166-0/+26
| | | | | | Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Tom Stellard <tom@stellard.net> llvm-svn: 211047
* relational: Add isequal(floatN) builtinAaron Watry2014-06-164-0/+50
| | | | | | Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Tom Stellard <tom@stellard.net> llvm-svn: 211046
* Add all(igentype) builtinAaron Watry2014-06-164-0/+47
| | | | | | Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Tom Stellard <tom@stellard.net> llvm-svn: 211045
* clctypes.h: Don't rely on stddef.h for size_t and ptrdiff_tAaron Watry2014-06-161-1/+2
| | | | llvm-svn: 211044
* Add intptr typesJan Vesely2014-06-131-0/+12
| | | | | | | | Based on clang's stdint.h Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Tom Stellard <tom@stellard.net> llvm-svn: 210933
* Add files forgotten in the previous commitJeroen Ketema2014-06-132-0/+18
| | | | llvm-svn: 210896
* Implementations for exp(float) and exp(double) v2Jeroen Ketema2014-06-133-2/+12
| | | | | | | | | | | | Use separate implementations instead of a macro to ensure the constant multiplied with is of higher precision. v2: Use the correct formula, spotted by Dan Liew <daniel.liew@imperial.ac.uk> Reviewed-by: Aaron Warty <awatry@gmail.com> Reviewed-by: Tom Stellard <tom@stellard.net> llvm-svn: 210891
* prepare-builtins: Use std:: prefix for error_codeTom Stellard2014-06-131-2/+11
| | | | | | This fixes the build with with newer LLVM. llvm-svn: 210867
* Remove unused include which breaks build after r210803Jeroen Ketema2014-06-121-1/+0
| | | | | | Tested with llvm 3.4 and trunk. llvm-svn: 210825
* Fix build broken by LLVM commit r209103Jeroen Ketema2014-06-031-0/+4
| | | | | Reviewed-by: Aaron Watry <awatry@gmail.com> llvm-svn: 210111
* Add more log related float constantsJeroen Ketema2014-05-291-0/+3
| | | | llvm-svn: 209850
* Fix _F definitionsJeroen Ketema2014-05-291-2/+2
| | | | | | | | | The 'f' was missing and, hence, the values were considered to be doubles instead of floats. Reviewed by: Tom Stellard llvm-svn: 209849
* Add definition for M_PIJeroen Ketema2014-05-291-0/+1
| | | | | | Reviewed by: Tom Stellard llvm-svn: 209848
* Fix build broken by LLVM commit r207593Tom Stellard2014-04-301-0/+1
| | | | llvm-svn: 207685
* Remove clc/gentype.incTom Stellard2014-04-301-51/+0
| | | | | | | | | This file duplicates clc/math/gentype.inc and is not actually being used. Patch by: Jeroen Ketema llvm-svn: 207684
* Introduce M_LOG2E_F and M_LOG2ETom Stellard2014-03-281-1/+4
| | | | | | Patch by: Jeroen Ketema llvm-svn: 205055
* Replace tabs by spacesTom Stellard2014-03-281-19/+19
| | | | | | Patch by: Jeroen Ketema llvm-svn: 205054
* Add definition for M_PI_F v3Tom Stellard2014-03-241-0/+2
| | | | | | | | | | v2: - Use a hexadecimal constant. v3: - Use a hexadecimal constant in floating-point notation. llvm-svn: 204666
* Add sincosTom Stellard2014-03-216-0/+31
| | | | | | | Patch by: Jeroen Ketema Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 204478
* Add cross for double3 and double4Tom Stellard2014-03-212-0/+19
| | | | | | | Patch by: Jeroen Ketema Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 204477
* Fix build since r202052Tom Stellard2014-02-241-1/+3
| | | | | | sys::fs_F_Binary has been replaced with sys::fs_F_Text llvm-svn: 202081
* Add generic nvptx targetsTom Stellard2014-02-141-0/+2
| | | | | | | | These do not import the code specific to nvidiacl Patch by: Jeroen Ketema llvm-svn: 201431
* Revert "Enforce python2 for systems that use python3 as their default."Tom Stellard2014-02-121-1/+1
| | | | | | | | | This reverts commit r200413. This was breaking the build on systems where the python 2.x executable was called python. llvm-svn: 201239
* Updated README.TXT with information about using DESTDIR and building with Ninja.Tom Stellard2014-01-291-3/+18
| | | | | | Patch by: Dan Liew llvm-svn: 200416
* Fixed rules names so they are unique when aliases are present.Tom Stellard2014-01-291-3/+5
| | | | | | | | | This is necessary for building with Ninja because it does not allow duplicate rule names. Patch by: Dan Liew llvm-svn: 200415
* Fixed ninja build issues relating to use of $(DESTDIR)Tom Stellard2014-01-292-7/+15
| | | | | | | | | | We use ${DESTDIR} syntax now instead of $(DESTDIR) because that syntax works both is the shell (at least it does for bash) and for make (at least it does for GNU Make) Patch By: Dan Liew llvm-svn: 200414
* Enforce python2 for systems that use python3 as their default.Tom Stellard2014-01-291-1/+1
| | | | | | Patch by: Dan Liew llvm-svn: 200413
* Fix build broken by LLVM commit r199279Tom Stellard2014-01-201-1/+10
| | | | | | | | | Patch by: Udo van den Heuvel Tom Stellard: - Added ifdef and error handling llvm-svn: 199687
* Update the copyright credits -- Happy new year 2014!NAKAMURA Takumi2014-01-011-2/+2
| | | | | FIXME: Dragonegg may be updated at non-trivial changes. llvm-svn: 198274
* Pass -fno-builtin flag to clang to silence warningsAaron Watry2013-12-291-0/+1
| | | | | Reviewed-by: Aaron Watry <awatry@gmail.com> llvm-svn: 198168
* Fix build with LLVM 3.5Aaron Watry2013-12-291-0/+6
| | | | | Reviewed-by: Aaron Watry <awatry@gmail.com> llvm-svn: 198167
* Add floating-point macro definitions v2Tom Stellard2013-12-202-0/+27
| | | | | | | | v2: - Fix typo. Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 197784
* Implement trunc builtin.Tom Stellard2013-12-202-0/+10
| | | | | | | | | | | | OpenCL C lang says that trunc rounds towards zero. llvm.trunc.* intrinsic rounds to integer not larger in magnitude. These definitions are equivalent. Patch by: Jan Vesely Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 197769
* Fix a C&P error in r195021 (65a950abab3cb8435ccb2646ac4773986c995c81)Tom Stellard2013-11-281-2/+2
| | | | | | | Patch by: Kai Wasserbäch Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> llvm-svn: 195898
* R600: Add aliases for Sea Islands GPUsTom Stellard2013-11-181-1/+1
| | | | llvm-svn: 195023
* Implement round builtinTom Stellard2013-11-182-0/+10
| | | | llvm-svn: 195022
* Implement builtins for cl_khr_global_int32_base_atomics extensionTom Stellard2013-11-1810-1/+55
| | | | llvm-svn: 195021
* s/_CLC_DECL/_CLC_DEF/Tom Stellard2013-10-312-14/+14
| | | | | | | | | Some function definitions were using _CLC_DECL, which meant that they weren't being marked as always_inline. Reviewed-by and Tested-by: Aaron Watry <awatry@gmail.com> llvm-svn: 193754
* R600: Set the noduplicate attribute on barrier() intrinsicsTom Stellard2013-10-313-19/+30
| | | | | | | | This will prevent LLVM optimization passes from creating illegal uses of the barrier() intrinsic (e.g. calling barrier() from a conditional that is not executed by all threads). llvm-svn: 193753
* Clean-up dependency filesTom Stellard2013-10-231-0/+5
| | | | | | Patch by: Jeroen Ketema llvm-svn: 193221
* Make C++ compiler configurableTom Stellard2013-10-231-3/+8
| | | | | | | | | | | | The C++ compiler used to build prepare-builtins may differ from the llvm/clang for which we are building libclc. Use 'clang++' as the default compiler. Patch by: Jeroen Ketema llvm-svn: 193220
* Port pocl's gen_convert.py script to libclcTom Stellard2013-10-104-151/+402
| | | | | | | This script generates implementations for the entire set of convert_* functions, llvm-svn: 192385
* Implement sign() builtinTom Stellard2013-10-104-0/+36
| | | | llvm-svn: 192384
OpenPOWER on IntegriCloud