| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | 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 | ||||
| * | Unbreak build. | Jeff Cohen | 2007-04-29 | 1 | -1/+2 |
| | | | | | llvm-svn: 36559 | ||||
| * | Add a new memorybuffer class, to unify all the file reading code in the system | Chris Lattner | 2007-04-29 | 1 | -0/+239 |
| | | | | | llvm-svn: 36553 | ||||
| * | Using APInt more efficiently. | Zhou Sheng | 2007-04-26 | 1 | -5/+3 |
| | | | | | llvm-svn: 36475 | ||||
| * | Fix PR1329. | Jeff Cohen | 2007-04-14 | 1 | -0/+28 |
| | | | | | llvm-svn: 36016 | ||||
| * | We want the number of bits needed, not the power of 2. | Reid Spencer | 2007-04-14 | 1 | -1/+1 |
| | | | | | llvm-svn: 35977 | ||||
| * | Implement a getBitsNeeded method to determine how many bits are needed to | Reid Spencer | 2007-04-13 | 1 | -0/+37 |
| | | | | | | | represent a string in binary form by an APInt. llvm-svn: 35968 | ||||
| * | Make the apint construction more effective. | Zhou Sheng | 2007-04-13 | 1 | -3/+3 |
| | | | | | llvm-svn: 35960 | ||||
| * | improve the patch for PR1318 to also support grouped options with custom | Chris Lattner | 2007-04-12 | 1 | -7/+12 |
| | | | | | | | | | | handlers (like the pass list). My previous fix only supported *new* command line options, not additions to old ones. This fixes test/Feature/load_module.ll llvm-svn: 35935 | ||||
| * | Fix PR1318 by reacting appropriately to a mutating option list. | Chris Lattner | 2007-04-11 | 1 | -0/+14 |
| | | | | | llvm-svn: 35905 | ||||
| * | Fix an approximate calculation in an assertion not to give false negatives. | Reid Spencer | 2007-04-11 | 1 | -1/+1 |
| | | | | | llvm-svn: 35901 | ||||
| * | For PR1291: | Reid Spencer | 2007-04-07 | 1 | -2/+2 |
| | | | | | | | | Change uses of sys::Path class to sys::PathWithStatus in those places where the file status information is needed. llvm-svn: 35743 | ||||

