summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
* Recognize xscale as an ARM arch.Daniel Dunbar2009-08-181-1/+2
| | | | | | - Patch by Yonggang Luo. llvm-svn: 79315
* Add Triple matching for pic16 arch and solaris OS.Daniel Dunbar2009-08-181-2/+8
| | | | | | - Patch by Yonggang Luo. llvm-svn: 79314
* the MinPad argument to PadToColumn only really makes sense to be 1,Chris Lattner2009-08-171-4/+3
| | | | | | just remove the argument and replace it with 1. llvm-svn: 79246
* Modify APFloat to take a StringRef instead of a c string.Erick Tryzelaar2009-08-161-63/+106
| | | | | | | This also adds unit tests to APFloat that mainly tests the string handling of APFloat, but not much else of it's api. llvm-svn: 79210
* Mingw also doesn't have st_blksize.Dan Gohman2009-08-151-1/+1
| | | | llvm-svn: 79142
* Always check to see if raw_fd_ostream's file descriptor is attached toDan Gohman2009-08-151-13/+16
| | | | | | a terminal, not just when it's STDOUT_FILENO. llvm-svn: 79066
* Add support for column computation on unbuffered streams.Dan Gohman2009-08-151-15/+38
| | | | llvm-svn: 79065
* Move FormattedStream's write_impl out of line.Dan Gohman2009-08-151-0/+6
| | | | llvm-svn: 79064
* Remove an unnecessary #include.Dan Gohman2009-08-151-1/+0
| | | | llvm-svn: 79063
* fix "pc" to be lower case in a target triple, patch by Yonggang LuoChris Lattner2009-08-141-1/+1
| | | | llvm-svn: 79016
* When standard output is a terminal, set outs() to be unbuffered, toDan Gohman2009-08-131-1/+11
| | | | | | | | mimic the behavior of stdtout, which is line-buffered when the output is a terminal. This fixes some issues with bugpoint output appearing being printed out of order. llvm-svn: 78953
* Fix a compiler warning about comparing signed with unsigned.Dan Gohman2009-08-131-1/+1
| | | | llvm-svn: 78933
* Add an assert to check copy_to_buffer's precondition.Dan Gohman2009-08-131-0/+2
| | | | llvm-svn: 78926
* Set raw_os_ostream, raw_string_ostream, and raw_svector_ostream to beDan Gohman2009-08-131-12/+0
| | | | | | | | unbuffered. std::ostream does its own buffering, and std::string and SmallVector both have allocation strategies intended to handle frequent appending. llvm-svn: 78924
* Add support to raw_ostream for sizing the buffer according to theDan Gohman2009-08-131-2/+25
| | | | | | | needs of the underlying output mechanism. raw_fd_ostream now uses st_blksize from fstat to determine a buffer size. llvm-svn: 78923
* Move SetBufferSize and SetUnbuffered out of line.Dan Gohman2009-08-131-0/+20
| | | | llvm-svn: 78909
* Fix the buffer handling logic so that write_impl is always called withDan Gohman2009-08-131-20/+25
| | | | | | | a full buffer, rather than often being called with a slightly-less-than-full buffer. llvm-svn: 78907
* Convert APint::{fromString,APInt,getBitsNeeded} to use StringRef.Daniel Dunbar2009-08-131-17/+22
| | | | | | - Patch by Erick Tryzelaar, with some edits (and a bug fix) from me. llvm-svn: 78885
* This void is implicit in C++.Dan Gohman2009-08-121-1/+1
| | | | llvm-svn: 78848
* Add attempted idiotproofing comment per review.Dale Johannesen2009-08-121-1/+2
| | | | llvm-svn: 78825
* Fix a nondeterministic bug in APInt::roundToDouble;Dale Johannesen2009-08-121-2/+2
| | | | | | | | when !isSingleWord() but getActiveBits() is small, we were using the pointer value instead of the low word of the integer value. llvm-svn: 78821
* the x86 version of the name is x86-64, not x86_64. Handle this properlyChris Lattner2009-08-121-1/+1
| | | | | | in getArchTypeForLLVMName. llvm-svn: 78799
* add support for mingw64 target triples.Chris Lattner2009-08-121-0/+3
| | | | llvm-svn: 78797
* add a couple of helpers to the Triple class for decodingChris Lattner2009-08-121-0/+65
| | | | | | | | the darwin version string. This should help consolidate the variety of weird functions we have scattered around the codebase that do stuff like this. llvm-svn: 78792
* add a trivial line # cache to SourceMgr to make repeated queries toChris Lattner2009-08-111-0/+40
| | | | | | FindLineNumber much faster when in sequence. llvm-svn: 78693
* Add support for a user supplied pointer argument to llvm_install_error_handler.Daniel Dunbar2009-08-101-2/+6
| | | | llvm-svn: 78553
* Fix FindExecutable to use sys::Path::GetMainExecutable instead ofDan Gohman2009-08-051-15/+8
| | | | | | | | | | | | | just argv[0]. And remove the code for searching the current working directory and for searching PATH; the point of FindExecutable is not to find whatever version of the executable can be found by searching around, but to find an executable that accompanies the current executable. Update the tools to use sys::Program::FindProgramByName when they want PATH searching. llvm-svn: 78240
* cerr isn't buffered so it doesn't need to be flushed.Dan Gohman2009-08-051-3/+3
| | | | llvm-svn: 78135
* Remove now unused arguments from TargetRegistry::lookupTarget.Daniel Dunbar2009-08-031-14/+11
| | | | llvm-svn: 77950
* Pass target triple string in to TargetMachine constructor.Daniel Dunbar2009-08-031-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | This is not just a matter of passing in the target triple from the module; currently backends are making decisions based on the build and host architecture. The goal is to migrate to making these decisions based off of the triple (in conjunction with the feature string). Thus most clients pass in the target triple, or the host triple if that is empty. This has one important change in the way behavior of the JIT and llc. For the JIT, it was previously selecting the Target based on the host (naturally), but it was setting the target machine features based on the triple from the module. Now it is setting the target machine features based on the triple of the host. For LLC, -march was previously only used to select the target, the target machine features were initialized from the module's triple (which may have been empty). Now the target triple is taken from the module, or the host's triple is used if that is empty. Then the triple is adjusted to match -march. The take away is that -march for llc is now used in conjunction with the host triple to initialize the subtarget. If users want more deterministic behavior from llc, they should use -mtriple, or set the triple in the input module. llvm-svn: 77946
* Analog Devices Blackfin back-end.Jakob Stoklund Olesen2009-08-021-0/+3
| | | | | | | | | | | | | | Generate code for the Blackfin family of DSPs from Analog Devices: http://www.analog.com/en/embedded-processing-dsp/blackfin/processors/index.html We aim to be compatible with the exsisting GNU toolchain found at: http://blackfin.uclinux.org/gf/project/toolchain The back-end is experimental. llvm-svn: 77897
* Remove duplicated colons and spaces.Benjamin Kramer2009-08-021-15/+15
| | | | llvm-svn: 77892
* Add missing flush().Daniel Dunbar2009-08-021-0/+3
| | | | llvm-svn: 77859
* Update CMake files.Ted Kremenek2009-07-311-1/+0
| | | | llvm-svn: 77709
* Remove Annotation.h, which is no longer used in the LLVM tree.Dan Gohman2009-07-311-130/+0
| | | | llvm-svn: 77706
* Twine: Directly support int, long, and long long types.Daniel Dunbar2009-07-301-17/+29
| | | | | | - This should resolve Cygwin gcc ambiguities. llvm-svn: 77624
* Twine: Use raw_ostream::write_hex, remove unused itohexstr method.Daniel Dunbar2009-07-301-2/+1
| | | | llvm-svn: 77617
* Add raw_ostream::write_hexDaniel Dunbar2009-07-301-4/+7
| | | | llvm-svn: 77614
* Twine: Provide [u]int{32,64} conversions via implicit constructors instead ofDaniel Dunbar2009-07-301-6/+18
| | | | | | explicitly. llvm-svn: 77576
* Perform simplification noticed by Reid.Daniel Dunbar2009-07-291-4/+0
| | | | llvm-svn: 77477
* Re-apply previous changes and improve column padding performance some more.David Greene2009-07-291-17/+21
| | | | llvm-svn: 77461
* Twines: Support numeric conversion directly (uitostr, etc).Daniel Dunbar2009-07-291-11/+37
| | | | | | | | | | | | | | | - Provides static constructors for doing number to string conversions without using temporaries. - There are several ways to do this, I think given the Twine constraints this is the simplest one. - One FIXME for fast number -> hex conversion. - Added another comment on one last major bit of perf work Twines need, which is to make raw_svector_ostream more efficient. llvm-svn: 77445
* raw_ostream: Follow the 32-bit path when printing "small" decimal numbers.Daniel Dunbar2009-07-291-0/+4
| | | | llvm-svn: 77444
* Revert r77397, it causes significant regressions in llc performance.Daniel Dunbar2009-07-291-9/+4
| | | | llvm-svn: 77425
* Improve performance of PadToColumn by eliminating flushes.David Greene2009-07-281-4/+9
| | | | llvm-svn: 77397
* Make raw_null_ostream flush its buffer in its destructor, so thatDan Gohman2009-07-271-0/+9
| | | | | | | it conforms to the assertion added in r77245. This fixes a failure in qa_override.c in clang's testsuite. llvm-svn: 77255
* Add an assertion check to raw_ostream's destructor to verifyDan Gohman2009-07-271-0/+5
| | | | | | that the subclass hasn't left any pending data in the buffer. llvm-svn: 77245
* Sort list of targets in --version.Daniel Dunbar2009-07-261-8/+11
| | | | llvm-svn: 77127
* Oops, forgot XCore. Sorry XCore!Daniel Dunbar2009-07-261-2/+3
| | | | llvm-svn: 77125
* Update for API change.Daniel Dunbar2009-07-261-6/+46
| | | | llvm-svn: 77124
OpenPOWER on IntegriCloud