summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
* Make getSTDIN return null if the standard input is empty, as the header fileReid Spencer2007-08-081-2/+4
| | | | | | documentation implies and as its uses depend. llvm-svn: 40939
* Escape some escapes that confuse doxygen.Reid Spencer2007-08-051-1/+3
| | | | llvm-svn: 40850
* When clearing a SmallPtrSet, if the set had a huge capacity, but theChris Lattner2007-08-051-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 Anderson2007-07-271-20/+20
| | | | llvm-svn: 40556
* Make the copy constructor of SmallPtrSet much faster.Owen Anderson2007-07-241-22/+12
| | | | llvm-svn: 40474
* Remember to free the heap allocated array if we're not going to use it.Owen Anderson2007-07-191-2/+4
| | | | llvm-svn: 40043
* Fix an issue where assignments that caused a SmallPtrSet to become non-smallOwen Anderson2007-07-181-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 andReid Spencer2007-07-171-0/+7
| | | | | | having that implementation file #include <cstdlib>. llvm-svn: 39952
* Use realloc() to (potentially) resize the contents of SmallPtrSet in place.Owen Anderson2007-07-161-10/+9
| | | | llvm-svn: 39926
* Clarify the language. Pointed out by Duncan Sands.Nick Lewycky2007-07-141-2/+4
| | | | llvm-svn: 39857
* Add alternate ConstantRange intersection algorithm.Nick Lewycky2007-07-141-0/+81
| | | | llvm-svn: 39851
* Make the assignment operator for SmallPtrSet much faster for normal cases.Owen Anderson2007-07-091-36/+21
| | | | llvm-svn: 38474
* Make the assignment operator for SmallPtrSet return a reference, and fix a ↵Owen Anderson2007-07-091-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 Anderson2007-07-091-3/+11
| | | | | | | | GVNPRE.cpp. Patch by Chis Lattner. llvm-svn: 38467
* implement operator= for smallptrsetChris Lattner2007-07-091-0/+36
| | | | llvm-svn: 38460
* Here is the bulk of the sanitizing.Gabor Greif2007-07-051-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 Lewycky2007-07-011-1/+2
| | | | llvm-svn: 37829
* Fix a bug in SmallPtrSet that was causing GVNPRE to enter an infinite loop.Owen Anderson2007-06-221-1/+1
| | | | llvm-svn: 37697
* Two changes:Chris Lattner2007-06-211-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 Lewycky2007-06-091-2/+2
| | | | llvm-svn: 37532
* Make tail merging the default, except on powerPC. There was no prior artDale Johannesen2007-05-221-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. WeReid Spencer2007-05-191-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 Spencer2007-05-171-8/+27
| | | | llvm-svn: 37175
* For lshr by 0 bits, just return *this as a short cut. This also preventsReid Spencer2007-05-171-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 wereReid Spencer2007-05-161-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 Spencer2007-05-141-0/+4
| | | | llvm-svn: 37026
* Add some things needed by the llvm-gcc version supporting bit accurate integerReid Spencer2007-05-131-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 theReid Spencer2007-05-121-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 leakChris Lattner2007-05-111-1/+1
| | | | llvm-svn: 36981
* Unbreak VC++ build.Jeff Cohen2007-05-071-0/+2
| | | | llvm-svn: 36901
* Enhance MemoryBuffer to return error messages in strings if they occur.Chris Lattner2007-05-061-7/+11
| | | | llvm-svn: 36899
* remove this file for now, we can bring it back from cvs if we need it inChris Lattner2007-05-061-561/+0
| | | | | | the future (and integrate it with membuffer, etc) llvm-svn: 36876
* remove libbzip2, it is deadChris Lattner2007-05-0615-6126/+0
| | | | llvm-svn: 36875
* don't build bzip2 for nowChris Lattner2007-05-061-1/+0
| | | | llvm-svn: 36871
* disable this for nowChris Lattner2007-05-061-0/+3
| | | | llvm-svn: 36870
* Fix MemoryBuffer::getFile to return null if it has an error opening theChris Lattner2007-05-061-8/+20
| | | | | | file instead of aborting. llvm-svn: 36858
* This is a patch to fix a compile error in STLExtras.h, andChris Lattner2007-05-031-0/+1
| | | | | | | | a bug in GraphWriter.cpp. Patch by Florian Brandner llvm-svn: 36684
* silence some annoying gcc 4.3 warningsChris Lattner2007-05-031-7/+10
| | | | llvm-svn: 36680
* Fix MemoryBuffer breakage correctly.Jeff Cohen2007-04-291-1/+1
| | | | llvm-svn: 36561
* Unbreak build.Jeff Cohen2007-04-291-1/+2
| | | | llvm-svn: 36559
* Add a new memorybuffer class, to unify all the file reading code in the systemChris Lattner2007-04-291-0/+239
| | | | llvm-svn: 36553
* Using APInt more efficiently.Zhou Sheng2007-04-261-5/+3
| | | | llvm-svn: 36475
* Fix PR1329.Jeff Cohen2007-04-141-0/+28
| | | | llvm-svn: 36016
* We want the number of bits needed, not the power of 2.Reid Spencer2007-04-141-1/+1
| | | | llvm-svn: 35977
* Implement a getBitsNeeded method to determine how many bits are needed toReid Spencer2007-04-131-0/+37
| | | | | | represent a string in binary form by an APInt. llvm-svn: 35968
* Make the apint construction more effective.Zhou Sheng2007-04-131-3/+3
| | | | llvm-svn: 35960
* improve the patch for PR1318 to also support grouped options with customChris Lattner2007-04-121-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 Lattner2007-04-111-0/+14
| | | | llvm-svn: 35905
* Fix an approximate calculation in an assertion not to give false negatives.Reid Spencer2007-04-111-1/+1
| | | | llvm-svn: 35901
* For PR1291:Reid Spencer2007-04-071-2/+2
| | | | | | | Change uses of sys::Path class to sys::PathWithStatus in those places where the file status information is needed. llvm-svn: 35743
OpenPOWER on IntegriCloud