de2d8694e25a814696358e95141f4b1aa4d8847e |
|
20-Sep-2016 |
Pirama Arumuga Nainar <pirama@google.com> |
Update aosp/master LLVM for rebase to r275480 Bug: http://b/31320715 This merges commit 7dcf7f03e005379ef2f06db96aa93f06186b66d5 from aosp/dev. Test: Build AOSP and run RenderScript tests (host tests for slang and libbcc, RsTest, CTS) Change-Id: Iaf3738f74312d875e69f61d604ac058f381a2a1a
/external/llvm/include/llvm/ADT/APFloat.h
|
f3ef5332fa3f4d5ec72c178a2b19dac363a19383 |
|
04-Mar-2016 |
Pirama Arumuga Nainar <pirama@google.com> |
Update aosp/master LLVM for rebase to r256229 http://b/26987366 Change-Id: I1f29c4676a8abe633ab5707dded58d846c973d50
/external/llvm/include/llvm/ADT/APFloat.h
|
6948897e478cbd66626159776a8017b3c18579b9 |
|
01-Jul-2015 |
Pirama Arumuga Nainar <pirama@google.com> |
Update aosp/master LLVM for rebase to r239765 Bug: 20140355: This rebase pulls the upstream fix for the spurious warnings mentioned in the bug. Change-Id: I7fd24253c50f4d48d900875dcf43ce3f1721a3da
/external/llvm/include/llvm/ADT/APFloat.h
|
4c5e43da7792f75567b693105cc53e3f1992ad98 |
|
08-Apr-2015 |
Pirama Arumuga Nainar <pirama@google.com> |
Update aosp/master llvm for rebase to r233350 Change-Id: I07d935f8793ee8ec6b7da003f6483046594bca49
/external/llvm/include/llvm/ADT/APFloat.h
|
ebe69fe11e48d322045d5949c83283927a0d790b |
|
23-Mar-2015 |
Stephen Hines <srhines@google.com> |
Update aosp/master LLVM for rebase to r230699. Change-Id: I2b5be30509658cb8266be782de0ab24f9099f9b9
/external/llvm/include/llvm/ADT/APFloat.h
|
37ed9c199ca639565f6ce88105f9e39e898d82d0 |
|
01-Dec-2014 |
Stephen Hines <srhines@google.com> |
Update aosp/master LLVM for rebase to r222494. Change-Id: Ic787f5e0124df789bd26f3f24680f45e678eef2d
/external/llvm/include/llvm/ADT/APFloat.h
|
dce4a407a24b04eebc6a376f8e62b41aaa7b071f |
|
29-May-2014 |
Stephen Hines <srhines@google.com> |
Update LLVM for 3.5 rebase (r209712). Change-Id: I149556c940fb7dc92d075273c87ff584f400941f
/external/llvm/include/llvm/ADT/APFloat.h
|
36b56886974eae4f9c5ebc96befd3e7bfe5de338 |
|
24-Apr-2014 |
Stephen Hines <srhines@google.com> |
Update to LLVM 3.5a. Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
/external/llvm/include/llvm/ADT/APFloat.h
|
7ffc854002282b0a6fd018d967a6def971dc341e |
|
27-Jul-2013 |
Michael Gottesman <mgottesman@apple.com> |
[APFloat] Removed nextafter from missing operations since it is implemented in APFloat::next. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187312 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
4dfc257a1ad58be07753bfb96377869cb5dcf8e7 |
|
27-Jun-2013 |
Michael Gottesman <mgottesman@apple.com> |
Revert "Revert "[APFloat] Removed APFloat constructor which initialized to either zero/NaN but allowed you to arbitrarily set the category of the float."" This reverts commit r185099. Looks like both the ppc-64 and mips bots are still failing after I reverted this change. Since: 1. The mips bot always performs a clean build, 2. The ppc64-bot failed again after a clean build (I asked the ppc-64 maintainers to clean the bot which they did... Thanks Will!), I think it is safe to assume that this change was not the cause of the failures that said builders were seeing. Thus I am recomitting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185111 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
d6bd98d01c3db23f9a66b1f1b2d3e65eef65382e |
|
27-Jun-2013 |
Michael Gottesman <mgottesman@apple.com> |
Revert "[APFloat] Removed APFloat constructor which initialized to either zero/NaN but allowed you to arbitrarily set the category of the float." This reverts commit r185095. This is causing a FileCheck failure on the 3dnow intrinsics on at least the mips/ppc bots but not on the x86 bots. Reverting while I figure out what is going on. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185099 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
4da2ebeefb10390ad16238ae7a1038a987466225 |
|
27-Jun-2013 |
Michael Gottesman <mgottesman@apple.com> |
[APFloat] Removed APFloat constructor which initialized to either zero/NaN but allowed you to arbitrarily set the category of the float. The category which an APFloat belongs to should be dependent on the actual value that the APFloat has, not be arbitrarily passed in by the user. This will prevent inconsistency bugs where the category and the actual value in APFloat differ. I also fixed up all of the references to this constructor (which were only in LLVM). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185095 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
575694b6a7d49004acc93294bc88d0bc337e4d27 |
|
24-Jun-2013 |
Michael Gottesman <mgottesman@apple.com> |
[APFloat] Added support for parsing float strings which contain {inf,-inf,NaN,-NaN}. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184713 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
fdec0c7a7302702d08f1221609221018af8085ec |
|
24-Jun-2013 |
Michael Gottesman <mgottesman@apple.com> |
[APFloat] Added make{Zero,Inf} methods and implemented get{Zero,Inf} on top of them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184712 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
daee0b0def120605f6c702fc47ab3450037ae184 |
|
24-Jun-2013 |
Michael Gottesman <mgottesman@apple.com> |
[APFloat] Removed out of date comment from isNormal(). I already finished the isIEEENormal => isNormal transition. So isNormal is now IEEE-754R compliant. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184687 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
db045ab1532469551a56e5811e684920a6f7a10c |
|
24-Jun-2013 |
Michael Gottesman <mgottesman@apple.com> |
[APFloat] Rename llvm::exponent_t => llvm::APFloat::ExponentType. exponent_t is only used internally in APFloat and no exponent_t values are exposed via the APFloat API. In light of such conditions it does not make any sense to gum up the llvm namespace with said type. Plus it makes it clearer that exponent_t is associated with APFloat. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184686 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
d3d03fe758d4ee93ea225c6740742eb56b6dca3b |
|
21-Jun-2013 |
Michael Gottesman <mgottesman@apple.com> |
[APFloat] Added missing doxygen module closing statement. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184526 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
a1694e578492c90c246e59ec861c1a34f8ad7b4d |
|
20-Jun-2013 |
Michael Gottesman <mgottesman@apple.com> |
[APFloat] Rename isIEEENormal => isNormal and remove old isNormal method. The old isNormal is already functionally replaced by the method isFiniteNonZero in r184350 and all references to said method were replaced in LLVM/clang in r184356/134366. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184449 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
07969dc8aed62fcd5c5760b2ec331275479f4a80 |
|
19-Jun-2013 |
Michael Gottesman <mgottesman@apple.com> |
[APFloat] Converted all references to APFloat::isNormal => APFloat::isFiniteNonZero. Turns out all the references were in llvm and not in clang. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184356 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
7032c883cdf8da579fbf9bf499d36a711eef676f |
|
19-Jun-2013 |
Michael Gottesman <mgottesman@apple.com> |
[APFloat] Added isFiniteNonZero predicate. This is the first patch in a series of patches to rename isNormal => isFiniteNonZero and isIEEENormal => isNormal. In order to prevent careless errors on my part the overall plan is: 1. Add the isFiniteNonZero predicate with tests. I can do this in a method independent of isNormal. (This step is this patch). 2. Convert all references to isNormal with isFiniteNonZero. My plan is to comment out isNormal locally and continually convert isNormal references => isFiniteNonZero until llvm/clang compiles. 3. Remove old isNormal and rename isIEEENormal to isNormal. 4. Look through all of said references from patch 2 and see if we can simplify them by using the new isNormal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184350 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
c896020dd8d6c2f25f5bf7eb9191fd4e72407015 |
|
19-Jun-2013 |
Michael Gottesman <mgottesman@apple.com> |
[APFloat] Expose isSmallest/isLargest as public methods. I have had several requests to expose these two methods as public for various potential optimizations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184345 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
b30718af1ada4b68c7c44e3dcbf4891efd5e3ba1 |
|
04-Jun-2013 |
Michael Gottesman <mgottesman@apple.com> |
IEEE-754R 5.7.2 General Operations is* operations (except for isCanonical). Specifically the following work was done: 1. If the operation was not implemented, I implemented it. 2. If the operation was already implemented, I just moved its location in the APFloat header into the IEEE-754R 5.7.2 section. If the name was incorrect, I put in a comment giving the true IEEE-754R name. Also unittests have been added for all of the functions which did not already have a unittest. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183179 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
abff3aa8217049cffe6da77c91e510c66b8c2313 |
|
03-Jun-2013 |
Manuel Klimek <klimek@google.com> |
Introduce needsCleanup() for APFloat and APInt. This is needed in clang so one can check if the object needs the destructor called after its memory was freed. This is useful when creating many APInt/APFloat objects with placement new, where the overhead of tracking the pointers for cleanup is significant. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183100 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
2e2922cd90922eaf3736421bd0ad4331f89f3e75 |
|
01-Jun-2013 |
Michael Gottesman <mgottesman@apple.com> |
Removed a comment above an include which is unnecessary and added a missing closing @} for a doxygen comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183065 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
8a70f5815dda98d23f0bbf519532703886159cda |
|
01-Jun-2013 |
Michael Gottesman <mgottesman@apple.com> |
Added method comments for getZero,getInf. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183064 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
7f88a3b20dbaee2a9b265f60a7bc19d2dc6a8f3e |
|
01-Jun-2013 |
Michael Gottesman <mgottesman@apple.com> |
Updated APFloat's comments to fit the LLVM style guide. Also added a few more method comments and performed some copy editing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183063 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
964722ca40f48c65605e459e3a732bb8783b92f6 |
|
30-May-2013 |
Michael Gottesman <mgottesman@apple.com> |
Implement IEEE-754R 2008 nextUp/nextDown functions in the guise of the function APFloat::next(bool nextDown). rdar://13852078 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182945 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
fce7b6b5d9905bf35641ee7f001b6b66dbc26c2d |
|
25-May-2013 |
Michael Gottesman <mgottesman@apple.com> |
clang formatted APFloat.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182686 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
a39058aaed4540fc37681cad728b99546595b2e8 |
|
19-Feb-2013 |
David Blaikie <dblaikie@gmail.com> |
Use LLVM_DELETED_FUNCTION rather than '// do not implement' comments. Also removes some redundant DNI comments on function declarations already using the macro. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175466 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
0a29cb045444c13160e90fe7942a9d7c720185ed |
|
22-Jan-2013 |
Tim Northover <Tim.Northover@arm.com> |
Make APFloat constructor require explicit semantics. Previously we tried to infer it from the bit width size, with an added IsIEEE argument for the PPC/IEEE 128-bit case, which had a default value. This default value allowed bugs to creep in, where it was inappropriate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173138 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
674be02d525d4e24bc6943ed9274958c580bcfbc |
|
10-Jan-2013 |
Jakub Staszak <kubastaszak@gmail.com> |
Fix include guards so they exactly match file names. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172025 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
7aa1c321f00d29fdc84e9a03080853aa25dd06fc |
|
07-Jan-2013 |
Shuxin Yang <shuxin.llvm@gmail.com> |
Implement APFloat::isDenormal() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171764 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
3a9b71434cda6f66d65a031effec1bbe58e1dda3 |
|
31-Oct-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add extra declarations of hash_value needed to build llvm with xlc 12.1. Patch by Kai! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167085 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
fce241d76fa39347f852fa74363b61c5e42cc602 |
|
29-Oct-2012 |
Ulrich Weigand <ulrich.weigand@de.ibm.com> |
APFloat cleanup: Remove now unused fields "sign2" and "exponent2". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166952 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
94c22716d60ff5edf6a98a3c67e0faa001be1142 |
|
27-Sep-2012 |
Sylvestre Ledru <sylvestre@debian.org> |
Revert 'Fix a typo 'iff' => 'if''. iff is an abreviation of if and only if. See: http://en.wikipedia.org/wiki/If_and_only_if Commit 164767 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164768 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
7e2c793a2b5c746344652b6579e958ee42fafdcc |
|
27-Sep-2012 |
Sylvestre Ledru <sylvestre@debian.org> |
Fix a typo 'iff' => 'if' git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164767 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
7c626d30974c632ab500171ff185a24bcf2603bf |
|
14-Aug-2012 |
Owen Anderson <resistor@mac.com> |
Add a roundToIntegral method to APFloat, which can be parameterized over various rounding modes. Use this to implement SelectionDAG constant folding of FFLOOR, FCEIL, and FTRUNC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161807 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
1fd63df6930a83d9d1378d2c68e19850c652078e |
|
10-Apr-2012 |
Duncan Sands <baldrick@free.fr> |
Express the number of ULPs in fpaccuracy metadata as a real rather than a rational number, eg as 2.5 rather than 5, 2. OK'd by Peter Collingbourne. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154387 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
ed7692a136a9bcf513b91b7b5eb33a1e2d83e7ee |
|
04-Mar-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Replace the hashing functions on APInt and APFloat with overloads of the new hash_value infrastructure, and replace their implementations using hash_combine. This removes a complete copy of Jenkin's lookup3 hash function (which is both significantly slower and lower quality than the one implemented in hash_combine) along with a somewhat scary xor-only hash function. Now that APInt and APFloat can be passed directly to hash_combine, simplify the rest of the LLVMContextImpl hashing to use the new infrastructure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152004 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
3d42bfbbdd26ac56ccd706d4ebee984490c72ecc |
|
15-Jul-2011 |
Jeffrey Yasskin <jyasskin@google.com> |
Add an APFloat::convertToInt(APSInt) function that automatically manages the memory for the result. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135259 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
2746000f4fa54e6ad00cf96910ea5772803624ed |
|
30-Mar-2011 |
Benjamin Kramer <benny.kra@googlemail.com> |
Add APFloat::getExactInverse. The idea is, that if an ieee 754 float is divided by a power of two, we can turn the division into a cheaper multiplication. This function sees if we can get an exact multiplicative inverse for a divisor and returns it if possible. This is the hard part of PR9587. I tested many inputs against llvm-gcc's frotend implementation of this optimization and didn't find any difference. However, floating point is the land of weird edge cases, so any review would be appreciated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128545 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
093399cbf3bcdb31d04b3bf5c5691fc88c25da48 |
|
17-Feb-2011 |
Nadav Rotem <nadav.rotem@intel.com> |
Enhance constant folding of bitcast operations on vectors of floats. Add getAllOnesValue of FP numbers to Constants and APFloat. Add more tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125776 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
38e59891ee4417a9be2f8146ce0ba3269e38ac21 |
|
15-Jul-2010 |
Benjamin Kramer <benny.kra@googlemail.com> |
Don't pass StringRef by reference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108366 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
0ddda3b8c6acc85761636ad46981395fdbe8daba |
|
06-Mar-2010 |
Chris Lattner <sabre@nondot.org> |
make APFloat::toString be const. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97883 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
e12b73816b50bbe2cc54b8005d86c95413b4f465 |
|
28-Feb-2010 |
John McCall <rjmccall@apple.com> |
Teach APFloat how to create both QNaNs and SNaNs and with arbitrary-width payloads. APFloat's internal folding routines always make QNaNs now, instead of sometimes making QNaNs and sometimes SNaNs depending on the type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97364 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
6a09affdf62fccbd190ca6e9cac0cb065b5f2677 |
|
25-Dec-2009 |
John McCall <rjmccall@apple.com> |
Implement support for converting to string at "natural precision", and fix some major bugs in long-precision conversion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92150 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
00e65de9d83f846af732e3ace3f48d43d67b13d1 |
|
24-Dec-2009 |
John McCall <rjmccall@apple.com> |
Add accessors for the largest-magnitude, smallest-magnitude, and smallest-normalized-magnitude values in a given FP semantics. Provide an APFloat-to-string conversion which I am quite ready to admit could be much more efficient. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92126 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
c5a75523eff46fe3880b94ae0fd22a1e01c27f28 |
|
28-Oct-2009 |
Evan Cheng <evan.cheng@apple.com> |
Remove getIEEEFloatParts and getIEEEDoubleParts. They are not needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85358 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
99ebfa5f6c6f24fdce4cdd3de1adbc4a282db337 |
|
27-Oct-2009 |
Evan Cheng <evan.cheng@apple.com> |
Add new APFloat methods that return sign, exp, and mantissa of ieee float and double values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85318 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
cc4287a374a33fb03ef41b92f74783e31ef47650 |
|
16-Oct-2009 |
Chris Lattner <sabre@nondot.org> |
Add half precision floating point support (float16) to APFloat, patch by Peter Johnson! (PR5195) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84239 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
d7bd78e36e1d3adfc90a4f95b2cc849d38af1b24 |
|
17-Sep-2009 |
Chris Lattner <sabre@nondot.org> |
add a version of the APFloat constructor that initializes to 0.0 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82110 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
7e844f128e0be77154aa08dbf2e828fcd4051604 |
|
22-Aug-2009 |
Anton Korobeynikov <asl@math.spbu.ru> |
Implement APInt <-> APFloat conversion for IEEE 128-bit floats. This fixes PR2555 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79677 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
f70bc559a12c410aefab470f1349922ae7b19307 |
|
17-Aug-2009 |
Oscar Fuentes <ofv@wanadoo.es> |
Make a declaration consistent with its definition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79220 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
a15d890c34b5e3a6373c410ebc58453f2d52f43b |
|
17-Aug-2009 |
Erick Tryzelaar <idadesub@users.sourceforge.net> |
Modify APFloat to take a StringRef instead of a c string. This also adds unit tests to APFloat that mainly tests the string handling of APFloat, but not much else of it's api. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79210 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
6330084a6623afcacd86156ef505aa11d482e307 |
|
01-Jun-2009 |
Mike Stump <mrs@apple.com> |
Dcoument that the opauque value used to construct QNaNs is truncated as necessary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72702 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
7d36d39e63451a09283225e6507dea730c1efa14 |
|
30-May-2009 |
Mike Stump <mrs@apple.com> |
Add some documentation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72622 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
c5ca713b8073d9fe95b258d0c01328d020df3357 |
|
30-May-2009 |
Mike Stump <mrs@apple.com> |
Add support for letting the client choose different flavors of NaNs. Testcase to be added in clang. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72606 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
ed6af24e146a5d358115123f0d2be694c1fa3a84 |
|
21-Jan-2009 |
Dale Johannesen <dalej@apple.com> |
Make special cases (0 inf nan) work for frem. Besides APFloat, this involved removing code from two places that thought they knew the result of frem(0., x) but were wrong. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62645 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
24b66a83ca8c80417ad7523c35ece709a7e6599c |
|
20-Jan-2009 |
Dale Johannesen <dalej@apple.com> |
Add an IEEE remainder function, which is not fully implemented yet and not used. This is mainly to clarify that APFloat::mod implements C fmod, not remainder. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62593 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
3a54b3dc87a581c203b18050b4f787b4ca28a12c |
|
09-Jan-2009 |
Misha Brukman <brukman+llvm@gmail.com> |
Removed trailing whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62000 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
23a98551ab65eeb8fe5019df8b7db4891582a4bd |
|
10-Oct-2008 |
Dale Johannesen <dalej@apple.com> |
Add a "loses information" return value to APFloat::convert and APFloat::convertToInteger. Restore return value to IEEE754. Adjust all users accordingly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57329 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
7111b02c734c992b8c97d9918118768026dad79e |
|
09-Oct-2008 |
Dale Johannesen <dalej@apple.com> |
Rename APFloat::convertToAPInt to bitcastToAPInt to make it clearer what the function does. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57325 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
f25381ed35c345c252da8b8a8ae9af41eef6b35c |
|
30-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
add convenience 'constructors' git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52908 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
b8d0b807fc85e5ea5fb3a156fea5f8c2214e1f31 |
|
01-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
add a predicate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51842 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
93c276e1c92da03ce9805fd3f3814b5e9b8cd57c |
|
29-Feb-2008 |
Dan Gohman <gohman@apple.com> |
Add a method to APFloat to convert directly from APInt. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47738 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
e85fe660e4e99d30ca9292b706b8ffe6d0367dca |
|
26-Feb-2008 |
Bill Wendling <isanbard@gmail.com> |
Detabify git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47597 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
1f801fa5ada9cb40fb97ae755c282e91af54a1bc |
|
11-Feb-2008 |
Ted Kremenek <kremenek@apple.com> |
Added "Profile" method to APFloat for use with FoldingSet. Added member template "Add" to FoldingSetNodeID that allows "adding" arbitrary objects to a profile via dispatch to FoldingSetTrait<T>::Profile(). Removed FoldingSetNodeID::AddAPFloat and FoldingSetNodeID::APInt, as their functionality is now replaced using the above mentioned member template. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46957 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
7ed47a13356daed2a34cd2209a31f92552e3bdd8 |
|
29-Dec-2007 |
Chris Lattner <sabre@nondot.org> |
Don't attribute in file headers anymore. See llvmdev for the discussion of this change. Boy are my fingers tired. ;-) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45411 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
921f0d40ececc91649bff9feeef37a3c89250608 |
|
08-Dec-2007 |
Chris Lattner <sabre@nondot.org> |
remove dead #include. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44711 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
065d97e7fc0b39264586e4f812955078194c595a |
|
08-Dec-2007 |
Chris Lattner <sabre@nondot.org> |
remove dead #include, APInt.h already has the needed forward decls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44708 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
c47dfdde2458f97d2ef8342b73b526579424c381 |
|
07-Nov-2007 |
Ted Kremenek <kremenek@apple.com> |
Implemented generic serialization of APFloat. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43829 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
ee7ae384f5d6067f1ca6d475b8630fe91ff2f6b6 |
|
01-Nov-2007 |
Neil Booth <neil@daikokuya.co.uk> |
When converting to integer, do bit manipulations in the destination memory rather than in a copy of the APFloat. This avoids problems when the destination is wider than our significand and is cleaner. Also provide deterministic values in all cases where conversion fails, namely zero for NaNs and the minimal or maximal value respectively for underflow or overflow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43626 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
10c42185d82c121e8f7d261decde798c05567c59 |
|
24-Oct-2007 |
Chris Lattner <sabre@nondot.org> |
add a nice predicate to check to see if nan git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43304 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
e5e0194583c9d95cae685da139531624e050d39e |
|
14-Oct-2007 |
Neil Booth <neil@daikokuya.co.uk> |
Consolidate logic for creating NaNs. Silence compiler warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42966 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
96c7471b39dc77d4f29658212e5a72e575b23c39 |
|
12-Oct-2007 |
Neil Booth <neil@daikokuya.co.uk> |
Implement correctly-rounded decimal->binary conversion, i.e. conversion from user input strings. Such conversions are more intricate and subtle than they may appear; it is unlikely I have got it completely right first time. I would appreciate being informed of any bugs and incorrect roundings you might discover. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42912 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
a471c2ecda37cd1bae0d94e832f002caa7b63216 |
|
11-Oct-2007 |
Dale Johannesen <dalej@apple.com> |
Next PPC long double bits. First cut at constants. No compile-time support for constant operations yet, just format transformations. Make readers and writers work. Split constants into 2 doubles in Legalize. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42865 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
f16c595252de363e0e1f6895a5a626bc30017053 |
|
07-Oct-2007 |
Neil Booth <neil@daikokuya.co.uk> |
Add back convertFromSignExtendedInteger. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42735 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
643ce59495702ef29573b725d7431638be1c136a |
|
07-Oct-2007 |
Neil Booth <neil@daikokuya.co.uk> |
Reimplement convertFromUnsignedInteger so it is passed a const bignum. It used to modify its argument in-place. This interface is saner and the implementation more efficient. It will be needed for decimal->binary conversion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42733 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
ccf596a53e16ea221a9bf8b3874a7d6afa71f1f4 |
|
07-Oct-2007 |
Neil Booth <neil@daikokuya.co.uk> |
convertFromInteger, as originally written, expected sign-extended input. APInt unfortunately zero-extends signed integers, so Dale modified the function to expect zero-extended input. Make this assumption explicit in the function name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42732 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
33d4c92e78a32a8e07ab3ebc1487b07304875ddd |
|
07-Oct-2007 |
Neil Booth <neil@daikokuya.co.uk> |
combineLostFractions does not need to be a member function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42729 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
a30b0ee959b53e83ed3697ee0b704a493829dc04 |
|
04-Oct-2007 |
Neil Booth <neil@daikokuya.co.uk> |
Add APFloat -> hexadecimal string conversion, as per %a and %A in C99. Useful for diagnostics and debugging. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42598 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
b7dea4cb368c7b2e825e6d58b249693736a32e21 |
|
03-Oct-2007 |
Neil Booth <neil@daikokuya.co.uk> |
Tweak RoundAwayFromZero the bit number below which is truncated, and make it const. Preparation for APFloat -> hexadecimal string conversion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42576 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
117acf9e36a0789d56b52525e031f575f80fe169 |
|
26-Sep-2007 |
Neil Booth <neil@daikokuya.co.uk> |
Whitespace cleanup. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42374 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
8a901985bc599df9dfd2fca0b8dd0da4585df8a7 |
|
13-Sep-2007 |
Chris Lattner <sabre@nondot.org> |
Make single-argument ctors explicit to avoid tricky bugs :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41924 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
3f6eb7419de437436265831fce92f62498556e08 |
|
11-Sep-2007 |
Dale Johannesen <dalej@apple.com> |
Add APInt interfaces to APFloat (allows directly access to bits). Use them in place of float and double interfaces where appropriate. First bits of x86 long double constants handling (untested, probably does not work). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41858 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
418d360518811121ad9352af57fdd7ba58a4f917 |
|
08-Sep-2007 |
Chuck Rose III <cfr@adobe.com> |
Fix for VisualStudio. It is treating a 2 bit enum as a signed int for comparison purposes, causing failures. Using an extra bit fixes it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41784 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
c4dd3c3b519aa2c2ed26ce03a4b1fbb992efeaca |
|
01-Sep-2007 |
Dale Johannesen <dalej@apple.com> |
Add mod, copysign, abs operations to APFloat. Implement some constant folding in SelectionDAG and DAGCombiner using APFloat. Remove double versions of constructor and getValue from ConstantFPSDNode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41664 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
eaf089430e7681fcddc3465c3b33b9645273ab02 |
|
31-Aug-2007 |
Dale Johannesen <dalej@apple.com> |
Enhance APFloat to retain bits of NaNs (fixes oggenc). Use APFloat interfaces for more references, mostly of ConstantFPSDNode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41632 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
21dcae17f580678c452eac73e01424c924d2f994 |
|
25-Aug-2007 |
Dale Johannesen <dalej@apple.com> |
Comment out declaration of operator== (undefined). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41383 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
12595d7b165bf460b18f4ddd395dd29e6e6e68bc |
|
25-Aug-2007 |
Dale Johannesen <dalej@apple.com> |
Poison APFloat::operator==. Replace existing uses with bitwiseIsEqual. This means backing out the preceding change to Constants.cpp, alas. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41378 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
d3b51fd17024569cc53ae02b9a4f80857930e08b |
|
24-Aug-2007 |
Dale Johannesen <dalej@apple.com> |
Revised per review feedback from previous patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41353 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
343e770983dcf53a1ea2dfca4e04d28ebc41138a |
|
24-Aug-2007 |
Dale Johannesen <dalej@apple.com> |
Change internal representation of ConstantFP to use APFloat. Interface to rest of the compiler unchanged, as yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41348 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|
b39cdde41d3c91d1fd48a038e63b78122607bb10 |
|
21-Aug-2007 |
Chris Lattner <sabre@nondot.org> |
initial checkin of Neil's APFloat work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41203 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/ADT/APFloat.h
|