summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Kill off more cerr/cout uses and prune includes a bit.Benjamin Kramer2009-08-231-1/+0
| | | | llvm-svn: 79852
* Remove uses of Streams.h from CommandLine.cpp, fix some whitespace and other ↵Benjamin Kramer2009-08-231-39/+36
| | | | | | minor tweaks. llvm-svn: 79847
* Fix windows build.Benjamin Kramer2009-08-231-1/+1
| | | | llvm-svn: 79845
* Fix some refactos for iostream changes (in -Asserts mode).Daniel Dunbar2009-08-231-5/+5
| | | | | | - The world needs better C++ refactoring tools, can I get an Amen!? llvm-svn: 79843
* remove some uses of llvm/Support/Streams.hChris Lattner2009-08-235-110/+88
| | | | llvm-svn: 79842
* convert LoopInfo.h and GraphWriter.h to use raw_ostreamChris Lattner2009-08-231-16/+47
| | | | llvm-svn: 79836
* eliminate DOUT and make Debug.h not include Streams.h anymore, woo!Chris Lattner2009-08-231-40/+18
| | | | llvm-svn: 79835
* Change Pass::print to take a raw ostream instead of std::ostream,Chris Lattner2009-08-231-6/+1
| | | | | | update all code that this affects. llvm-svn: 79830
* Change raw_fd_ostream to take flags as an optional bitmask Chris Lattner2009-08-231-14/+24
| | | | | | | | | | | | | | | | instead of as two bools. Use this to add a F_Append flag which has the obvious behavior. Other unrelated changes conflated into this patch: 1. REmove EH stuff from llvm-dis and llvm-as, the try blocks are dead. 2. Simplify the filename inference code in llvm-as/llvm-dis, because raw_fd_ostream does the right thing with '-'. 3. Switch machine verifier to use raw_ostream instead of ostream (Which is the thing that needed append in the first place). llvm-svn: 79807
* switch formattedstream to use raw_ostream::indent. This eliminatesChris Lattner2009-08-221-10/+1
| | | | | | the weird MAX_COLUMN_PAD limitation. llvm-svn: 79785
* add a raw_ostream::indent method, to be used like:Chris Lattner2009-08-221-0/+17
| | | | | | | | OS.indent(i) << "whatever"; people seem to like indenting things ;-) llvm-svn: 79784
* Fix typo.Anton Korobeynikov2009-08-211-1/+1
| | | | llvm-svn: 79688
* Implement APInt <-> APFloat conversion for IEEE 128-bit floats.Anton Korobeynikov2009-08-211-3/+83
| | | | | | This fixes PR2555 llvm-svn: 79677
* Clean up the APInt function getDigit.Erick Tryzelaar2009-08-211-21/+19
| | | | llvm-svn: 79602
* Update error messages for '+'. Fix grammar and make the twoEric Christopher2009-08-211-4/+5
| | | | | | negative checks resemble each other. llvm-svn: 79595
* Fix trailing whitespace and 80-col violation.Eric Christopher2009-08-211-120/+121
| | | | llvm-svn: 79594
* Fix bug with APInt::getBitsNeeded with for base 10 numbers 0-9.Erick Tryzelaar2009-08-211-30/+42
| | | | llvm-svn: 79593
* Allow '+' to appear in APInt strings, and add more unit tests.Erick Tryzelaar2009-08-211-6/+11
| | | | llvm-svn: 79592
* Add support for including '+' in APFloat strings, more asserts,Erick Tryzelaar2009-08-201-28/+34
| | | | | | and many new unit tests. llvm-svn: 79574
* Add a comment explaining why llvm_unreachable_internal doesn't callDan Gohman2009-08-201-0/+3
| | | | | | the ErrorHandler callback. llvm-svn: 79541
* Fix two APFloat bugs in converting hexadecimal constants.Daniel Dunbar2009-08-201-2/+2
| | | | llvm-svn: 79540
* Add triple parsing support for TCE.Eli Friedman2009-08-191-0/+5
| | | | llvm-svn: 79461
* Switch to SmallString::str from SmallString::c_str, and removeDaniel Dunbar2009-08-192-5/+6
| | | | | | SmallString::c_str. llvm-svn: 79456
* Change raw_svector_ostream to reserve the input buffer if necessary, Ted wasDaniel Dunbar2009-08-191-3/+7
| | | | | | | | | | | | | right. - This class turns out to be much more convenient to use if we do this; clients can make sure the buffer is always big enough if they care (since our current idiom tends to be to use a SmallString<256> for the input to this we should generally be avoiding an unnecessary malloc). Also, add a convenience raw_svector_ostream::str method which flushes the buffer and returns a StringRef for the vector contents. llvm-svn: 79446
* Switch Twine::str() to use toVector(), which is now efficient.Daniel Dunbar2009-08-191-14/+4
| | | | llvm-svn: 79437
OpenPOWER on IntegriCloud