Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | |||||
* | When clearing a SmallPtrSet, if the set had a huge capacity, but the | Chris Lattner | 2007-08-05 | 1 | -0/+18 | |
| | | | | | | | | | | contents of the set were small, deallocate and shrink the set. This avoids having us to memset as much data, significantly speeding up some pathological cases. For example, this speeds up the verifier from 0.3899s to 0.0763 (5.1x) on the testcase from PR1432 in a release build. llvm-svn: 40837 | |||||
* | Allow SmallPtrSet to hold pointers to const data. | Owen Anderson | 2007-07-27 | 1 | -20/+20 | |
| | | | | llvm-svn: 40556 | |||||
* | Make the copy constructor of SmallPtrSet much faster. | Owen Anderson | 2007-07-24 | 1 | -22/+12 | |
| | | | | llvm-svn: 40474 | |||||
* | Remember to free the heap allocated array if we're not going to use it. | Owen Anderson | 2007-07-19 | 1 | -2/+4 | |
| | | | | llvm-svn: 40043 | |||||
* | Fix an issue where assignments that caused a SmallPtrSet to become non-small | Owen Anderson | 2007-07-18 | 1 | -4/+8 | |
| | | | | | | | would result in calling realloc() on a null pointer. Instead, if we encounter this situation, make a normal call to malloc(). llvm-svn: 40014 | |||||
* | Unbreak the build by putting calls to free into the implementation file and | Reid Spencer | 2007-07-17 | 1 | -0/+7 | |
| | | | | | | having that implementation file #include <cstdlib>. llvm-svn: 39952 | |||||
* | Use realloc() to (potentially) resize the contents of SmallPtrSet in place. | Owen Anderson | 2007-07-16 | 1 | -10/+9 | |
| | | | | llvm-svn: 39926 | |||||
* | Clarify the language. Pointed out by Duncan Sands. | Nick Lewycky | 2007-07-14 | 1 | -2/+4 | |
| | | | | llvm-svn: 39857 | |||||
* | Add alternate ConstantRange intersection algorithm. | Nick Lewycky | 2007-07-14 | 1 | -0/+81 | |
| | | | | llvm-svn: 39851 | |||||
* | Make the assignment operator for SmallPtrSet much faster for normal cases. | Owen Anderson | 2007-07-09 | 1 | -36/+21 | |
| | | | | llvm-svn: 38474 | |||||
* | Make the assignment operator for SmallPtrSet return a reference, and fix a ↵ | Owen Anderson | 2007-07-09 | 1 | -1/+1 | |
| | | | | | | | | | | long-standing bug in the copy ctor while I'm at it. Thanks to Chris Lattner for help with this patch. llvm-svn: 38470 | |||||
* | Fix an error in the assignment operator that was causing an infinite loop in ↵ | Owen Anderson | 2007-07-09 | 1 | -3/+11 | |
| | | | | | | | | GVNPRE.cpp. Patch by Chis Lattner. llvm-svn: 38467 | |||||
* | implement operator= for smallptrset | Chris Lattner | 2007-07-09 | 1 | -0/+36 | |
| | | | | llvm-svn: 38460 | |||||
* | Here is the bulk of the sanitizing. | Gabor Greif | 2007-07-05 | 1 | -4/+4 | |
| | | | | | | Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913 | |||||
* | Fix undefined behaviour reported by the new --enable-expensive-checks option. | Nick Lewycky | 2007-07-01 | 1 | -1/+2 | |
| | | | | llvm-svn: 37829 | |||||
* | Fix a bug in SmallPtrSet that was causing GVNPRE to enter an infinite loop. | Owen Anderson | 2007-06-22 | 1 | -1/+1 | |
| | | | | llvm-svn: 37697 | |||||
* | Two changes: | Chris Lattner | 2007-06-21 | 1 | -4/+5 | |
| | | | | | | | | | 1. Make SmallPtrSet::erase faster in the small case by replacing a memmove with a pointer copy. 2. Fix a bug where the null terminator at the end of the array in the small case was not copied llvm-svn: 37696 | |||||
* | Fix edge case. | Nick Lewycky | 2007-06-09 | 1 | -2/+2 | |
| | | | | llvm-svn: 37532 | |||||
* | Make tail merging the default, except on powerPC. There was no prior art | Dale Johannesen | 2007-05-22 | 1 | -0/+18 | |
| | | | | | | | for a target-dependent default with a command-line override; this way should be generally usable. llvm-svn: 37285 | |||||
* | Fix an assertion introduced by my last change to the toString method. We | Reid Spencer | 2007-05-19 | 1 | -2/+2 | |
| | | | | | | | can't use getZExtValue() to extract the low order bits for each digit. Instead, we need to access the low order word directly. llvm-svn: 37242 | |||||
* | Get rid of leading zeros in the output of toString. | Reid Spencer | 2007-05-17 | 1 | -8/+27 | |
| | | | | llvm-svn: 37175 | |||||
* | For lshr by 0 bits, just return *this as a short cut. This also prevents | Reid Spencer | 2007-05-17 | 1 | -0/+6 | |
| | | | | | | undefined behavior when the width > 64 bits. llvm-svn: 37153 | |||||
* | Fix a bug in the "fromString" method where radix 2,8 and 16 values were | Reid Spencer | 2007-05-16 | 1 | -8/+13 | |
| | | | | | | | | not being generated correctly because the shl operator does not mutate its object but returns a new value. Also, make the distinction between radix 16 and the others more clear. llvm-svn: 37111 | |||||
* | Make the results for the rotate functions correct when rotateAmt == 0. | Reid Spencer | 2007-05-14 | 1 | -0/+4 | |
| | | | | llvm-svn: 37026 | |||||
* | Add some things needed by the llvm-gcc version supporting bit accurate integer | Reid Spencer | 2007-05-13 | 1 | -1/+67 | |
| | | | | | | | | | | | types: 1. Functions to compute div/rem at the same time. 2. Further assurance that an APInt with 0 bitwidth cannot be constructed. 3. Left and right rotate operations. 4. An exactLogBase2 function which requires an exact power of two or it returns -1. llvm-svn: 37025 | |||||
* | Fix shl to produce the correct result when the bitwidth is > 64 and the | Reid Spencer | 2007-05-12 | 1 | -0/+6 | |
| | | | | | | | shift amount is 0. Previously this code would do a lshr by the bit width which can lead to incorrect results. llvm-svn: 37010 | |||||
* | fix a memory leak | Chris Lattner | 2007-05-11 | 1 | -1/+1 | |
| | | | | llvm-svn: 36981 | |||||
* | Unbreak VC++ build. | Jeff Cohen | 2007-05-07 | 1 | -0/+2 | |
| | | | | llvm-svn: 36901 | |||||
* | Enhance MemoryBuffer to return error messages in strings if they occur. | Chris Lattner | 2007-05-06 | 1 | -7/+11 | |
| | | | | llvm-svn: 36899 | |||||
* | remove this file for now, we can bring it back from cvs if we need it in | Chris Lattner | 2007-05-06 | 1 | -561/+0 | |
| | | | | | | the future (and integrate it with membuffer, etc) llvm-svn: 36876 | |||||
* | remove libbzip2, it is dead | Chris Lattner | 2007-05-06 | 15 | -6126/+0 | |
| | | | | llvm-svn: 36875 | |||||
* | don't build bzip2 for now | Chris Lattner | 2007-05-06 | 1 | -1/+0 | |
| | | | | llvm-svn: 36871 | |||||
* | disable this for now | Chris Lattner | 2007-05-06 | 1 | -0/+3 | |
| | | | | llvm-svn: 36870 | |||||
* | Fix MemoryBuffer::getFile to return null if it has an error opening the | Chris Lattner | 2007-05-06 | 1 | -8/+20 | |
| | | | | | | file instead of aborting. llvm-svn: 36858 | |||||
* | This is a patch to fix a compile error in STLExtras.h, and | Chris Lattner | 2007-05-03 | 1 | -0/+1 | |
| | | | | | | | | a bug in GraphWriter.cpp. Patch by Florian Brandner llvm-svn: 36684 | |||||
* | silence some annoying gcc 4.3 warnings | Chris Lattner | 2007-05-03 | 1 | -7/+10 | |
| | | | | llvm-svn: 36680 | |||||
* | Fix MemoryBuffer breakage correctly. | Jeff Cohen | 2007-04-29 | 1 | -1/+1 | |
| | | | | llvm-svn: 36561 |