| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | Next PPC long double bits. First cut at constants. | Dale Johannesen | 2007-10-11 | 1 | -6/+157 | |
| | | | | | | | | | | No compile-time support for constant operations yet, just format transformations. Make readers and writers work. Split constants into 2 doubles in Legalize. llvm-svn: 42865 | |||||
| * | Add new MemoryBuffer::getMemBufferCopy method. | Chris Lattner | 2007-10-09 | 1 | -2/+15 | |
| | | | | | llvm-svn: 42815 | |||||
| * | Pass argc by value, not by reference, since it isn't modified. | Dan Gohman | 2007-10-09 | 1 | -1/+1 | |
| | | | | | llvm-svn: 42788 | |||||
| * | Change a #include into a forward declaration | Chris Lattner | 2007-10-09 | 1 | -0/+1 | |
| | | | | | llvm-svn: 42781 | |||||
| * | Move the space in overview output for commands out of each of the | Dan Gohman | 2007-10-08 | 1 | -1/+1 | |
| | | | | | | | commands and into the common code. llvm-svn: 42752 | |||||
| * | Use APInt::tcExtract. It's cleaner, and works :) | Neil Booth | 2007-10-08 | 1 | -19/+14 | |
| | | | | | llvm-svn: 42746 | |||||
| * | Add a new function tcExtract for extracting a bignum from an | Neil Booth | 2007-10-08 | 1 | -34/+76 | |
| | | | | | | | | | | | | | | arbitrary range of bits embedded in the middle of another bignum. This kind of operation is desirable in many cases of software floating point, e.g. converting bignum integers to floating point numbers of fixed precision (you want to extract the precision most significant bits). Elsewhere, add an assertion, and exit the shift functions early if the shift count is zero. llvm-svn: 42745 | |||||
| * | Add back convertFromSignExtendedInteger. | Neil Booth | 2007-10-07 | 1 | -0/+30 | |
| | | | | | llvm-svn: 42735 | |||||
| * | Now that convertFromUnsignedParts has a sane, constant interface, | Neil Booth | 2007-10-07 | 1 | -5/+1 | |
| | | | | | | | | convertFromZeroExtendedInteger can be simplified as it doesn't need to make a copy of the source bignum. llvm-svn: 42734 | |||||
| * | Reimplement convertFromUnsignedInteger so it is passed a const bignum. | Neil Booth | 2007-10-07 | 1 | -18/+29 | |
| | | | | | | | | | | 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. llvm-svn: 42733 | |||||
| * | convertFromInteger, as originally written, expected sign-extended | Neil Booth | 2007-10-07 | 1 | -4/+6 | |
| | | | | | | | | | 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. llvm-svn: 42732 | |||||
| * | combineLostFractions does not need to be a member function | Neil Booth | 2007-10-07 | 1 | -16/+15 | |
| | | | | | llvm-svn: 42729 | |||||
| * | Cleaner, more general exponent output. | Neil Booth | 2007-10-06 | 1 | -21/+22 | |
| | | | | | llvm-svn: 42690 | |||||
| * | silence warnings in no-assert build. | Chris Lattner | 2007-10-06 | 1 | -23/+20 | |
| | | | | | llvm-svn: 42687 | |||||
| * | Fix and clarify some comments. | Neil Booth | 2007-10-06 | 1 | -12/+12 | |
| | | | | | llvm-svn: 42670 | |||||
| * | Generalize tcFullMultiply so that the operands can be of differing | Neil Booth | 2007-10-06 | 2 | -16/+24 | |
| | | | | | | | | | part widths. Also, return the number of parts actually required to hold the result's value. Remove an over-cautious condition from rounding of float->hex conversion. llvm-svn: 42669 | |||||
| * | Add APFloat -> hexadecimal string conversion, as per %a and %A in C99. | Neil Booth | 2007-10-03 | 1 | -3/+240 | |
| | | | | | | | Useful for diagnostics and debugging. llvm-svn: 42598 | |||||
| * | Add initial iterator support for folding set. | Chris Lattner | 2007-10-03 | 1 | -0/+32 | |
| | | | | | llvm-svn: 42589 | |||||
| * | Simplify implementation of the FoldingSet circular list, a necessary step | Chris Lattner | 2007-10-03 | 1 | -11/+20 | |
| | | | | | | | to giving it iterators. llvm-svn: 42586 | |||||
| * | Tweak RoundAwayFromZero the bit number below which is truncated, and make | Neil Booth | 2007-10-03 | 1 | -8/+13 | |
| | | | | | | | | | it const. Preparation for APFloat -> hexadecimal string conversion. llvm-svn: 42576 | |||||
| * | Simplify and fix signed int -> FP conversions. | Dale Johannesen | 2007-09-30 | 1 | -11/+3 | |
| | | | | | llvm-svn: 42483 | |||||
| * | Whitespace and compiler warning cleanup. | Neil Booth | 2007-09-26 | 1 | -76/+91 | |
| | | | | | llvm-svn: 42373 | |||||
| * | Make APFloat->int conversions deterministic even in | Dale Johannesen | 2007-09-25 | 1 | -5/+33 | |
| | | | | | | | cases with undefined behavior. llvm-svn: 42328 | |||||
| * | Fix long double<->shorter FP type conversions | Dale Johannesen | 2007-09-25 | 1 | -12/+29 | |
| | | | | | | | of zero, infinity, and NaNs. llvm-svn: 42298 | |||||
| * | Handle storage complications of float->float conversions. | Neil Booth | 2007-09-22 | 1 | -18/+23 | |
| | | | | | llvm-svn: 42220 | |||||
| * | Change APFloat::convertFromInteger to take the incoming | Dale Johannesen | 2007-09-21 | 2 | -17/+20 | |
| | | | | | | | | | | | bit width instead of number of words allocated, which makes it actually work for int->APF conversions. Adjust callers. Add const to one of the APInt constructors to prevent surprising match when called with const argument. llvm-svn: 42210 | |||||
| * | Fix PR 1688. See comments there. | Dale Johannesen | 2007-09-20 | 1 | -13/+25 | |
| | | | | | llvm-svn: 42181 | |||||
| * | Do not hide APInt::dump() inside #ifndef NDEBUG. | Devang Patel | 2007-09-17 | 1 | -4/+0 | |
| | | | | | llvm-svn: 42068 | |||||
| * | fix a gcc warning: comparison between signed and unsigned integer expressions | Chris Lattner | 2007-09-14 | 1 | -1/+1 | |
| | | | | | llvm-svn: 41972 | |||||
| * | Remove the assumption that FP's are either float or | Dale Johannesen | 2007-09-14 | 2 | -1/+7 | |
| | | | | | | | | | | | | | | double from some of the many places in the optimizers it appears, and do something reasonable with x86 long double. Make APInt::dump() public, remove newline, use it to dump ConstantSDNode's. Allow APFloats in FoldingSet. Expand X86 backend handling of long doubles (conversions to/from int, mostly). llvm-svn: 41967 | |||||
| * | And an FoldingSetImpl::NodeID::AddInteger overload for int64_t, to avoid | Dan Gohman | 2007-09-14 | 1 | -0/+3 | |
| | | | | | | | ambiguity. llvm-svn: 41960 | |||||
| * | Remove spurious consts. This fixes warnings with compilers that | Dan Gohman | 2007-09-14 | 1 | -2/+2 | |
| | | | | | | | are strict about such things. llvm-svn: 41956 | |||||
| * | Compensate for partCount change in Bogus definition | Dale Johannesen | 2007-09-12 | 1 | -1/+1 | |
| | | | | | | | (could break hash table in ConstantFP) llvm-svn: 41874 | |||||
| * | Add APInt interfaces to APFloat (allows directly | Dale Johannesen | 2007-09-11 | 1 | -15/+149 | |
| | | | | | | | | | | 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). llvm-svn: 41858 | |||||
| * | Smarter Reset(). Instead of deallocating all memory regions and reallocate the | Evan Cheng | 2007-09-08 | 1 | -5/+17 | |
| | | | | | | | first region, just deallocate all but the last region in the list. llvm-svn: 41782 | |||||
| * | Added Reset() to free all allocated memory regions and reset state to be the ↵ | Evan Cheng | 2007-09-05 | 1 | -0/+6 | |
| | | | | | | | same as right after ctor. llvm-svn: 41728 | |||||
| * | Fix mod so it actually works. Fix conversions to | Dale Johannesen | 2007-09-05 | 1 | -9/+33 | |
| | | | | | | | native types to handle denormals correctly. llvm-svn: 41726 | |||||
| * | Oops, should be part of 41664; won't work very well without this piece. | Dale Johannesen | 2007-08-31 | 1 | -0/+38 | |
| | | | | | llvm-svn: 41665 | |||||
| * | Enhance APFloat to retain bits of NaNs (fixes oggenc). | Dale Johannesen | 2007-08-31 | 1 | -77/+76 | |
| | | | | | | | | Use APFloat interfaces for more references, mostly of ConstantFPSDNode. llvm-svn: 41632 | |||||
| * | Change LegalFPImmediates to use APFloat. | Dale Johannesen | 2007-08-30 | 1 | -1/+1 | |
| | | | | | | | | | | Add APFloat interfaces to ConstantFP, SelectionDAG. Fix integer bit in double->APFloat conversion. Convert LegalizeDAG to use APFloat interface in ConstantFPSDNode uses. llvm-svn: 41587 | |||||
| * | Poison APFloat::operator==. Replace existing uses with bitwiseIsEqual. | Dale Johannesen | 2007-08-24 | 1 | -1/+1 | |
| | | | | | | | This means backing out the preceding change to Constants.cpp, alas. llvm-svn: 41378 | |||||
| * | Revised per review feedback from previous patch. | Dale Johannesen | 2007-08-24 | 1 | -36/+15 | |
| | | | | | llvm-svn: 41353 | |||||
| * | silence some warnings in an optimized build. | Chris Lattner | 2007-08-24 | 1 | -11/+8 | |
| | | | | | llvm-svn: 41352 | |||||
| * | Change internal representation of ConstantFP to use APFloat. | Dale Johannesen | 2007-08-24 | 1 | -1/+187 | |
| | | | | | | | Interface to rest of the compiler unchanged, as yet. llvm-svn: 41348 | |||||
| * | rename APInt::toString -> toStringUnsigned for symmetry with toStringSigned() | Chris Lattner | 2007-08-23 | 1 | -2/+2 | |
| | | | | | | | Add an APSInt::toString() method. llvm-svn: 41309 | |||||
| * | initial checkin of Neil's APFloat work. | Chris Lattner | 2007-08-20 | 2 | -10/+1518 | |
| | | | | | llvm-svn: 41203 | |||||
| * | This adds a bunch of static functions that implement unsigned | Chris Lattner | 2007-08-16 | 1 | -0/+566 | |
| | | | | | | | | | | | | two's complement bignum arithmetic. They could be used to implement much of APInt, but the idea is they are enough to implement APFloat as well, which the current APInt interface is not suited for. Patch by Neil Booth! llvm-svn: 41124 | |||||
| * | Properly use const qualifiers | Anton Korobeynikov | 2007-08-15 | 1 | -1/+1 | |
| | | | | | llvm-svn: 41111 | |||||
| * | Make getSTDIN return null if the standard input is empty, as the header file | Reid Spencer | 2007-08-08 | 1 | -2/+4 | |
| | | | | | | | documentation implies and as its uses depend. llvm-svn: 40939 | |||||
| * | Escape some escapes that confuse doxygen. | Reid Spencer | 2007-08-05 | 1 | -1/+3 | |
| | | | | | llvm-svn: 40850 | |||||

