summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
...
* Micro-optimize these functions in the case where they are not inlined.Dan Gohman2009-12-141-2/+1
| | | | llvm-svn: 91316
* DeltaAlgorithm: Add a virtual destructor and home.Daniel Dunbar2009-12-091-0/+3
| | | | llvm-svn: 90957
* Fix typo and add missing include.Daniel Dunbar2009-12-041-1/+2
| | | | llvm-svn: 90557
* Print a newline after the Args: line so that unrelated errs() output doesn'tDan Gohman2009-12-031-1/+2
| | | | | | end up on the same line. llvm-svn: 90473
* Add an implementation of the delta debugging algorithm.Daniel Dunbar2009-12-032-0/+111
| | | | | | | - This is a pretty slow / memory intensive implementation, and I will likely change it to an iterative model, but it works. llvm-svn: 90447
* return more useful error messages by using strerror to format errnoChris Lattner2009-12-011-3/+3
| | | | | | instead of returning an ambiguous reason. llvm-svn: 90275
* Perform explicit instantiations in the proper namespace, since Clang ↵Douglas Gregor2009-11-251-0/+2
| | | | | | diagnoses this ill-formity. llvm-svn: 89846
* SourceMgr: Add ShowLine argument to PrintMessage, to allow suppressing the ↵Daniel Dunbar2009-11-221-16/+19
| | | | | | source line output. llvm-svn: 89627
* Move the handling of CommaSeparated options into ProvideOption.Mikhail Glushenkov2009-11-201-23/+33
| | | | | | | | Makes '--comma-separated val1,val2' mean the same thing as '--comma-separated=val1,val2' (that is, 'val1' and 'val2' are not lumped together as 'val1,val2'). Also declutters the main loop a bit. llvm-svn: 89463
* Use StringRef::min instead of std::min.Daniel Dunbar2009-11-191-5/+5
| | | | llvm-svn: 89372
* Trailing whitespace.Mikhail Glushenkov2009-11-191-25/+25
| | | | llvm-svn: 89364
* Add PS3 Triple class, Credit to John Thompson.Edward O'Callaghan2009-11-191-1/+4
| | | | llvm-svn: 89339
* Added getArchNameForAssembler method to the Triple class for which returns ↵Viktor Kutuzov2009-11-171-0/+27
| | | | | | OS and Vendor independent target assembler arch. llvm-svn: 89122
* Revert CPU detection code to return "generic" instead of an empty string in caseBenjamin Kramer2009-11-171-1/+1
| | | | | | | of failure. The x86 target didn't like empty cpu names and broke x86 tests on non-x86 buildbots. llvm-svn: 89111
* Fix a race condition in the Timer class.Owen Anderson2009-11-171-38/+5
| | | | llvm-svn: 89056
* Add PSP OS Target to Triple, Credit to Bruno Cardoso Lopes.Edward O'Callaghan2009-11-151-0/+3
| | | | llvm-svn: 88849
* Report the detected host CPU in --version.Daniel Dunbar2009-11-141-0/+3
| | | | llvm-svn: 88813
* Distinguish "a," from "a". The first one splits into "a" + "" and the second ↵Rafael Espindola2009-11-131-3/+5
| | | | | | | | one into "a" + 0. llvm-svn: 87084
* Switch to smallvector. Also fix issue with using unsigend for MaxSplit.Rafael Espindola2009-11-131-3/+4
| | | | llvm-svn: 87068
* Add a new split method to StringRef that puts the substrings in a vector.Rafael Espindola2009-11-131-0/+19
| | | | llvm-svn: 87058
* Add compare_lower and equals_lower methods to StringRef. Switch all users ofBenjamin Kramer2009-11-121-0/+20
| | | | | | StringsEqualNoCase (from StringExtras.h) to it. llvm-svn: 87020
* fix crash in my previous patchNuno Lopes2009-11-121-1/+1
| | | | llvm-svn: 86987
* implement shl, ashr, and lshr methods. shl is not fully implemented as it is ↵Nuno Lopes2009-11-121-0/+37
| | | | | | quite tricky. llvm-svn: 86986
* Show command-line args and features passed into backend in debug output. ↵Sandeep Patel2009-11-111-0/+6
| | | | | | Approved by Evan Cheng. llvm-svn: 86797
* Add From arguments to StringRef search functions, and tweak doxyments.Daniel Dunbar2009-11-111-9/+24
| | | | | | Also, add unittests for find_first_of and find_first_not_of. llvm-svn: 86770
* Fix MemoryBuffer::getSTDIN to *not* return null if stdin is empty, this is a ↵Daniel Dunbar2009-11-101-16/+14
| | | | | | | | lame API. Also, Stringrefify some more MemoryBuffer functions, and add two performance FIXMEs. llvm-svn: 86630
* add zextOrTrunc and sextOrTrunc methods, that are similar to the ones in APIntNuno Lopes2009-11-091-0/+24
| | | | llvm-svn: 86549
* Make lib/Support/Debug.cpp SetCurrentDebugType implementation part of llvm ↵Xerxes Ranby2009-11-091-1/+1
| | | | | | namespace to match function declaration in Debug.h. llvm-svn: 86544
* Trailing whitespace.Mikhail Glushenkov2009-11-071-7/+7
| | | | llvm-svn: 86347
* Pass StringRef by value.Daniel Dunbar2009-11-063-14/+14
| | | | llvm-svn: 86251
* A value is only assigned to errno if NumRead equals -1, so doDuncan Sands2009-11-041-1/+1
| | | | | | not reason based on errno if NumRead has a different value. llvm-svn: 86046
* Make this code more robust by not thinking we are making progressDuncan Sands2009-11-031-1/+1
| | | | | | if zero bytes were read. llvm-svn: 85922
* add a new 'SetCurrentDebugType' API (requested by Andrew Haley for JITChris Lattner2009-10-281-0/+11
| | | | | | | stuff) to programmatically control the current debug flavor. While I'm at it, doxygenate Debug.h and clean it up. llvm-svn: 85395
* Remove getIEEEFloatParts and getIEEEDoubleParts. They are not needed.Evan Cheng2009-10-281-50/+0
| | | | llvm-svn: 85358
* Add new APFloat methods that return sign, exp, and mantissa of ieee float ↵Evan Cheng2009-10-271-12/+62
| | | | | | and double values. llvm-svn: 85318
* Move DataTypes.h to include/llvm/System, update all users. This breaks the lastChandler Carruth2009-10-261-1/+1
| | | | | | direct inclusion edge from System to Support. llvm-svn: 85086
* Commit fixes for half precision I noted in review, soDale Johannesen2009-10-231-3/+3
| | | | | | | they don't get lost; I don't think the originator has write access. llvm-svn: 84928
* Move UnescapeString to a static function for its sole client; its ↵Daniel Dunbar2009-10-171-30/+0
| | | | | | inefficient and broken. llvm-svn: 84358
* Remove llvm::EscapeString, raw_ostream::write_escaped is much faster.Daniel Dunbar2009-10-171-26/+0
| | | | llvm-svn: 84357
* Add raw_ostream::write_escaped, for writing escaped strings.Daniel Dunbar2009-10-171-0/+34
| | | | llvm-svn: 84355
* Move StringMap's string has function into StringExtras.hDaniel Dunbar2009-10-171-16/+3
| | | | llvm-svn: 84344
* Add half precision floating point support (float16) to APFloat,Chris Lattner2009-10-161-1/+69
| | | | | | patch by Peter Johnson! (PR5195) llvm-svn: 84239
* add haiku support, patch by Paul Davey!Chris Lattner2009-10-161-0/+3
| | | | llvm-svn: 84238
* r83391 was completely broken since Twines keep references to their inputs, andJeffrey Yasskin2009-10-061-4/+9
| | | | | | | some of the inputs were temporaries. Here's a real fix for the miscompilation. Thanks to sabre for pointing out the problem. llvm-svn: 83417
* Bugfix for the CommaSeparated option. The original code was adding the wholeNicolas Geoffray2009-10-061-0/+1
| | | | | | string at the end of the list, instead of the last comma-separated string. llvm-svn: 83405
* Fix PR5112, a miscompilation on gcc-4.0.3. Patch by Collin Winter!Jeffrey Yasskin2009-10-061-1/+4
| | | | llvm-svn: 83391
* Avoid using mutex locks if not in multithreaded mode by using a SmartScopedMutexTorok Edwin2009-09-271-2/+2
| | | | | | in RegisterStatistic. llvm-svn: 82896
* remove support for "NoSub" from regex. It seems like a minor optimizationChris Lattner2009-09-261-15/+12
| | | | | | and makes the API more annoying. Add a Regex::getNumMatches() method. llvm-svn: 82877
* add and document regex support for FileCheck. You can now do stuff like:Chris Lattner2009-09-241-2/+3
| | | | | | | | ; CHECK: movl {{%e[a-z][xi]}}, %eax or whatever. llvm-svn: 82717
* wrap long lines.Chris Lattner2009-09-241-2/+4
| | | | llvm-svn: 82715
OpenPOWER on IntegriCloud