|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| ... |  | 
| | 
| 
| 
| 
| 
| | and double values.
llvm-svn: 85318 | 
| | 
| 
| 
| 
| 
| 
| | they don't get lost; I don't think the originator has
write access.
llvm-svn: 84928 | 
| | 
| 
| 
| 
| 
| | patch by Peter Johnson! (PR5195)
llvm-svn: 84239 | 
| | 
| 
| 
| | llvm-svn: 82715 | 
| | 
| 
| 
| | llvm-svn: 82110 | 
| | 
| 
| 
| | llvm-svn: 79688 | 
| | 
| 
| 
| 
| 
| | This fixes PR2555
llvm-svn: 79677 | 
| | 
| 
| 
| 
| 
| | and many new unit tests.
llvm-svn: 79574 | 
| | 
| 
| 
| | llvm-svn: 79540 | 
| | 
| 
| 
| | llvm-svn: 79353 | 
| | 
| 
| 
| 
| 
| 
| | This also adds unit tests to APFloat that mainly tests the
string handling of APFloat, but not much else of it's api.
llvm-svn: 79210 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | This adds location info for all llvm_unreachable calls (which is a macro now) in
!NDEBUG builds.
In NDEBUG builds location info and the message is off (it only prints
"UREACHABLE executed").
llvm-svn: 75640 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | Make llvm_unreachable take an optional string, thus moving the cerr<< out of
line.
LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for
NDEBUG builds.
llvm-svn: 75379 | 
| | 
| 
| 
| 
| 
| 
| 
| | Testcase to be
added in clang.
llvm-svn: 72606 | 
| | 
| 
| 
| | llvm-svn: 71738 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | same as a normal i80 {low64, high16} rather
than its own {high64, low16}.  A depressing number
of places know about this; I think I got them all.
Bitcode readers and writers convert back to the old
form to avoid breaking compatibility.
llvm-svn: 67562 | 
| | 
| 
| 
| | llvm-svn: 66850 | 
| | 
| 
| 
| 
| 
| | to the stack.  This shrinks all llvm tools by 9k, and improves reentrancy.
llvm-svn: 66847 | 
| | 
| 
| 
| | llvm-svn: 66845 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | Cleanup some warning.
Remark: when struct/class are declared differently than they are defined, this make problem for VC++ since it seems to mangle class differently that struct. These error are very hard to understand and find. So please, try to keep your definition/declaration in sync.
Only tested with VS2008. hope it does not break anything. feel free to revert.
llvm-svn: 64554 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | ASCII IR; loading and storing these can change the
bits of NaNs on some hosts.  Remove or add warnings
at a few other places using host floating point;
this is a bad thing to do in general.
llvm-svn: 62712 | 
| | 
| 
| 
| 
| 
| 
| 
| | Besides APFloat, this involved removing code
from two places that thought they knew the
result of frem(0., x) but were wrong.
llvm-svn: 62645 | 
| | 
| 
| 
| 
| 
| 
| 
| | fully implemented yet and not used.  This is
mainly to clarify that APFloat::mod implements
C fmod, not remainder.
llvm-svn: 62593 | 
| | 
| 
| 
| | llvm-svn: 62528 | 
| | 
| 
| 
| 
| 
| | inlined" message.
llvm-svn: 60165 | 
| | 
| 
| 
| 
| 
| | first before trying to convert it to an integer.
llvm-svn: 60072 | 
| | 
| 
| 
| 
| 
| | if sematics of float does not allow arithmetics.
llvm-svn: 60042 | 
| | 
| 
| 
| 
| 
| 
| | and APFloat::convertToInteger.  Restore return value to
IEEE754.  Adjust all users accordingly.
llvm-svn: 57329 | 
| | 
| 
| 
| 
| 
| 
| | make it clearer what the function does.  No functional
change.
llvm-svn: 57325 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | since -0.0 can't be represented as an int.
This prevents llvm from reducing -0.0 to a
load-and-convert of int 0.  Fixes
ieee.exp/mzero[2356].c in gcc testsuite.
llvm-svn: 57224 | 
| | 
| 
| 
| 
| 
| 
| 
| | are Inexact.  (These are not Inexact as defined
by IEEE754, but that seems like a reasonable way
to abstract what happens:  information is lost.)
llvm-svn: 57218 | 
| | 
| 
| 
| 
| 
| | it is too aggressive.
llvm-svn: 57203 | 
| | 
| 
| 
| 
| 
| | Improve description of unsupported formats.
llvm-svn: 57185 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | returning an std::string by value, it fills in a SmallString/SmallVector
passed in.  This significantly reduces string thrashing in some cases.
More specifically, this:
 - Adds an operator<< and a print method for APInt that allows you to 
   directly send them to an ostream.
 - Reimplements APInt::toString to be much simpler and more efficient
   algorithmically in addition to not thrashing strings quite as much.
This speeds up llvm-dis on kc++ by 7%, and may also slightly speed up the
asmprinter.  This also fixes a bug I introduced into the asmwriter in a
previous patch w.r.t. alias printing.
llvm-svn: 54873 | 
| | 
| 
| 
| | llvm-svn: 54869 | 
| | 
| 
| 
| 
| 
| | to 64 bits.
llvm-svn: 51135 | 
| | 
| 
| 
| 
| 
| | conversion.  Try 0x1.0000a4p+0f.  Neil, please review.
llvm-svn: 51132 | 
| | 
| 
| 
| | llvm-svn: 50975 | 
| | 
| 
| 
| | llvm-svn: 50590 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | ppc long double, which doesn't work.
This may break some stuff temporarily, but I want to
avoid the propagation of code that assumes this works.
llvm-svn: 49983 | 
| | 
| 
| 
| | llvm-svn: 49496 | 
| | 
| 
| 
| | llvm-svn: 47738 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | 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.
llvm-svn: 46957 | 
| | 
| 
| 
| 
| 
| 
| | exposed a bug in APFloat's long double->double conversion of
NaNs.  Broke several things in the ieee part of gcc testsuite.
llvm-svn: 46617 | 
| | 
| 
| 
| 
| 
| | compiler warnings.
llvm-svn: 46509 | 
| | 
| 
| 
| | llvm-svn: 45418 | 
| | 
| 
| 
| | llvm-svn: 44707 | 
| | 
| 
| 
| | llvm-svn: 44614 | 
| | 
| 
| 
| | llvm-svn: 44613 | 
| | 
| 
| 
| | llvm-svn: 44594 |