summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
...
* convert 'Value' to StringRef which makes it easier to Chris Lattner2009-09-201-12/+8
| | | | | | maintain the "null is unspecified, empty is empty" semantics. llvm-svn: 82351
* Change CommaSeparated processing to do it with StringRef instead of ↵Chris Lattner2009-09-201-21/+26
| | | | | | | | temporary std::strings. This requires StringRef'izing ProvideOption which I also did. llvm-svn: 82350
* rewrite ParseCStringVector in terms of stringref.Chris Lattner2009-09-201-33/+22
| | | | llvm-svn: 82348
* move a couple non-trivial methods out of line, add new Chris Lattner2009-09-201-0/+71
| | | | | | find_first_of/find_first_of methods. llvm-svn: 82347
* coding style cleanupChris Lattner2009-09-201-13/+12
| | | | llvm-svn: 82346
* convert a bunch more stuff to use StringRef. The ArgName arguments are nowChris Lattner2009-09-201-28/+29
| | | | | | | | stringref because they may not be nul terminated. For options like -Lfoo this now avoids a O(n) temporary std::strings where N is the length of the string after -L. llvm-svn: 82345
* avoid a bunch of malloc thrashing for PositinoalVals by eliminatingChris Lattner2009-09-201-11/+9
| | | | | | a std::vector and a bunch of std::string temporaries. llvm-svn: 82341
* Avoid some temporary strings.Chris Lattner2009-09-191-19/+6
| | | | llvm-svn: 82339
* add some more overloads of StringRef::getAsInteger forChris Lattner2009-09-191-0/+45
| | | | | | common and useful integer types. llvm-svn: 82338
* provide a "strtoull" operation that works on StringRef's.Chris Lattner2009-09-191-0/+63
| | | | llvm-svn: 82322
* convert a bunch of std::strings to use StringRef. This should eliminateChris Lattner2009-09-191-48/+56
| | | | | | | a massive number of temporary strings created when parsing a command line. More still left to eliminate. llvm-svn: 82318
* Try to speed up the slowest parts of the CommandLine libraryBenjamin Kramer2009-09-191-28/+28
| | | | | | | | - Replace std::map<std::string with StringMap - Eliminate unnecessary std::string copies - ~10% speed-up for clang's testsuite on my machine (debug build) llvm-svn: 82312
* add a version of the APFloat constructor that initializes to 0.0Chris Lattner2009-09-171-0/+8
| | | | llvm-svn: 82110
* Add StringRef::{rfind, rsplit}Daniel Dunbar2009-09-162-0/+14
| | | | llvm-svn: 82087
* Drop the raw_ostream required buffer size to 1.Daniel Dunbar2009-09-151-2/+2
| | | | | | | - As best I can tell, we have eliminated all the code which used to require a larger buffer size. llvm-svn: 81912
* Update CMake files.Ted Kremenek2009-09-111-0/+1
| | | | llvm-svn: 81577
* Fix llvm-extract's "writing bitcode to a terminal" warning, which wasn'tDan Gohman2009-09-112-2/+5
| | | | | | | | | | | | | | | working. To support this, add an is_displayed() function to raw_ostream, and generalize Process::StandardOutIsDisplayed and friends in order to support it. Also, call RemoveFileOnSignal before creating a file instead of after, so that the file isn't left behind if the program is interrupted between when the file is created and RemoveFileOnSignal is called. While here, add a -S to llvm-extract and port it to IRReader so that it supports assembly input. llvm-svn: 81568
* canonicalize namespace gymnasticsChris Lattner2009-09-091-23/+20
| | | | llvm-svn: 81402
* Add comment re: clang dependency.Daniel Dunbar2009-09-091-0/+3
| | | | llvm-svn: 81393
* Added an abstract superclass, MCDisassembler, forSean Callanan2009-09-091-0/+37
| | | | | | | | | | | | | all disassemblers. Modified the MemoryObject to support 64-bit address spaces, regardless of the LLVM process's address width. Modified the Target class to allow extraction of a MCDisassembler. llvm-svn: 81392
* Make sure the memory range is writable before memset'ing it.Evan Cheng2009-09-091-0/+2
| | | | llvm-svn: 81308
* Add Triple::getArchTypeForDarwinArchName, which converts a "Darwin" architectureDaniel Dunbar2009-09-081-0/+34
| | | | | | | | name (e.g. "ppc") to the appropriate constant. Also, StringRefize additional Triple constructor. llvm-svn: 81274
* Improve JIT error message for users crazy enough to use -march with JIT, andDaniel Dunbar2009-09-081-1/+2
| | | | | | mention -version in messages about missing targets. llvm-svn: 81272
* Fix may-be-used-uninitialized warning.Daniel Dunbar2009-09-081-2/+2
| | | | llvm-svn: 81223
* Avoid warnings if assertions are off.Duncan Sands2009-09-061-0/+3
| | | | llvm-svn: 81127
* Remove some not-really-used variables, as warnedDuncan Sands2009-09-061-6/+9
| | | | | | about by icc (#593, partial). Patch by Erick Tryzelaar. llvm-svn: 81115
* More MSVC warning fixes:Benjamin Kramer2009-09-063-2/+5
| | | | | | | 1. DUPMAX is defined in regcomp.c, no need to redefine it in regutils. 2. MSVC doesn't like snprintf, use _snprintf instead. llvm-svn: 81114
* Remove splint hints to silence warnings from ICC and MSVC.Benjamin Kramer2009-09-061-2/+2
| | | | llvm-svn: 81108
* Remove some unused variables and methods warned about byDuncan Sands2009-09-061-2/+0
| | | | | | icc (#177, partial). Patch by Erick Tryzelaar. llvm-svn: 81106
* Show derived host triple in --version.Daniel Dunbar2009-09-021-0/+2
| | | | llvm-svn: 80855
* Update CMake files.Ted Kremenek2009-09-011-1/+1
| | | | llvm-svn: 80680
* Add triple parsing support for XCore.Richard Osborne2009-08-311-0/+2
| | | | llvm-svn: 80629
* Fix some possible-use-of-uninitialized warnings.Daniel Dunbar2009-08-301-2/+2
| | | | llvm-svn: 80515
* Add regular expression matching support, based on OpenBSD regexec()/regcomp()Torok Edwin2009-08-3014-0/+3647
| | | | | | implementation. llvm-svn: 80493
* Make LLVM command-line tools overwrite their output files without -f.Dan Gohman2009-08-251-6/+6
| | | | | | | | | | | | | | | | This is conventional command-line tool behavior. -f now just means "enable binary output on terminals". Add a -f option to llvm-extract and llvm-link, for consistency. Remove F_Force from raw_fd_ostream and enable overwriting and truncating by default. Introduce an F_Excl flag to permit users to enable a failure when the file already exists. This flag is currently unused. Update Makefiles and documentation accordingly. llvm-svn: 79990
* CMake: updated list of source files.Oscar Fuentes2009-08-251-0/+1
| | | | llvm-svn: 79959
* Add llvm::Triple::getArchTypePrefix for getting the intrinsic prefix for anDaniel Dunbar2009-08-241-0/+25
| | | | | | identifier architecture. llvm-svn: 79906
* Correctly account for the Spaces array nul terminator. Thanks Chris!Dan Gohman2009-08-241-2/+3
| | | | llvm-svn: 79894
* raw_ostream::indent is used for PadToColumn which often prints moreDan Gohman2009-08-241-3/+6
| | | | | | than 16 spaces. Make the Spaces array wide enough to handle common cases. llvm-svn: 79890
* split raw_os_ostream out to its own header and implementation file. ThisChris Lattner2009-08-242-14/+30
| | | | | | | means that raw_ostream no longer has to #include <iosfwd>. Nothing in llvm should use raw_os_ostream.h, but llvm-gcc and some unit tests do. llvm-svn: 79886
* prune the #includes in raw_ostream.h by moving a Chris Lattner2009-08-241-0/+8
| | | | | | | member out of line. ftostr is not particularly speedy, so that method is presumably not perf sensitive. llvm-svn: 79885
* Unbreak the build for HAVE_GV platforms.Dan Gohman2009-08-241-2/+2
| | | | llvm-svn: 79883
* CMake: Updated library dependencies and list of source files.Oscar Fuentes2009-08-231-1/+0
| | | | llvm-svn: 79876
* remove the dead std::ostream APInt inserterChris Lattner2009-08-231-8/+2
| | | | llvm-svn: 79875
* fix some problems with my last patch which happen when one ofChris Lattner2009-08-231-14/+11
| | | | | | | | (HAVE_GV && (HAVE_DOT || HAVE_FDP || HAVE_NEATO || \ HAVE_TWOPI || HAVE_CIRCO)) are true. llvm-svn: 79872
* Prune #includes from llvm/Linker.h and llvm/System/Path.h,Chris Lattner2009-08-232-2/+4
| | | | | | | | | | | | | | | | | | forcing them down into various .cpp files. This change also: 1. Renames TimeValue::toString() and Path::toString() to ::str() for similarity with the STL. 2. Removes all stream insertion support for sys::Path, forcing clients to call .str(). 3. Removes a use of Config/alloca.h from bugpoint, using smallvector instead. 4. Weans llvm-db off <iostream> sys::Path really needs to be gutted, but I don't have the desire to do it at this point. llvm-svn: 79869
* llvm/Support/Streams.h is now dead, zap it.Chris Lattner2009-08-231-30/+0
| | | | llvm-svn: 79865
* eliminate the ostream version of CheckBitcodeOutputToConsole,Chris Lattner2009-08-231-23/+6
| | | | | | | change the raw_ostream one to take the raw_ostream byref instead of byptr. Prune #includes, eliminate a use of Streams.h llvm-svn: 79863
* Fix off-by-one in llvm::Format::print.Daniel Dunbar2009-08-231-5/+5
| | | | | | | | | | | | | - This also shortens the Format.h implementation, and uses the print buffer fully (it was wasting a character). - This manifested as llvm-test failures, because one side effect was that raw_ostream would write garbage '\x00' values into the output stream if it happened that the string was at the end of the buffer. This meant that grep would report 'Binary file matches', which meant the silly pattern matching llvm-test eventually does would fail. Cute. :) llvm-svn: 79862
* clean up #includes.Chris Lattner2009-08-231-8/+4
| | | | llvm-svn: 79857
OpenPOWER on IntegriCloud