Edward O'Callaghan
							
						 
						
							 
							
							
							
							
								
							
							
								e3f3ca70e6 
								
							 
						 
						
							
							
								
								Add PSP OS Target to Triple, Credit to Bruno Cardoso Lopes.  
							
							 
							
							... 
							
							
							
							llvm-svn: 88849 
							
						 
						
							2009-11-15 10:18:17 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								d90a9a04f3 
								
							 
						 
						
							
							
								
								Report the detected host CPU in --version.  
							
							 
							
							... 
							
							
							
							llvm-svn: 88813 
							
						 
						
							2009-11-14 21:36:07 +00:00  
						
					 
				
					
						
							
							
								 
								Rafael Espindola
							
						 
						
							 
							
							
							
							
								
							
							
								ff2c72b858 
								
							 
						 
						
							
							
								
								Distinguish "a," from "a". The first one splits into "a" + "" and the second one into  
							
							 
							
							... 
							
							
							
							"a" + 0.
llvm-svn: 87084 
							
						 
						
							2009-11-13 04:55:09 +00:00  
						
					 
				
					
						
							
							
								 
								Rafael Espindola
							
						 
						
							 
							
							
							
							
								
							
							
								7c6854995d 
								
							 
						 
						
							
							
								
								Switch to smallvector. Also fix issue with using unsigend for MaxSplit.  
							
							 
							
							... 
							
							
							
							llvm-svn: 87068 
							
						 
						
							2009-11-13 02:18:25 +00:00  
						
					 
				
					
						
							
							
								 
								Rafael Espindola
							
						 
						
							 
							
							
							
							
								
							
							
								d554e44092 
								
							 
						 
						
							
							
								
								Add a new split method to StringRef that puts the substrings in a vector.  
							
							 
							
							... 
							
							
							
							llvm-svn: 87058 
							
						 
						
							2009-11-13 01:24:40 +00:00  
						
					 
				
					
						
							
							
								 
								Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								68e4945c03 
								
							 
						 
						
							
							
								
								Add compare_lower and equals_lower methods to StringRef. Switch all users of  
							
							 
							
							... 
							
							
							
							StringsEqualNoCase (from StringExtras.h) to it.
llvm-svn: 87020 
							
						 
						
							2009-11-12 20:36:59 +00:00  
						
					 
				
					
						
							
							
								 
								Nuno Lopes
							
						 
						
							 
							
							
							
							
								
							
							
								f8fcac7470 
								
							 
						 
						
							
							
								
								fix crash in my previous patch  
							
							 
							
							... 
							
							
							
							llvm-svn: 86987 
							
						 
						
							2009-11-12 15:10:33 +00:00  
						
					 
				
					
						
							
							
								 
								Nuno Lopes
							
						 
						
							 
							
							
							
							
								
							
							
								60d5b1cfdb 
								
							 
						 
						
							
							
								
								implement shl, ashr, and lshr methods. shl is not fully implemented as it is quite tricky.  
							
							 
							
							... 
							
							
							
							llvm-svn: 86986 
							
						 
						
							2009-11-12 14:53:53 +00:00  
						
					 
				
					
						
							
							
								 
								Sandeep Patel
							
						 
						
							 
							
							
							
							
								
							
							
								598825e832 
								
							 
						 
						
							
							
								
								Show command-line args and features passed into backend in debug output. Approved by Evan Cheng.  
							
							 
							
							... 
							
							
							
							llvm-svn: 86797 
							
						 
						
							2009-11-11 03:23:46 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								9806e4ab20 
								
							 
						 
						
							
							
								
								Add From arguments to StringRef search functions, and tweak doxyments.  
							
							 
							
							... 
							
							
							
							Also, add unittests for find_first_of and find_first_not_of.
llvm-svn: 86770 
							
						 
						
							2009-11-11 00:28:53 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								124fc5e252 
								
							 
						 
						
							
							
								
								Fix MemoryBuffer::getSTDIN to *not* return null if stdin is empty, this is a lame API.  
							
							 
							
							... 
							
							
							
							Also, Stringrefify some more MemoryBuffer functions, and add two performance FIXMEs.
llvm-svn: 86630 
							
						 
						
							2009-11-10 00:43:58 +00:00  
						
					 
				
					
						
							
							
								 
								Nuno Lopes
							
						 
						
							 
							
							
							
							
								
							
							
								640eb70bee 
								
							 
						 
						
							
							
								
								add zextOrTrunc and sextOrTrunc methods, that are similar to the ones in APInt  
							
							 
							
							... 
							
							
							
							llvm-svn: 86549 
							
						 
						
							2009-11-09 15:36:28 +00:00  
						
					 
				
					
						
							
							
								 
								Xerxes Ranby
							
						 
						
							 
							
							
							
							
								
							
							
								7c16a89ebf 
								
							 
						 
						
							
							
								
								Make lib/Support/Debug.cpp SetCurrentDebugType implementation part of llvm namespace to match function declaration in Debug.h.  
							
							 
							
							... 
							
							
							
							llvm-svn: 86544 
							
						 
						
							2009-11-09 14:50:34 +00:00  
						
					 
				
					
						
							
							
								 
								Mikhail Glushenkov
							
						 
						
							 
							
							
							
							
								
							
							
								358607dfa3 
								
							 
						 
						
							
							
								
								Trailing whitespace.  
							
							 
							
							... 
							
							
							
							llvm-svn: 86347 
							
						 
						
							2009-11-07 06:33:12 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								ad36e8aceb 
								
							 
						 
						
							
							
								
								Pass StringRef by value.  
							
							 
							
							... 
							
							
							
							llvm-svn: 86251 
							
						 
						
							2009-11-06 10:58:06 +00:00  
						
					 
				
					
						
							
							
								 
								Duncan Sands
							
						 
						
							 
							
							
							
							
								
							
							
								d732f396a2 
								
							 
						 
						
							
							
								
								A value is only assigned to errno if NumRead equals -1, so do  
							
							 
							
							... 
							
							
							
							not reason based on errno if NumRead has a different value.
llvm-svn: 86046 
							
						 
						
							2009-11-04 20:50:23 +00:00  
						
					 
				
					
						
							
							
								 
								Duncan Sands
							
						 
						
							 
							
							
							
							
								
							
							
								4afa0838d7 
								
							 
						 
						
							
							
								
								Make this code more robust by not thinking we are making progress  
							
							 
							
							... 
							
							
							
							if zero bytes were read.
llvm-svn: 85922 
							
						 
						
							2009-11-03 19:10:22 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								fbaac77c70 
								
							 
						 
						
							
							
								
								add a new 'SetCurrentDebugType' API (requested by Andrew Haley for JIT  
							
							 
							
							... 
							
							
							
							stuff) to programmatically control the current debug flavor.  While 
I'm at it, doxygenate Debug.h and clean it up.
llvm-svn: 85395 
							
						 
						
							2009-10-28 15:32:19 +00:00  
						
					 
				
					
						
							
							
								 
								Evan Cheng
							
						 
						
							 
							
							
							
							
								
							
							
								deab9dee12 
								
							 
						 
						
							
							
								
								Remove getIEEEFloatParts and getIEEEDoubleParts. They are not needed.  
							
							 
							
							... 
							
							
							
							llvm-svn: 85358 
							
						 
						
							2009-10-28 01:08:17 +00:00  
						
					 
				
					
						
							
							
								 
								Evan Cheng
							
						 
						
							 
							
							
							
							
								
							
							
								67c902147e 
								
							 
						 
						
							
							
								
								Add new APFloat methods that return sign, exp, and mantissa of ieee float and double values.  
							
							 
							
							... 
							
							
							
							llvm-svn: 85318 
							
						 
						
							2009-10-27 21:35:42 +00:00  
						
					 
				
					
						
							
							
								 
								Chandler Carruth
							
						 
						
							 
							
							
							
							
								
							
							
								56869f22c4 
								
							 
						 
						
							
							
								
								Move DataTypes.h to include/llvm/System, update all users. This breaks the last  
							
							 
							
							... 
							
							
							
							direct inclusion edge from System to Support.
llvm-svn: 85086 
							
						 
						
							2009-10-26 01:35:46 +00:00  
						
					 
				
					
						
							
							
								 
								Dale Johannesen
							
						 
						
							 
							
							
							
							
								
							
							
								0d670b5b92 
								
							 
						 
						
							
							
								
								Commit fixes for half precision I noted in review, so  
							
							 
							
							... 
							
							
							
							they don't get lost; I don't think the originator has
write access.
llvm-svn: 84928 
							
						 
						
							2009-10-23 04:02:51 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								04f049f2f5 
								
							 
						 
						
							
							
								
								Move UnescapeString to a static function for its sole client; its inefficient and broken.  
							
							 
							
							... 
							
							
							
							llvm-svn: 84358 
							
						 
						
							2009-10-17 20:43:42 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								59449581b2 
								
							 
						 
						
							
							
								
								Remove llvm::EscapeString, raw_ostream::write_escaped is much faster.  
							
							 
							
							... 
							
							
							
							llvm-svn: 84357 
							
						 
						
							2009-10-17 20:43:29 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								4108c43fd1 
								
							 
						 
						
							
							
								
								Add raw_ostream::write_escaped, for writing escaped strings.  
							
							 
							
							... 
							
							
							
							llvm-svn: 84355 
							
						 
						
							2009-10-17 20:43:08 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								77668004c4 
								
							 
						 
						
							
							
								
								Move StringMap's string has function into StringExtras.h  
							
							 
							
							... 
							
							
							
							llvm-svn: 84344 
							
						 
						
							2009-10-17 18:21:06 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								4794b2b27b 
								
							 
						 
						
							
							
								
								Add half precision floating point support (float16) to APFloat,  
							
							 
							
							... 
							
							
							
							patch by Peter Johnson! (PR5195)
llvm-svn: 84239 
							
						 
						
							2009-10-16 02:13:51 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								27f2049305 
								
							 
						 
						
							
							
								
								add haiku support, patch by Paul Davey!  
							
							 
							
							... 
							
							
							
							llvm-svn: 84238 
							
						 
						
							2009-10-16 02:06:30 +00:00  
						
					 
				
					
						
							
							
								 
								Jeffrey Yasskin
							
						 
						
							 
							
							
							
							
								
							
							
								e2595b5be6 
								
							 
						 
						
							
							
								
								r83391 was completely broken since Twines keep references to their inputs, and  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2009-10-06 21:45:26 +00:00  
						
					 
				
					
						
							
							
								 
								Nicolas Geoffray
							
						 
						
							 
							
							
							
							
								
							
							
								08506ee6b0 
								
							 
						 
						
							
							
								
								Bugfix for the CommaSeparated option. The original code was adding the whole  
							
							 
							
							... 
							
							
							
							string at the end of the list, instead of the last comma-separated string.
llvm-svn: 83405 
							
						 
						
							2009-10-06 19:55:53 +00:00  
						
					 
				
					
						
							
							
								 
								Jeffrey Yasskin
							
						 
						
							 
							
							
							
							
								
							
							
								92e3a06623 
								
							 
						 
						
							
							
								
								Fix PR5112, a miscompilation on gcc-4.0.3.  Patch by Collin Winter!  
							
							 
							
							... 
							
							
							
							llvm-svn: 83391 
							
						 
						
							2009-10-06 17:25:50 +00:00  
						
					 
				
					
						
							
							
								 
								Torok Edwin
							
						 
						
							 
							
							
							
							
								
							
							
								819d15c7d9 
								
							 
						 
						
							
							
								
								Avoid using mutex locks if not in multithreaded mode by using a SmartScopedMutex  
							
							 
							
							... 
							
							
							
							in RegisterStatistic.
llvm-svn: 82896 
							
						 
						
							2009-09-27 11:08:03 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								37d8015dc1 
								
							 
						 
						
							
							
								
								remove support for "NoSub" from regex.  It seems like a minor optimization  
							
							 
							
							... 
							
							
							
							and makes the API more annoying.  Add a Regex::getNumMatches() method.
llvm-svn: 82877 
							
						 
						
							2009-09-26 21:27:04 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								f08d2db928 
								
							 
						 
						
							
							
								
								add and document regex support for FileCheck.  You can now do stuff like:  
							
							 
							
							... 
							
							
							
							; CHECK: movl {{%e[a-z][xi]}}, %eax
or whatever.
llvm-svn: 82717 
							
						 
						
							2009-09-24 21:47:32 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								688f991b38 
								
							 
						 
						
							
							
								
								wrap long lines.  
							
							 
							
							... 
							
							
							
							llvm-svn: 82715 
							
						 
						
							2009-09-24 21:44:20 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								1ce83629df 
								
							 
						 
						
							
							
								
								tidy up, fix a memory leak in Regex::isValid  
							
							 
							
							... 
							
							
							
							llvm-svn: 82707 
							
						 
						
							2009-09-24 20:15:51 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								4e37f877b5 
								
							 
						 
						
							
							
								
								reapply r82348 with a fix, thanks Jeffrey.  
							
							 
							
							... 
							
							
							
							llvm-svn: 82683 
							
						 
						
							2009-09-24 05:38:36 +00:00  
						
					 
				
					
						
							
							
								 
								Jeffrey Yasskin
							
						 
						
							 
							
							
							
							
								
							
							
								a75d6bf3a8 
								
							 
						 
						
							
							
								
								Roll back r82348, which introduced an infinite loop in ParseCStringVector() that  
							
							 
							
							... 
							
							
							
							a trivial unittest would have caught.  This revision also adds the trivial
unittest.
llvm-svn: 82675 
							
						 
						
							2009-09-24 01:14:07 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								78faee0664 
								
							 
						 
						
							
							
								
								Switch FoldingSet::AddString to StringRef based API.  
							
							 
							
							... 
							
							
							
							- This also fixes a dereference of std::string::end, which makes MSVC unhappy and was causing all the static analyzer clang tests to fail.
llvm-svn: 82517 
							
						 
						
							2009-09-22 03:34:53 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								c827d9ee0e 
								
							 
						 
						
							
							
								
								Workaround what I believe is an MSVC bug where it emits a definition for a  
							
							 
							
							... 
							
							
							
							static const class member into each translation unit, with external linkage???
 - If someone understands this issue better, please clue me in, I haven't
   consulted the standard yet.
llvm-svn: 82516 
							
						 
						
							2009-09-22 03:34:40 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								5a3a854205 
								
							 
						 
						
							
							
								
								simplify as daniel suggests  
							
							 
							
							... 
							
							
							
							llvm-svn: 82415 
							
						 
						
							2009-09-20 22:56:43 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								78f908c877 
								
							 
						 
						
							
							
								
								tidy up  
							
							 
							
							... 
							
							
							
							llvm-svn: 82384 
							
						 
						
							2009-09-20 07:16:54 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								56efff07f5 
								
							 
						 
						
							
							
								
								smallvectorize getExtraOptionNames  
							
							 
							
							... 
							
							
							
							llvm-svn: 82377 
							
						 
						
							2009-09-20 06:21:43 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								131dca9c48 
								
							 
						 
						
							
							
								
								minor cleanups.  
							
							 
							
							... 
							
							
							
							llvm-svn: 82375 
							
						 
						
							2009-09-20 06:18:38 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								00f53807c3 
								
							 
						 
						
							
							
								
								strength reduce further StringRef-> const char*, saving another 620 bytes.  
							
							 
							
							... 
							
							
							
							llvm-svn: 82372 
							
						 
						
							2009-09-20 05:53:47 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								b1f2e101db 
								
							 
						 
						
							
							
								
								switch an std::string to StringRef, shaving 400 bytes off CommandLine.o  
							
							 
							
							... 
							
							
							
							llvm-svn: 82370 
							
						 
						
							2009-09-20 05:48:01 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								6ec8caf003 
								
							 
						 
						
							
							
								
								the switch from std::map -> StringMap caused --help output to be in  
							
							 
							
							... 
							
							
							
							non-sorted order, restore the sort.
llvm-svn: 82368 
							
						 
						
							2009-09-20 05:37:24 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								8d0309daa0 
								
							 
						 
						
							
							
								
								eliminate the duplicate detection loop, moving it into the loop that populates the Opts vector in the first place.  
							
							 
							
							... 
							
							
							
							llvm-svn: 82367 
							
						 
						
							2009-09-20 05:22:52 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								64dbb5ca5a 
								
							 
						 
						
							
							
								
								Eliminate a masochistic "algorithm" loop, shrinking CommandLine.o from 71524->70700 bytes.  
							
							 
							
							... 
							
							
							
							llvm-svn: 82366 
							
						 
						
							2009-09-20 05:18:28 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								28610b9878 
								
							 
						 
						
							
							
								
								don't use count + insert, just do insert + failure.  Also, instead of deleting from  
							
							 
							
							... 
							
							
							
							the middle of a vector, swap the last element in and pop_back.  Also saves 330 bytes :)
llvm-svn: 82365 
							
						 
						
							2009-09-20 05:15:12 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								41f8b0b7a6 
								
							 
						 
						
							
							
								
								switch to SmallPtrSet instead of std::set, saving 1K from the  
							
							 
							
							... 
							
							
							
							release-asserts .o file (72900->71856).
llvm-svn: 82364 
							
						 
						
							2009-09-20 05:12:14 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								f74e28abfa 
								
							 
						 
						
							
							
								
								change an std::sort to an array_pod_sort call, shrinking CommandLine.o by 9%.  
							
							 
							
							... 
							
							
							
							llvm-svn: 82363 
							
						 
						
							2009-09-20 05:06:23 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								e7c1e210c7 
								
							 
						 
						
							
							
								
								Several changes together in a murky mess:  
							
							 
							
							... 
							
							
							
							1. Change some "\n" -> '\n'.
2. eliminte some std::string's by using raw_ostream::indent.
3. move a bunch of code out of the main arg parser routine into
   a new static HandlePrefixedOrGroupedOption function.
4. Greatly simplify the implementation of getOptionPred, and make
   it avoid splitting prefix options at = when that doesn't match
   a non-prefix option.
llvm-svn: 82362 
							
						 
						
							2009-09-20 05:03:30 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								ecbb126e34 
								
							 
						 
						
							
							
								
								Fix refacto, this code was expecting to stride past the argument prefix.  
							
							 
							
							... 
							
							
							
							llvm-svn: 82360 
							
						 
						
							2009-09-20 04:03:41 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								7d6781b0fe 
								
							 
						 
						
							
							
								
								Tabs -> spaces, and remove trailing whitespace.  
							
							 
							
							... 
							
							
							
							llvm-svn: 82355 
							
						 
						
							2009-09-20 02:20:51 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								5a3fa4ef33 
								
							 
						 
						
							
							
								
								convert argname to StringRef, simplifying LookupOption.  
							
							 
							
							... 
							
							
							
							llvm-svn: 82352 
							
						 
						
							2009-09-20 02:02:24 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								0a40a975dd 
								
							 
						 
						
							
							
								
								convert 'Value' to StringRef which makes it easier to  
							
							 
							
							... 
							
							
							
							maintain the "null is unspecified, empty is empty" semantics.
llvm-svn: 82351 
							
						 
						
							2009-09-20 01:53:12 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								40fef8032e 
								
							 
						 
						
							
							
								
								Change CommaSeparated processing to do it with StringRef instead of temporary std::strings.  
							
							 
							
							... 
							
							
							
							This requires StringRef'izing ProvideOption which I also did.
llvm-svn: 82350 
							
						 
						
							2009-09-20 01:49:31 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								77c2724360 
								
							 
						 
						
							
							
								
								rewrite ParseCStringVector in terms of stringref.  
							
							 
							
							... 
							
							
							
							llvm-svn: 82348 
							
						 
						
							2009-09-20 01:33:46 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								372a8ae403 
								
							 
						 
						
							
							
								
								move a couple non-trivial methods out of line, add new  
							
							 
							
							... 
							
							
							
							find_first_of/find_first_of methods.
llvm-svn: 82347 
							
						 
						
							2009-09-20 01:22:16 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								1b88fbdaa3 
								
							 
						 
						
							
							
								
								coding style cleanup  
							
							 
							
							... 
							
							
							
							llvm-svn: 82346 
							
						 
						
							2009-09-20 01:11:23 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								3b8adaf488 
								
							 
						 
						
							
							
								
								convert a bunch more stuff to use StringRef.  The ArgName arguments are now  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2009-09-20 00:40:49 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								ca2552d9f9 
								
							 
						 
						
							
							
								
								avoid a bunch of malloc thrashing for PositinoalVals by eliminating  
							
							 
							
							... 
							
							
							
							a std::vector and a bunch of std::string temporaries.
llvm-svn: 82341 
							
						 
						
							2009-09-20 00:07:40 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								fa9c6f43a0 
								
							 
						 
						
							
							
								
								Avoid some temporary strings.  
							
							 
							
							... 
							
							
							
							llvm-svn: 82339 
							
						 
						
							2009-09-19 23:59:02 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								84c1527b6b 
								
							 
						 
						
							
							
								
								add some more overloads of StringRef::getAsInteger for  
							
							 
							
							... 
							
							
							
							common and useful integer types.
llvm-svn: 82338 
							
						 
						
							2009-09-19 23:58:48 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								68ee70035e 
								
							 
						 
						
							
							
								
								provide a "strtoull" operation that works on StringRef's.  
							
							 
							
							... 
							
							
							
							llvm-svn: 82322 
							
						 
						
							2009-09-19 19:47:14 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								aecd74d895 
								
							 
						 
						
							
							
								
								convert a bunch of std::strings to use StringRef.  This should eliminate  
							
							 
							
							... 
							
							
							
							a massive number of temporary strings created when parsing a command line.
More still left to eliminate.
llvm-svn: 82318 
							
						 
						
							2009-09-19 18:55:05 +00:00  
						
					 
				
					
						
							
							
								 
								Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								543d9b2fba 
								
							 
						 
						
							
							
								
								Try to speed up the slowest parts of the CommandLine library  
							
							 
							
							... 
							
							
							
							- 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 
							
						 
						
							2009-09-19 10:01:45 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								ac6271e3f4 
								
							 
						 
						
							
							
								
								add a version of the APFloat constructor that initializes to 0.0  
							
							 
							
							... 
							
							
							
							llvm-svn: 82110 
							
						 
						
							2009-09-17 01:08:43 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								4498168753 
								
							 
						 
						
							
							
								
								Add StringRef::{rfind, rsplit}  
							
							 
							
							... 
							
							
							
							llvm-svn: 82087 
							
						 
						
							2009-09-16 22:38:48 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								316b4a0206 
								
							 
						 
						
							
							
								
								Drop the raw_ostream required buffer size to 1.  
							
							 
							
							... 
							
							
							
							- As best I can tell, we have eliminated all the code which used to require a
   larger buffer size.
llvm-svn: 81912 
							
						 
						
							2009-09-15 20:31:46 +00:00  
						
					 
				
					
						
							
							
								 
								Ted Kremenek
							
						 
						
							 
							
							
							
							
								
							
							
								c74e09f654 
								
							 
						 
						
							
							
								
								Update CMake files.  
							
							 
							
							... 
							
							
							
							llvm-svn: 81577 
							
						 
						
							2009-09-11 21:49:45 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								e592923603 
								
							 
						 
						
							
							
								
								Fix llvm-extract's "writing bitcode to a terminal" warning, which wasn't  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2009-09-11 20:46:33 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								d747a9f21f 
								
							 
						 
						
							
							
								
								canonicalize namespace gymnastics  
							
							 
							
							... 
							
							
							
							llvm-svn: 81402 
							
						 
						
							2009-09-09 23:46:42 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								aec990efd7 
								
							 
						 
						
							
							
								
								Add comment re: clang dependency.  
							
							 
							
							... 
							
							
							
							llvm-svn: 81393 
							
						 
						
							2009-09-09 23:01:25 +00:00  
						
					 
				
					
						
							
							
								 
								Sean Callanan
							
						 
						
							 
							
							
							
							
								
							
							
								1358fb7feb 
								
							 
						 
						
							
							
								
								Added an abstract superclass, MCDisassembler, for  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2009-09-09 22:49:13 +00:00  
						
					 
				
					
						
							
							
								 
								Evan Cheng
							
						 
						
							 
							
							
							
							
								
							
							
								49adbf42b1 
								
							 
						 
						
							
							
								
								Make sure the memory range is writable before memset'ing it.  
							
							 
							
							... 
							
							
							
							llvm-svn: 81308 
							
						 
						
							2009-09-09 01:45:24 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								a8597a3749 
								
							 
						 
						
							
							
								
								Add Triple::getArchTypeForDarwinArchName, which converts a "Darwin" architecture  
							
							 
							
							... 
							
							
							
							name (e.g. "ppc") to the appropriate constant.
Also, StringRefize additional Triple constructor.
llvm-svn: 81274 
							
						 
						
							2009-09-08 23:32:51 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								6119d878bb 
								
							 
						 
						
							
							
								
								Improve JIT error message for users crazy enough to use -march with JIT, and  
							
							 
							
							... 
							
							
							
							mention -version in messages about missing targets.
llvm-svn: 81272 
							
						 
						
							2009-09-08 23:32:35 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								6e4ed8ca5f 
								
							 
						 
						
							
							
								
								Fix may-be-used-uninitialized warning.  
							
							 
							
							... 
							
							
							
							llvm-svn: 81223 
							
						 
						
							2009-09-08 16:14:54 +00:00  
						
					 
				
					
						
							
							
								 
								Duncan Sands
							
						 
						
							 
							
							
							
							
								
							
							
								6c643bd25d 
								
							 
						 
						
							
							
								
								Avoid warnings if assertions are off.  
							
							 
							
							... 
							
							
							
							llvm-svn: 81127 
							
						 
						
							2009-09-06 19:28:38 +00:00  
						
					 
				
					
						
							
							
								 
								Duncan Sands
							
						 
						
							 
							
							
							
							
								
							
							
								89720bbd11 
								
							 
						 
						
							
							
								
								Remove some not-really-used variables, as warned  
							
							 
							
							... 
							
							
							
							about by icc (#593 , partial).  Patch by Erick Tryzelaar.
llvm-svn: 81115 
							
						 
						
							2009-09-06 12:41:19 +00:00  
						
					 
				
					
						
							
							
								 
								Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								2b37efaf53 
								
							 
						 
						
							
							
								
								More MSVC warning fixes:  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2009-09-06 12:26:28 +00:00  
						
					 
				
					
						
							
							
								 
								Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								0e098e9df7 
								
							 
						 
						
							
							
								
								Remove splint hints to silence warnings from ICC and MSVC.  
							
							 
							
							... 
							
							
							
							llvm-svn: 81108 
							
						 
						
							2009-09-06 09:29:39 +00:00  
						
					 
				
					
						
							
							
								 
								Duncan Sands
							
						 
						
							 
							
							
							
							
								
							
							
								2fbeaf084f 
								
							 
						 
						
							
							
								
								Remove some unused variables and methods warned about by  
							
							 
							
							... 
							
							
							
							icc (#177 , partial).  Patch by Erick Tryzelaar.
llvm-svn: 81106 
							
						 
						
							2009-09-06 08:33:48 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								fc39586b4f 
								
							 
						 
						
							
							
								
								Show derived host triple in --version.  
							
							 
							
							... 
							
							
							
							llvm-svn: 80855 
							
						 
						
							2009-09-02 23:52:38 +00:00  
						
					 
				
					
						
							
							
								 
								Ted Kremenek
							
						 
						
							 
							
							
							
							
								
							
							
								1543d133db 
								
							 
						 
						
							
							
								
								Update CMake files.  
							
							 
							
							... 
							
							
							
							llvm-svn: 80680 
							
						 
						
							2009-09-01 17:01:02 +00:00  
						
					 
				
					
						
							
							
								 
								Richard Osborne
							
						 
						
							 
							
							
							
							
								
							
							
								e7717e7b2a 
								
							 
						 
						
							
							
								
								Add triple parsing support for XCore.  
							
							 
							
							... 
							
							
							
							llvm-svn: 80629 
							
						 
						
							2009-08-31 21:51:36 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								bf75ffd1e2 
								
							 
						 
						
							
							
								
								Fix some possible-use-of-uninitialized warnings.  
							
							 
							
							... 
							
							
							
							llvm-svn: 80515 
							
						 
						
							2009-08-30 21:13:58 +00:00  
						
					 
				
					
						
							
							
								 
								Torok Edwin
							
						 
						
							 
							
							
							
							
								
							
							
								e14d4cdb5f 
								
							 
						 
						
							
							
								
								Add regular expression matching support, based on OpenBSD regexec()/regcomp()  
							
							 
							
							... 
							
							
							
							implementation.
llvm-svn: 80493 
							
						 
						
							2009-08-30 08:24:09 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								61a8796ddb 
								
							 
						 
						
							
							
								
								Make LLVM command-line tools overwrite their output files without -f.  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2009-08-25 15:34:52 +00:00  
						
					 
				
					
						
							
							
								 
								Oscar Fuentes
							
						 
						
							 
							
							
							
							
								
							
							
								a5ff9e354a 
								
							 
						 
						
							
							
								
								CMake: updated list of source files.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79959 
							
						 
						
							2009-08-25 00:02:29 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								b8dc4ea2c4 
								
							 
						 
						
							
							
								
								Add llvm::Triple::getArchTypePrefix for getting the intrinsic prefix for an  
							
							 
							
							... 
							
							
							
							identifier architecture.
llvm-svn: 79906 
							
						 
						
							2009-08-24 09:53:06 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								c9fa051f85 
								
							 
						 
						
							
							
								
								Correctly account for the Spaces array nul terminator. Thanks Chris!  
							
							 
							
							... 
							
							
							
							llvm-svn: 79894 
							
						 
						
							2009-08-24 04:43:38 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								f88f52e3b9 
								
							 
						 
						
							
							
								
								raw_ostream::indent is used for PadToColumn which often prints more  
							
							 
							
							... 
							
							
							
							than 16 spaces. Make the Spaces array wide enough to handle common cases.
llvm-svn: 79890 
							
						 
						
							2009-08-24 04:13:01 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								0ffe0e096d 
								
							 
						 
						
							
							
								
								split raw_os_ostream out to its own header and implementation file.  This  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2009-08-24 04:02:06 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								06fa176862 
								
							 
						 
						
							
							
								
								prune the #includes in raw_ostream.h by moving a  
							
							 
							
							... 
							
							
							
							member out of line. ftostr is not particularly speedy,
so that method is presumably not perf sensitive.
llvm-svn: 79885 
							
						 
						
							2009-08-24 03:52:50 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								a53c35d8d0 
								
							 
						 
						
							
							
								
								Unbreak the build for HAVE_GV platforms.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79883 
							
						 
						
							2009-08-24 03:23:12 +00:00  
						
					 
				
					
						
							
							
								 
								Oscar Fuentes
							
						 
						
							 
							
							
							
							
								
							
							
								94e470504f 
								
							 
						 
						
							
							
								
								CMake: Updated library dependencies and list of source files.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79876 
							
						 
						
							2009-08-23 23:59:15 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								96cffa63a2 
								
							 
						 
						
							
							
								
								remove the dead std::ostream APInt inserter  
							
							 
							
							... 
							
							
							
							llvm-svn: 79875 
							
						 
						
							2009-08-23 23:11:28 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								486fcad4a8 
								
							 
						 
						
							
							
								
								fix some problems with my last patch which happen when one of  
							
							 
							
							... 
							
							
							
							(HAVE_GV && (HAVE_DOT || HAVE_FDP || HAVE_NEATO || \
                   HAVE_TWOPI || HAVE_CIRCO))
are true.
llvm-svn: 79872 
							
						 
						
							2009-08-23 22:53:53 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								c521f54198 
								
							 
						 
						
							
							
								
								Prune #includes from llvm/Linker.h and llvm/System/Path.h,  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2009-08-23 22:45:37 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								1518c64a23 
								
							 
						 
						
							
							
								
								llvm/Support/Streams.h is now dead, zap it.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79865 
							
						 
						
							2009-08-23 21:50:26 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								b9f25f9e19 
								
							 
						 
						
							
							
								
								eliminate the ostream version of CheckBitcodeOutputToConsole,  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2009-08-23 21:36:09 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								47a309c5ca 
								
							 
						 
						
							
							
								
								Fix off-by-one in llvm::Format::print.  
							
							 
							
							... 
							
							
							
							- 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 
							
						 
						
							2009-08-23 20:31:39 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								36b3caf9c0 
								
							 
						 
						
							
							
								
								clean up #includes.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79857 
							
						 
						
							2009-08-23 18:09:02 +00:00  
						
					 
				
					
						
							
							
								 
								Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								1a25d733f9 
								
							 
						 
						
							
							
								
								Kill off more cerr/cout uses and prune includes a bit.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79852 
							
						 
						
							2009-08-23 11:37:21 +00:00  
						
					 
				
					
						
							
							
								 
								Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								c9aa480832 
								
							 
						 
						
							
							
								
								Remove uses of Streams.h from CommandLine.cpp, fix some whitespace and other minor tweaks.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79847 
							
						 
						
							2009-08-23 10:01:13 +00:00  
						
					 
				
					
						
							
							
								 
								Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								b451afb5f2 
								
							 
						 
						
							
							
								
								Fix windows build.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79845 
							
						 
						
							2009-08-23 08:57:52 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								34ee203337 
								
							 
						 
						
							
							
								
								Fix some refactos for iostream changes (in -Asserts mode).  
							
							 
							
							... 
							
							
							
							- The world needs better C++ refactoring tools, can I get an Amen!?
llvm-svn: 79843 
							
						 
						
							2009-08-23 08:50:52 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								471ba48cb9 
								
							 
						 
						
							
							
								
								remove some uses of llvm/Support/Streams.h  
							
							 
							
							... 
							
							
							
							llvm-svn: 79842 
							
						 
						
							2009-08-23 08:43:55 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								4883d90396 
								
							 
						 
						
							
							
								
								convert LoopInfo.h and GraphWriter.h to use raw_ostream  
							
							 
							
							... 
							
							
							
							llvm-svn: 79836 
							
						 
						
							2009-08-23 07:19:13 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								7e3cfe35ff 
								
							 
						 
						
							
							
								
								eliminate DOUT and make Debug.h not include Streams.h anymore, woo!  
							
							 
							
							... 
							
							
							
							llvm-svn: 79835 
							
						 
						
							2009-08-23 07:05:39 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								1362602eb2 
								
							 
						 
						
							
							
								
								Change Pass::print to take a raw ostream instead of std::ostream,  
							
							 
							
							... 
							
							
							
							update all code that this affects.
llvm-svn: 79830 
							
						 
						
							2009-08-23 06:03:38 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								9e6f1f160a 
								
							 
						 
						
							
							
								
								Change raw_fd_ostream to take flags as an optional bitmask  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2009-08-23 02:51:22 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								ba4bd50a80 
								
							 
						 
						
							
							
								
								switch formattedstream to use raw_ostream::indent.  This eliminates  
							
							 
							
							... 
							
							
							
							the weird MAX_COLUMN_PAD limitation.
llvm-svn: 79785 
							
						 
						
							2009-08-22 23:16:09 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								e6db2c338b 
								
							 
						 
						
							
							
								
								add a raw_ostream::indent method, to be used like:  
							
							 
							
							... 
							
							
							
							OS.indent(i) << "whatever";
people seem to like indenting things ;-)
llvm-svn: 79784 
							
						 
						
							2009-08-22 23:10:29 +00:00  
						
					 
				
					
						
							
							
								 
								Anton Korobeynikov
							
						 
						
							 
							
							
							
							
								
							
							
								876955cbb0 
								
							 
						 
						
							
							
								
								Fix typo.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79688 
							
						 
						
							2009-08-21 23:09:47 +00:00  
						
					 
				
					
						
							
							
								 
								Anton Korobeynikov
							
						 
						
							 
							
							
							
							
								
							
							
								13e8c7ef20 
								
							 
						 
						
							
							
								
								Implement APInt <-> APFloat conversion for IEEE 128-bit floats.  
							
							 
							
							... 
							
							
							
							This fixes PR2555
llvm-svn: 79677 
							
						 
						
							2009-08-21 22:10:30 +00:00  
						
					 
				
					
						
							
							
								 
								Erick Tryzelaar
							
						 
						
							 
							
							
							
							
								
							
							
								6096409238 
								
							 
						 
						
							
							
								
								Clean up the APInt function getDigit.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79602 
							
						 
						
							2009-08-21 06:48:37 +00:00  
						
					 
				
					
						
							
							
								 
								Eric Christopher
							
						 
						
							 
							
							
							
							
								
							
							
								43a1decc8c 
								
							 
						 
						
							
							
								
								Update error messages for '+'. Fix grammar and make the two  
							
							 
							
							... 
							
							
							
							negative checks resemble each other.
llvm-svn: 79595 
							
						 
						
							2009-08-21 04:10:31 +00:00  
						
					 
				
					
						
							
							
								 
								Eric Christopher
							
						 
						
							 
							
							
							
							
								
							
							
								820256bc99 
								
							 
						 
						
							
							
								
								Fix trailing whitespace and 80-col violation.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79594 
							
						 
						
							2009-08-21 04:06:45 +00:00  
						
					 
				
					
						
							
							
								 
								Erick Tryzelaar
							
						 
						
							 
							
							
							
							
								
							
							
								dadb1571b7 
								
							 
						 
						
							
							
								
								Fix bug with APInt::getBitsNeeded with for base 10 numbers 0-9.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79593 
							
						 
						
							2009-08-21 03:15:28 +00:00  
						
					 
				
					
						
							
							
								 
								Erick Tryzelaar
							
						 
						
							 
							
							
							
							
								
							
							
								1264bcb4de 
								
							 
						 
						
							
							
								
								Allow '+' to appear in APInt strings, and add more unit tests.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79592 
							
						 
						
							2009-08-21 03:15:14 +00:00  
						
					 
				
					
						
							
							
								 
								Erick Tryzelaar
							
						 
						
							 
							
							
							
							
								
							
							
								da666c801c 
								
							 
						 
						
							
							
								
								Add support for including '+' in APFloat strings, more asserts,  
							
							 
							
							... 
							
							
							
							and many new unit tests.
llvm-svn: 79574 
							
						 
						
							2009-08-20 23:30:43 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								e392e6236d 
								
							 
						 
						
							
							
								
								Add a comment explaining why llvm_unreachable_internal doesn't call  
							
							 
							
							... 
							
							
							
							the ErrorHandler callback.
llvm-svn: 79541 
							
						 
						
							2009-08-20 17:15:19 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								bf5998edfb 
								
							 
						 
						
							
							
								
								Fix two APFloat bugs in converting hexadecimal constants.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79540 
							
						 
						
							2009-08-20 17:12:33 +00:00  
						
					 
				
					
						
							
							
								 
								Eli Friedman
							
						 
						
							 
							
							
							
							
								
							
							
								28c7bbf515 
								
							 
						 
						
							
							
								
								Add triple parsing support for TCE.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79461 
							
						 
						
							2009-08-19 20:46:03 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								8b0b11582d 
								
							 
						 
						
							
							
								
								Switch to SmallString::str from SmallString::c_str, and remove  
							
							 
							
							... 
							
							
							
							SmallString::c_str.
llvm-svn: 79456 
							
						 
						
							2009-08-19 20:07:03 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								e813cbaa21 
								
							 
						 
						
							
							
								
								Change raw_svector_ostream to reserve the input buffer if necessary, Ted was  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2009-08-19 18:40:58 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								ea579e3d29 
								
							 
						 
						
							
							
								
								Switch Twine::str() to use toVector(), which is now efficient.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79437 
							
						 
						
							2009-08-19 18:09:47 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								b090bf4626 
								
							 
						 
						
							
							
								
								Switch raw_svector_ostream to use the vector as the ostream buffer.  
							
							 
							
							... 
							
							
							
							- This avoids unnecessary malloc/free overhead in the common case, and
   unnecessary copying from the ostream buffer into the output vector.
llvm-svn: 79434 
							
						 
						
							2009-08-19 17:54:29 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								465de3e2be 
								
							 
						 
						
							
							
								
								Speculatively revert r79375, which may be breaking bootstrap, although in a  
							
							 
							
							... 
							
							
							
							rather obscure way (the other candidate is r79377).
llvm-svn: 79426 
							
						 
						
							2009-08-19 16:25:25 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								0cf168635e 
								
							 
						 
						
							
							
								
								raw_ostream: Simplify write(unsigned char) to match write(const char*, unsigned).  
							
							 
							
							... 
							
							
							
							llvm-svn: 79386 
							
						 
						
							2009-08-19 00:23:39 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								835da36ee9 
								
							 
						 
						
							
							
								
								raw_ostream: Remove pointless redefinitions of tell().  
							
							 
							
							... 
							
							
							
							- The base class implementation is correct.
llvm-svn: 79385 
							
						 
						
							2009-08-19 00:14:25 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								317a6cd010 
								
							 
						 
						
							
							
								
								raw_ostream: Add the capability for subclasses to manually install an external  
							
							 
							
							... 
							
							
							
							buffer.
llvm-svn: 79382 
							
						 
						
							2009-08-18 23:42:36 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								17a6fd2299 
								
							 
						 
						
							
							
								
								raw_ostream: Reduce FormattedStream's reliance on raw_ostream's implementation.  
							
							 
							
							... 
							
							
							
							- Kill off begin(), end(), and iterator. It isn't clear what these
   mean. Instead provide getBufferStart(), which can be used with
   GetNumBytesInBuffer to the same effect.
 - Update ComputeColumn to take arguments for the buffer to scan, this
   simplifies the implementation of write_impl substantially.
 - This should also fix possible problems with the scanning pointer pointing
   outside of the current raw_ostream buffer.
llvm-svn: 79379 
							
						 
						
							2009-08-18 23:36:04 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								bc96fe7246 
								
							 
						 
						
							
							
								
								Speed up raw_ostream::<<(unsigned long long) for 32-bit systems by doing most  
							
							 
							
							... 
							
							
							
							div/mods in 32-bits.
llvm-svn: 79375 
							
						 
						
							2009-08-18 22:24:00 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								23f90c1d3a 
								
							 
						 
						
							
							
								
								Fix a bug in raw_ostream::write(char) introduced by the change to  
							
							 
							
							... 
							
							
							
							allow underlying stream classes to decline buffering. After
calling SetBuffered(), re-check whether the stream is Unbuffered
in order to handle the case where the underlying stream has
declined buffering.
llvm-svn: 79362 
							
						 
						
							2009-08-18 20:09:59 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								d882f4b6ff 
								
							 
						 
						
							
							
								
								Revert r78924, disabling buffering defeats all the fast paths in raw_ostream.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79361 
							
						 
						
							2009-08-18 20:07:36 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								959323a260 
								
							 
						 
						
							
							
								
								Improve Triple to recognize the OS in i386-mingw32.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79359 
							
						 
						
							2009-08-18 19:26:55 +00:00  
						
					 
				
					
						
							
							
								 
								Erick Tryzelaar
							
						 
						
							 
							
							
							
							
								
							
							
								a9680df669 
								
							 
						 
						
							
							
								
								Fix an uninitialized value warning in APFloat.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79353 
							
						 
						
							2009-08-18 18:20:37 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								33d86f22f2 
								
							 
						 
						
							
							
								
								Fix Triple to recognize the 'bfin' arch.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79325 
							
						 
						
							2009-08-18 07:06:26 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								320d331311 
								
							 
						 
						
							
							
								
								Recognize xscale as an ARM arch.  
							
							 
							
							... 
							
							
							
							- Patch by Yonggang Luo.
llvm-svn: 79315 
							
						 
						
							2009-08-18 04:51:26 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								781f94d7fe 
								
							 
						 
						
							
							
								
								Add Triple matching for pic16 arch and solaris OS.  
							
							 
							
							... 
							
							
							
							- Patch by Yonggang Luo.
llvm-svn: 79314 
							
						 
						
							2009-08-18 04:43:27 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								ee97b8b11c 
								
							 
						 
						
							
							
								
								the MinPad argument to PadToColumn only really makes sense to be 1,  
							
							 
							
							... 
							
							
							
							just remove the argument and replace it with 1.
llvm-svn: 79246 
							
						 
						
							2009-08-17 15:48:08 +00:00  
						
					 
				
					
						
							
							
								 
								Erick Tryzelaar
							
						 
						
							 
							
							
							
							
								
							
							
								19f63b2e4d 
								
							 
						 
						
							
							
								
								Modify APFloat to take a StringRef instead of a c string.  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2009-08-16 23:36:19 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								b20757bdeb 
								
							 
						 
						
							
							
								
								Mingw also doesn't have st_blksize.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79142 
							
						 
						
							2009-08-15 21:41:03 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								177102271d 
								
							 
						 
						
							
							
								
								Always check to see if raw_fd_ostream's file descriptor is attached to  
							
							 
							
							... 
							
							
							
							a terminal, not just when it's STDOUT_FILENO.
llvm-svn: 79066 
							
						 
						
							2009-08-15 02:05:19 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								186b85dbcc 
								
							 
						 
						
							
							
								
								Add support for column computation on unbuffered streams.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79065 
							
						 
						
							2009-08-15 02:02:59 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								250635e3ac 
								
							 
						 
						
							
							
								
								Move FormattedStream's write_impl out of line.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79064 
							
						 
						
							2009-08-15 02:01:04 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								e9f0bf5dee 
								
							 
						 
						
							
							
								
								Remove an unnecessary #include.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79063 
							
						 
						
							2009-08-15 01:56:38 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								0792195c5a 
								
							 
						 
						
							
							
								
								fix "pc" to be lower case in a target triple, patch by Yonggang Luo  
							
							 
							
							... 
							
							
							
							llvm-svn: 79016 
							
						 
						
							2009-08-14 18:48:13 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								4af229e0eb 
								
							 
						 
						
							
							
								
								When standard output is a terminal, set outs() to be unbuffered, to  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2009-08-13 23:18:56 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								c04a00a0b0 
								
							 
						 
						
							
							
								
								Fix a compiler warning about comparing signed with unsigned.  
							
							 
							
							... 
							
							
							
							llvm-svn: 78933 
							
						 
						
							2009-08-13 20:32:03 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								9820555546 
								
							 
						 
						
							
							
								
								Add an assert to check copy_to_buffer's precondition.  
							
							 
							
							... 
							
							
							
							llvm-svn: 78926 
							
						 
						
							2009-08-13 18:38:15 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								854ea3c580 
								
							 
						 
						
							
							
								
								Set raw_os_ostream, raw_string_ostream, and raw_svector_ostream to be  
							
							 
							
							... 
							
							
							
							unbuffered. std::ostream does its own buffering, and std::string and
SmallVector both have allocation strategies intended to handle frequent
appending.
llvm-svn: 78924 
							
						 
						
							2009-08-13 17:41:40 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								84487b98a5 
								
							 
						 
						
							
							
								
								Add support to raw_ostream for sizing the buffer according to the  
							
							 
							
							... 
							
							
							
							needs of the underlying output mechanism. raw_fd_ostream now uses
st_blksize from fstat to determine a buffer size.
llvm-svn: 78923 
							
						 
						
							2009-08-13 17:27:29 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								54401d4174 
								
							 
						 
						
							
							
								
								Move SetBufferSize and SetUnbuffered out of line.  
							
							 
							
							... 
							
							
							
							llvm-svn: 78909 
							
						 
						
							2009-08-13 15:58:55 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								52022c2373 
								
							 
						 
						
							
							
								
								Fix the buffer handling logic so that write_impl is always called with  
							
							 
							
							... 
							
							
							
							a full buffer, rather than often being called with a
slightly-less-than-full buffer.
llvm-svn: 78907 
							
						 
						
							2009-08-13 15:44:52 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								3a1efd11bb 
								
							 
						 
						
							
							
								
								Convert APint::{fromString,APInt,getBitsNeeded} to use StringRef.  
							
							 
							
							... 
							
							
							
							- Patch by Erick Tryzelaar, with some edits (and a bug fix) from me.
llvm-svn: 78885 
							
						 
						
							2009-08-13 02:33:34 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								1432ef864e 
								
							 
						 
						
							
							
								
								This void is implicit in C++.  
							
							 
							
							... 
							
							
							
							llvm-svn: 78848 
							
						 
						
							2009-08-12 22:10:57 +00:00  
						
					 
				
					
						
							
							
								 
								Dale Johannesen
							
						 
						
							 
							
							
							
							
								
							
							
								54be785be7 
								
							 
						 
						
							
							
								
								Add attempted idiotproofing comment per review.  
							
							 
							
							... 
							
							
							
							llvm-svn: 78825 
							
						 
						
							2009-08-12 18:04:11 +00:00  
						
					 
				
					
						
							
							
								 
								Dale Johannesen
							
						 
						
							 
							
							
							
							
								
							
							
								34c08bbbf9 
								
							 
						 
						
							
							
								
								Fix a nondeterministic bug in APInt::roundToDouble;  
							
							 
							
							... 
							
							
							
							when !isSingleWord() but getActiveBits() is small,
we were using the pointer value instead of the low
word of the integer value.
llvm-svn: 78821 
							
						 
						
							2009-08-12 17:42:34 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								8268cc9c77 
								
							 
						 
						
							
							
								
								the x86 version of the name is x86-64, not x86_64.  Handle this properly  
							
							 
							
							... 
							
							
							
							in getArchTypeForLLVMName.
llvm-svn: 78799 
							
						 
						
							2009-08-12 06:45:02 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								e0971bc29f 
								
							 
						 
						
							
							
								
								add support for mingw64 target triples.  
							
							 
							
							... 
							
							
							
							llvm-svn: 78797 
							
						 
						
							2009-08-12 06:32:10 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								553c9f35a7 
								
							 
						 
						
							
							
								
								add a couple of helpers to the Triple class for decoding  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2009-08-12 06:19:40 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								5d47e93532 
								
							 
						 
						
							
							
								
								add a trivial line # cache to SourceMgr to make repeated queries to  
							
							 
							
							... 
							
							
							
							FindLineNumber much faster when in sequence.
llvm-svn: 78693 
							
						 
						
							2009-08-11 17:49:14 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								1bf60c257c 
								
							 
						 
						
							
							
								
								Add support for a user supplied pointer argument to llvm_install_error_handler.  
							
							 
							
							... 
							
							
							
							llvm-svn: 78553 
							
						 
						
							2009-08-10 03:36:26 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								46ffffa750 
								
							 
						 
						
							
							
								
								Fix FindExecutable to use sys::Path::GetMainExecutable instead of  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2009-08-05 20:21:17 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								400cd1a87a 
								
							 
						 
						
							
							
								
								cerr isn't buffered so it doesn't need to be flushed.  
							
							 
							
							... 
							
							
							
							llvm-svn: 78135 
							
						 
						
							2009-08-05 00:44:01 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								719d235520 
								
							 
						 
						
							
							
								
								Remove now unused arguments from TargetRegistry::lookupTarget.  
							
							 
							
							... 
							
							
							
							llvm-svn: 77950 
							
						 
						
							2009-08-03 04:20:57 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								0f16ea5c30 
								
							 
						 
						
							
							
								
								Pass target triple string in to TargetMachine constructor.  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2009-08-03 04:03:51 +00:00  
						
					 
				
					
						
							
							
								 
								Jakob Stoklund Olesen
							
						 
						
							 
							
							
							
							
								
							
							
								552d8d6618 
								
							 
						 
						
							
							
								
								Analog Devices Blackfin back-end.  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2009-08-02 17:32:10 +00:00  
						
					 
				
					
						
							
							
								 
								Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								666cf9d2f2 
								
							 
						 
						
							
							
								
								Remove duplicated colons and spaces.  
							
							 
							
							... 
							
							
							
							llvm-svn: 77892 
							
						 
						
							2009-08-02 12:13:02 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								2eaf396c41 
								
							 
						 
						
							
							
								
								Add missing flush().  
							
							 
							
							... 
							
							
							
							llvm-svn: 77859 
							
						 
						
							2009-08-02 04:12:28 +00:00  
						
					 
				
					
						
							
							
								 
								Ted Kremenek
							
						 
						
							 
							
							
							
							
								
							
							
								defdbdc5ca 
								
							 
						 
						
							
							
								
								Update CMake files.  
							
							 
							
							... 
							
							
							
							llvm-svn: 77709 
							
						 
						
							2009-07-31 18:50:22 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								060ca138e2 
								
							 
						 
						
							
							
								
								Remove Annotation.h, which is no longer used in the LLVM tree.  
							
							 
							
							... 
							
							
							
							llvm-svn: 77706 
							
						 
						
							2009-07-31 18:36:25 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								a91dd9bf5f 
								
							 
						 
						
							
							
								
								Twine: Directly support int, long, and long long types.  
							
							 
							
							... 
							
							
							
							- This should resolve Cygwin gcc ambiguities.
llvm-svn: 77624 
							
						 
						
							2009-07-30 21:15:14 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								bd8556e0fb 
								
							 
						 
						
							
							
								
								Twine: Use raw_ostream::write_hex, remove unused itohexstr method.  
							
							 
							
							... 
							
							
							
							llvm-svn: 77617 
							
						 
						
							2009-07-30 18:30:19 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								6c9629b92a 
								
							 
						 
						
							
							
								
								Add raw_ostream::write_hex  
							
							 
							
							... 
							
							
							
							llvm-svn: 77614 
							
						 
						
							2009-07-30 18:21:23 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								e8b3236284 
								
							 
						 
						
							
							
								
								Twine: Provide [u]int{32,64} conversions via implicit constructors instead of  
							
							 
							
							... 
							
							
							
							explicitly.
llvm-svn: 77576 
							
						 
						
							2009-07-30 03:47:15 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								59a60c57a6 
								
							 
						 
						
							
							
								
								Perform simplification noticed by Reid.  
							
							 
							
							... 
							
							
							
							llvm-svn: 77477 
							
						 
						
							2009-07-29 17:29:36 +00:00  
						
					 
				
					
						
							
							
								 
								David Greene
							
						 
						
							 
							
							
							
							
								
							
							
								ea2f1ceb4b 
								
							 
						 
						
							
							
								
								Re-apply previous changes and improve column padding performance some more.  
							
							 
							
							... 
							
							
							
							llvm-svn: 77461 
							
						 
						
							2009-07-29 16:08:27 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								b49994ad7e 
								
							 
						 
						
							
							
								
								Twines: Support numeric conversion directly (uitostr, etc).  
							
							 
							
							... 
							
							
							
							- 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 
							
						 
						
							2009-07-29 07:08:44 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								a94f58aee5 
								
							 
						 
						
							
							
								
								raw_ostream: Follow the 32-bit path when printing "small" decimal numbers.  
							
							 
							
							... 
							
							
							
							llvm-svn: 77444 
							
						 
						
							2009-07-29 06:45:14 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								af71a3035b 
								
							 
						 
						
							
							
								
								Revert r77397, it causes significant regressions in llc performance.  
							
							 
							
							... 
							
							
							
							llvm-svn: 77425 
							
						 
						
							2009-07-29 03:04:22 +00:00  
						
					 
				
					
						
							
							
								 
								David Greene
							
						 
						
							 
							
							
							
							
								
							
							
								5f6511c3d5 
								
							 
						 
						
							
							
								
								Improve performance of PadToColumn by eliminating flushes.  
							
							 
							
							... 
							
							
							
							llvm-svn: 77397 
							
						 
						
							2009-07-28 23:26:34 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								4b66b47a7c 
								
							 
						 
						
							
							
								
								Make raw_null_ostream flush its buffer in its destructor, so that  
							
							 
							
							... 
							
							
							
							it conforms to the assertion added in r77245. This fixes a failure
in qa_override.c in clang's testsuite.
llvm-svn: 77255 
							
						 
						
							2009-07-27 21:46:02 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								1b763293a6 
								
							 
						 
						
							
							
								
								Add an assertion check to raw_ostream's destructor to verify  
							
							 
							
							... 
							
							
							
							that the subclass hasn't left any pending data in the buffer.
llvm-svn: 77245 
							
						 
						
							2009-07-27 20:49:44 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								a0ad190a35 
								
							 
						 
						
							
							
								
								Sort list of targets in --version.  
							
							 
							
							... 
							
							
							
							llvm-svn: 77127 
							
						 
						
							2009-07-26 05:09:50 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								bd481a119c 
								
							 
						 
						
							
							
								
								Oops, forgot XCore. Sorry XCore!  
							
							 
							
							... 
							
							
							
							llvm-svn: 77125 
							
						 
						
							2009-07-26 04:52:45 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								172649be2c 
								
							 
						 
						
							
							
								
								Update for API change.  
							
							 
							
							... 
							
							
							
							llvm-svn: 77124 
							
						 
						
							2009-07-26 04:23:03 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								19e7076ddd 
								
							 
						 
						
							
							
								
								Update Triple to use StringRef/Twine based APIs.  
							
							 
							
							... 
							
							
							
							- This is now shorter, simpler, safer, and more efficient, what a deal.
llvm-svn: 77119 
							
						 
						
							2009-07-26 03:31:47 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								4aea2d97c8 
								
							 
						 
						
							
							
								
								Remove unused header  
							
							 
							
							... 
							
							
							
							llvm-svn: 77115 
							
						 
						
							2009-07-26 02:23:52 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								bc981d8efa 
								
							 
						 
						
							
							
								
								Kill Target specific ModuleMatchQuality stuff.  
							
							 
							
							... 
							
							
							
							- This was overkill and inconsistently implemented.
llvm-svn: 77114 
							
						 
						
							2009-07-26 02:22:58 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								47d679151b 
								
							 
						 
						
							
							
								
								Add TargetRegistry::lookupTarget.  
							
							 
							
							... 
							
							
							
							- This is a simplified mechanism which just looks up a target based on the
   target triple, with a few additional flags.
 - Remove getClosestStaticTargetForModule, the moral equivalent is now:
     lookupTarget(Mod->getTargetTriple, true, false, ...);
 - This no longer does the fuzzy matching with target data (based on endianness
   and pointer width) that getClosestStaticTargetForModule was doing, but this
   was deemed unnecessary.
llvm-svn: 77111 
							
						 
						
							2009-07-26 02:12:58 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Kleckner
							
						 
						
							 
							
							
							
							
								
							
							
								4b1f2f4779 
								
							 
						 
						
							
							
								
								Added a test and fixed a bug in BumpPtrAllocator relating to large alignment  
							
							 
							
							... 
							
							
							
							values.  Hopefully this fixes PR4622.
llvm-svn: 77088 
							
						 
						
							2009-07-25 21:26:02 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								691a4784db 
								
							 
						 
						
							
							
								
								Simplify JIT target selection.  
							
							 
							
							... 
							
							
							
							- Instead of requiring targets to define a JIT quality match function, we just
   have them specify if they support a JIT.
 - Target selection for the JIT just gets the host triple and looks for the best
   target which matches the triple and has a JIT.
llvm-svn: 77060 
							
						 
						
							2009-07-25 10:09:50 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								cd51ea510a 
								
							 
						 
						
							
							
								
								Allow llvm_report_error to accept a Twine.  
							
							 
							
							... 
							
							
							
							llvm-svn: 76961 
							
						 
						
							2009-07-24 07:58:10 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								0cf4e697fd 
								
							 
						 
						
							
							
								
								Update CMake  
							
							 
							
							... 
							
							
							
							llvm-svn: 76957 
							
						 
						
							2009-07-24 07:04:49 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								afcf5b30cb 
								
							 
						 
						
							
							
								
								Add Twine ADT.  
							
							 
							
							... 
							
							
							
							- Not currently used.
llvm-svn: 76956 
							
						 
						
							2009-07-24 07:04:27 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								a3d677b002 
								
							 
						 
						
							
							
								
								Switch to raw_ostream.  
							
							 
							
							... 
							
							
							
							llvm-svn: 76943 
							
						 
						
							2009-07-24 04:01:01 +00:00  
						
					 
				
					
						
							
							
								 
								David Greene
							
						 
						
							 
							
							
							
							
								
							
							
								8e621f0182 
								
							 
						 
						
							
							
								
								Write space padding as one string to speed up comment printing.  
							
							 
							
							... 
							
							
							
							llvm-svn: 76910 
							
						 
						
							2009-07-23 23:21:10 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Kleckner
							
						 
						
							 
							
							
							
							
								
							
							
								c2d882dd1a 
								
							 
						 
						
							
							
								
								Re-committing changes from r76825 to BumpPtrAllocator with a fix and tests for  
							
							 
							
							... 
							
							
							
							an off-by-one error.
llvm-svn: 76891 
							
						 
						
							2009-07-23 18:34:13 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								5bf72e20eb 
								
							 
						 
						
							
							
								
								Convert StringMap to using StringRef for its APIs.  
							
							 
							
							... 
							
							
							
							- Yay for '-'s and simplifications!
 - I kept StringMap::GetOrCreateValue for compatibility purposes, this can
   eventually go away. Likewise the StringMapEntry Create functions still follow
   the old style.
 - NIFC.
llvm-svn: 76888 
							
						 
						
							2009-07-23 18:17:34 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Kleckner
							
						 
						
							 
							
							
							
							
								
							
							
								921673225c 
								
							 
						 
						
							
							
								
								Reverting r76825 and r76828, since they caused clang runtime errors and some build failure involving memset.  
							
							 
							
							... 
							
							
							
							llvm-svn: 76838 
							
						 
						
							2009-07-23 01:40:54 +00:00  
						
					 
				
					
						
							
							
								 
								Zhongxing Xu
							
						 
						
							 
							
							
							
							
								
							
							
								57421f3e0f 
								
							 
						 
						
							
							
								
								add header for 'memset'.  
							
							 
							
							... 
							
							
							
							llvm-svn: 76837 
							
						 
						
							2009-07-23 01:38:47 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Kleckner
							
						 
						
							 
							
							
							
							
								
							
							
								5bd6105d65 
								
							 
						 
						
							
							
								
								Parameterize the BumpPtrAllocator over a slab allocator.  It defaults to using  
							
							 
							
							... 
							
							
							
							malloc, so there should be no functional changes to other code.
These changes are necessary since I have plans to use this allocator in the JIT
memory manager, and it needs a special allocator.
I also added some tests which helped me pinpoint some bugs.
llvm-svn: 76825 
							
						 
						
							2009-07-23 00:30:41 +00:00  
						
					 
				
					
						
							
							
								 
								David Greene
							
						 
						
							 
							
							
							
							
								
							
							
								7ea9d0b6e2 
								
							 
						 
						
							
							
								
								Hide the DOUT static variable behind a function interface.  
							
							 
							
							... 
							
							
							
							llvm-svn: 76425 
							
						 
						
							2009-07-20 16:16:06 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								567daf3ce8 
								
							 
						 
						
							
							
								
								Fix ConstantRange::unionWith. Also make it work a little hard in some cases to  
							
							 
							
							... 
							
							
							
							return the smallest union of two ranges instead of just any range that happens
to contain the union.
llvm-svn: 76360 
							
						 
						
							2009-07-19 03:44:35 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								0d13903563 
								
							 
						 
						
							
							
								
								Replace intersectWith with maximalIntersectWith. The latter guarantees that  
							
							 
							
							... 
							
							
							
							all values belonging to the intersection will belong to the resulting range.
The former was inconsistent about that point (either way is fine, just pick
one.) This is part of PR4545.
llvm-svn: 76289 
							
						 
						
							2009-07-18 06:34:42 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								50745bf080 
								
							 
						 
						
							
							
								
								Provide slightly more refined error message when trying to lookup a target, and  
							
							 
							
							... 
							
							
							
							none are registered.
llvm-svn: 76181 
							
						 
						
							2009-07-17 15:50:49 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								95a551ad75 
								
							 
						 
						
							
							
								
								Add raw_null_ostream and llvm::nulls(), a raw_ostream that discards output.  
							
							 
							
							... 
							
							
							
							- No functionality change.
llvm-svn: 76103 
							
						 
						
							2009-07-16 21:17:53 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								f199ad6ebc 
								
							 
						 
						
							
							
								
								Use size_t.  
							
							 
							
							... 
							
							
							
							llvm-svn: 76069 
							
						 
						
							2009-07-16 15:24:40 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								5d485f7893 
								
							 
						 
						
							
							
								
								add a knob to turn off PrettyStackTrace globally.  Patch by Zoltan  
							
							 
							
							... 
							
							
							
							Varga!
llvm-svn: 75897 
							
						 
						
							2009-07-16 06:17:45 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								78c8fb1056 
								
							 
						 
						
							
							
								
								Add registered target list to --version output.  
							
							 
							
							... 
							
							
							
							llvm-svn: 75889 
							
						 
						
							2009-07-16 02:06:09 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								58fcef917c 
								
							 
						 
						
							
							
								
								Change raw_ostream so that it doesn't call llvm_report_error  
							
							 
							
							... 
							
							
							
							immediately on every output error. Instead, add a flag to
raw_ostream, and set the flag whenever an error is detected.
The flag can be queried and cleared from the public API. This
gives applications more flexibility to handling errors in
application-specific ways.
If the flag is not cleared when the raw_ostream is destructed,
llvm_report_error is called from the destructor. This ensures
that errors are not implicitly silenced, and provides
convenient default behavior for tools like llc and opt.
Clients wishing to avoid llvm_report_error calls from
raw_ostream should check for errors and clear the error flag.
llvm-svn: 75857 
							
						 
						
							2009-07-15 23:25:33 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								e833810a5e 
								
							 
						 
						
							
							
								
								Reapply TargetRegistry refactoring commits.  
							
							 
							
							... 
							
							
							
							--- Reverse-merging r75799 into '.':
 U   test/Analysis/PointerTracking
U    include/llvm/Target/TargetMachineRegistry.h
U    include/llvm/Target/TargetMachine.h
U    include/llvm/Target/TargetRegistry.h
U    include/llvm/Target/TargetSelect.h
U    tools/lto/LTOCodeGenerator.cpp
U    tools/lto/LTOModule.cpp
U    tools/llc/llc.cpp
U    lib/Target/PowerPC/PPCTargetMachine.h
U    lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
U    lib/Target/PowerPC/PPCTargetMachine.cpp
U    lib/Target/PowerPC/PPC.h
U    lib/Target/ARM/ARMTargetMachine.cpp
U    lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
U    lib/Target/ARM/ARMTargetMachine.h
U    lib/Target/ARM/ARM.h
U    lib/Target/XCore/XCoreTargetMachine.cpp
U    lib/Target/XCore/XCoreTargetMachine.h
U    lib/Target/PIC16/PIC16TargetMachine.cpp
U    lib/Target/PIC16/PIC16TargetMachine.h
U    lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp
U    lib/Target/Alpha/AlphaTargetMachine.cpp
U    lib/Target/Alpha/AlphaTargetMachine.h
U    lib/Target/X86/X86TargetMachine.h
U    lib/Target/X86/X86.h
U    lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h
U    lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp
U    lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.h
U    lib/Target/X86/X86TargetMachine.cpp
U    lib/Target/MSP430/MSP430TargetMachine.cpp
U    lib/Target/MSP430/MSP430TargetMachine.h
U    lib/Target/CppBackend/CPPTargetMachine.h
U    lib/Target/CppBackend/CPPBackend.cpp
U    lib/Target/CBackend/CTargetMachine.h
U    lib/Target/CBackend/CBackend.cpp
U    lib/Target/TargetMachine.cpp
U    lib/Target/IA64/IA64TargetMachine.cpp
U    lib/Target/IA64/AsmPrinter/IA64AsmPrinter.cpp
U    lib/Target/IA64/IA64TargetMachine.h
U    lib/Target/IA64/IA64.h
U    lib/Target/MSIL/MSILWriter.cpp
U    lib/Target/CellSPU/SPUTargetMachine.h
U    lib/Target/CellSPU/SPU.h
U    lib/Target/CellSPU/AsmPrinter/SPUAsmPrinter.cpp
U    lib/Target/CellSPU/SPUTargetMachine.cpp
U    lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp
U    lib/Target/Mips/MipsTargetMachine.cpp
U    lib/Target/Mips/MipsTargetMachine.h
U    lib/Target/Mips/Mips.h
U    lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp
U    lib/Target/Sparc/SparcTargetMachine.cpp
U    lib/Target/Sparc/SparcTargetMachine.h
U    lib/ExecutionEngine/JIT/TargetSelect.cpp
U    lib/Support/TargetRegistry.cpp
llvm-svn: 75820 
							
						 
						
							2009-07-15 20:24:03 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								607818a2c1 
								
							 
						 
						
							
							
								
								Add a Force option to raw_fd_ostream to specify whether opening  
							
							 
							
							... 
							
							
							
							an existing file is considered an error. Convert several tools
to use raw_fd_ostream instead of std::ostream, and to use this
new option instead of doing a manual check.
llvm-svn: 75801 
							
						 
						
							2009-07-15 17:29:42 +00:00  
						
					 
				
					
						
							
							
								 
								Stuart Hastings
							
						 
						
							 
							
							
							
							
								
							
							
								338191cd67 
								
							 
						 
						
							
							
								
								Revert 75762, 75763, 75766..75769, 75772..75775, 75778, 75780, 75782 to repair broken LLVM-GCC build.  
							
							 
							
							... 
							
							
							
							Will revert 75770 in the llvm-gcc trunk.
llvm-svn: 75799 
							
						 
						
							2009-07-15 17:27:11 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								6935332d5f 
								
							 
						 
						
							
							
								
								Add a raw_ostream version of CheckBitcodeOutputToConsole.  
							
							 
							
							... 
							
							
							
							llvm-svn: 75796 
							
						 
						
							2009-07-15 17:04:50 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								213e87b1fe 
								
							 
						 
						
							
							
								
								Check for errors on close(2) too. And lseek(2).  
							
							 
							
							... 
							
							
							
							llvm-svn: 75793 
							
						 
						
							2009-07-15 16:43:01 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								33fb640835 
								
							 
						 
						
							
							
								
								Use 0664 instead of 0644 for the default open mode. This is  
							
							 
							
							... 
							
							
							
							consistent with common std::ostream implmentations, and it gives
the user the option of using the umask group write bit.
llvm-svn: 75792 
							
						 
						
							2009-07-15 16:39:40 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								50859c907a 
								
							 
						 
						
							
							
								
								Allow multiple registrations of the same target.  
							
							 
							
							... 
							
							
							
							- This doesn't necessarily seem like a good idea, but the JIT unittest
   currently relies on it.
llvm-svn: 75769 
							
						 
						
							2009-07-15 10:32:44 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								dcb50b9b54 
								
							 
						 
						
							
							
								
								Detect write failures on raw_fd_ostream.  
							
							 
							
							... 
							
							
							
							llvm-svn: 75758 
							
						 
						
							2009-07-15 08:11:46 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								54995de1d4 
								
							 
						 
						
							
							
								
								Fix stupid thinko  
							
							 
							
							... 
							
							
							
							llvm-svn: 75754 
							
						 
						
							2009-07-15 07:37:49 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								1c6633221f 
								
							 
						 
						
							
							
								
								Address some review comments on TargetRegistry.  
							
							 
							
							... 
							
							
							
							llvm-svn: 75753 
							
						 
						
							2009-07-15 07:09:29 +00:00  
						
					 
				
					
						
							
							
								 
								Ted Kremenek
							
						 
						
							 
							
							
							
							
								
							
							
								1492e1781a 
								
							 
						 
						
							
							
								
								Update CMake file.  
							
							 
							
							... 
							
							
							
							llvm-svn: 75746 
							
						 
						
							2009-07-15 05:39:55 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								078a71e4a9 
								
							 
						 
						
							
							
								
								Add new TargetRegistry.  
							
							 
							
							... 
							
							
							
							Targets implement a single global Target structure which will live in a new
<Target>/TargetInfo library; this will be present in any image which the target
is usable in.
 - Optional target specific classes can then be registered and attached to the
   Target description.
 - Registration for normal Targets will be done via the initialization functions
   instead of using static constructors.
 - This allows clients to use a single interface to obtain target data, without
   requiring the code generator be linked in. It also provides a natural
   extension point for adding new optional target data (assembler parser,
   disassembler, etc.).
 - This also provides a new entry point for obtaining a target for a particular
   triple (without a module).
 - Not yet used, however this should eventually replace the TargetMachineRegistry.
llvm-svn: 75739 
							
						 
						
							2009-07-15 04:24:58 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								ca99c348ed 
								
							 
						 
						
							
							
								
								minor syntax cleanup  
							
							 
							
							... 
							
							
							
							llvm-svn: 75707 
							
						 
						
							2009-07-14 23:14:10 +00:00  
						
					 
				
					
						
							
							
								 
								Ted Kremenek
							
						 
						
							 
							
							
							
							
								
							
							
								57da3ed4ce 
								
							 
						 
						
							
							
								
								Update CMake file.  
							
							 
							
							... 
							
							
							
							llvm-svn: 75677 
							
						 
						
							2009-07-14 20:44:17 +00:00  
						
					 
				
					
						
							
							
								 
								David Greene
							
						 
						
							 
							
							
							
							
								
							
							
								a31f96cf2b 
								
							 
						 
						
							
							
								
								Have asm printers use formatted_raw_ostream directly to avoid a  
							
							 
							
							... 
							
							
							
							dynamic_cast<>.
llvm-svn: 75670 
							
						 
						
							2009-07-14 20:18:05 +00:00  
						
					 
				
					
						
							
							
								 
								Torok Edwin
							
						 
						
							 
							
							
							
							
								
							
							
								fbcc663cbf 
								
							 
						 
						
							
							
								
								llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable.  
							
							 
							
							... 
							
							
							
							This adds location info for all llvm_unreachable calls (which is a macro now) in
!NDEBUG builds.
In NDEBUG builds location info and the message is off (it only prints
"UREACHABLE executed").
llvm-svn: 75640 
							
						 
						
							2009-07-14 16:55:14 +00:00  
						
					 
				
					
						
							
							
								 
								Torok Edwin
							
						 
						
							 
							
							
							
							
								
							
							
								1ab40bef8d 
								
							 
						 
						
							
							
								
								After converting assert(0) to LLVM_UNREACHABLE we lost file/line location.  
							
							 
							
							... 
							
							
							
							Fix by making the LLVM_UNREACHABLE pass __FILE__ and __LINE__ to
llvm_unreachable.
llvm-svn: 75631 
							
						 
						
							2009-07-14 12:49:22 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								01218d5b17 
								
							 
						 
						
							
							
								
								Add NetBSD to the Triple class, patch by Krister Walfridsson!  
							
							 
							
							... 
							
							
							
							llvm-svn: 75489 
							
						 
						
							2009-07-13 20:22:23 +00:00  
						
					 
				
					
						
							
							
								 
								David Greene
							
						 
						
							 
							
							
							
							
								
							
							
								20f6ac0738 
								
							 
						 
						
							
							
								
								Make some more changes suggested by Chris.  Manipulators go away.  
							
							 
							
							... 
							
							
							
							llvm-svn: 75472 
							
						 
						
							2009-07-13 16:49:27 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								763ace92c0 
								
							 
						 
						
							
							
								
								Switch to raw_ostream.  
							
							 
							
							... 
							
							
							
							llvm-svn: 75451 
							
						 
						
							2009-07-13 05:27:30 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								571bf54569 
								
							 
						 
						
							
							
								
								Fix an error in ConstantRange::getSignedMax on wrapped ranges. Thanks once  
							
							 
							
							... 
							
							
							
							again to Daniel Dunbar and KLEE!
llvm-svn: 75449 
							
						 
						
							2009-07-13 04:50:21 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								5edc459220 
								
							 
						 
						
							
							
								
								'i8 full-range' sign extended to i16 should equal [-128, 128) not [-128, 127).  
							
							 
							
							... 
							
							
							
							Found by Daniel Dunbar and KLEE.
llvm-svn: 75448 
							
						 
						
							2009-07-13 04:17:23 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								5302389442 
								
							 
						 
						
							
							
								
								Multiply was very wrong for wrapped ranges. This supplies a half-fix that will  
							
							 
							
							... 
							
							
							
							generally return Full on all wrapped inputs. "Fixes" PR4545.
llvm-svn: 75444 
							
						 
						
							2009-07-13 03:27:41 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								73b704dd9c 
								
							 
						 
						
							
							
								
								Fix a bug summing two full sets. The overflow checking doesn't handle sets as  
							
							 
							
							... 
							
							
							
							large as the full set, only those one size smaller. Thanks to Daniel Dunbar
who found this bug using Klee!
llvm-svn: 75443 
							
						 
						
							2009-07-13 02:49:08 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								df555fd6f8 
								
							 
						 
						
							
							
								
								Improve sys::Path::makeAbsolute on Win32.  
							
							 
							
							... 
							
							
							
							- Patch by Viktor Kutuzov!
 - Minor tweak by me to add llvm_unreachable calls on FIXMEd error paths.
llvm-svn: 75424 
							
						 
						
							2009-07-12 20:23:56 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								f1b8cb3760 
								
							 
						 
						
							
							
								
								Implement udiv for ConstantRanges.  
							
							 
							
							... 
							
							
							
							llvm-svn: 75413 
							
						 
						
							2009-07-12 05:18:18 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								2951c990cd 
								
							 
						 
						
							
							
								
								Implement ConstantRange::multiply based on the code in LoopVR.  
							
							 
							
							... 
							
							
							
							llvm-svn: 75410 
							
						 
						
							2009-07-12 02:19:05 +00:00  
						
					 
				
					
						
							
							
								 
								Torok Edwin
							
						 
						
							 
							
							
							
							
								
							
							
								56d0659726 
								
							 
						 
						
							
							
								
								assert(0) -> LLVM_UNREACHABLE.  
							
							 
							
							... 
							
							
							
							Make llvm_unreachable take an optional string, thus moving the cerr<< out of
line.
LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for
NDEBUG builds.
llvm-svn: 75379 
							
						 
						
							2009-07-11 20:10:48 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								fc69ee2cc6 
								
							 
						 
						
							
							
								
								Fix handling of max and full set.  
							
							 
							
							... 
							
							
							
							A full set is a constant range that represents any number. If you take the
umax of that and [5, 10) you end up with [5, INT_MAX] because the values less
than 5 would be umax's against a value which is at least 5.
llvm-svn: 75372 
							
						 
						
							2009-07-11 19:22:21 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								9c5fc41547 
								
							 
						 
						
							
							
								
								Clarify and simplify.  
							
							 
							
							... 
							
							
							
							llvm-svn: 75366 
							
						 
						
							2009-07-11 17:04:01 +00:00  
						
					 
				
					
						
							
							
								 
								Torok Edwin
							
						 
						
							 
							
							
							
							
								
							
							
								ccb29cd290 
								
							 
						 
						
							
							
								
								Convert more assert(0)+abort() -> LLVM_UNREACHABLE,  
							
							 
							
							... 
							
							
							
							and abort()/exit() -> llvm_report_error().
llvm-svn: 75363 
							
						 
						
							2009-07-11 13:10:19 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								dcfdce9067 
								
							 
						 
						
							
							
								
								Move a method that creates constant ranges relative to another constant range  
							
							 
							
							... 
							
							
							
							per icmp predicate out of predsimplify and into ConstantRange.
Add another utility method that determines whether one range is a subset of
another. Combine with the former to determine whether icmp pred range, range
is known to be true or not.
llvm-svn: 75357 
							
						 
						
							2009-07-11 06:15:39 +00:00  
						
					 
				
					
						
							
							
								 
								David Greene
							
						 
						
							 
							
							
							
							
								
							
							
								c97b778b3c 
								
							 
						 
						
							
							
								
								Make changes suggested by Chris and eliminate newly-added raw_ostream  
							
							 
							
							... 
							
							
							
							hooks as they're no longer needed.
The major change with this patch is to make formatted_raw_ostream usable
by any client of raw_ostream.
llvm-svn: 75283 
							
						 
						
							2009-07-10 21:14:44 +00:00  
						
					 
				
					
						
							
							
								 
								David Greene
							
						 
						
							 
							
							
							
							
								
							
							
								ab11a81fc0 
								
							 
						 
						
							
							
								
								Add some hooks that a redesigned AsmStream needs to do its job.  These  
							
							 
							
							... 
							
							
							
							allow derived classes to examine the stream buffer before it's flushed.
llvm-svn: 75199 
							
						 
						
							2009-07-09 23:43:41 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								dc33ae27ed 
								
							 
						 
						
							
							
								
								Revert the part of 75177 that split ConstantRange into two classes, and  
							
							 
							
							... 
							
							
							
							merge the new functionality and unittests into ConstantRange. Thanks to
Nick Lewycky for pointing out that it isn't necessary to have two separate
classes here.
llvm-svn: 75191 
							
						 
						
							2009-07-09 23:16:10 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								5035fbf91c 
								
							 
						 
						
							
							
								
								Add a ConstantSignedRange class, which does for signed integers  
							
							 
							
							... 
							
							
							
							what ConstantRange does for unsigned integers. Factor out a
common base class for common functionality.
Add some new functions for performing arithmetic on constant
ranges. Some of these are currently just stubbed out with
conservative implementations.
Add unittests for ConstantRange and ConstantSignedRange.
llvm-svn: 75177 
							
						 
						
							2009-07-09 22:07:27 +00:00  
						
					 
				
					
						
							
							
								 
								David Greene
							
						 
						
							 
							
							
							
							
								
							
							
								4417b4c80b 
								
							 
						 
						
							
							
								
								Add support for other GraphViz display tools.  This can help  
							
							 
							
							... 
							
							
							
							with very large graphs, where dot isn't necessarily the 
most visually pleasing way of looking at the graph.
llvm-svn: 75144 
							
						 
						
							2009-07-09 17:06:18 +00:00  
						
					 
				
					
						
							
							
								 
								David Greene
							
						 
						
							 
							
							
							
							
								
							
							
								9dadbbd755 
								
							 
						 
						
							
							
								
								Allow users of GraphWriter to display graphs asynchronously.  This  
							
							 
							
							... 
							
							
							
							provides a way to quickly dump a bunch of graph information to dot files
and display them.  It's a timesaver when working on large systems.
llvm-svn: 75056 
							
						 
						
							2009-07-08 21:53:41 +00:00  
						
					 
				
					
						
							
							
								 
								Mike Stump
							
						 
						
							 
							
							
							
							
								
							
							
								54731d5cde 
								
							 
						 
						
							
							
								
								Fix build.  
							
							 
							
							... 
							
							
							
							llvm-svn: 74936 
							
						 
						
							2009-07-07 18:52:14 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								5c96ef7c4e 
								
							 
						 
						
							
							
								
								Have scoped mutexes take referenes instead of pointers.  
							
							 
							
							... 
							
							
							
							llvm-svn: 74931 
							
						 
						
							2009-07-07 18:33:04 +00:00  
						
					 
				
					
						
							
							
								 
								Torok Edwin
							
						 
						
							 
							
							
							
							
								
							
							
								973c214ce0 
								
							 
						 
						
							
							
								
								Fix braces.  
							
							 
							
							... 
							
							
							
							llvm-svn: 74923 
							
						 
						
							2009-07-07 17:39:53 +00:00  
						
					 
				
					
						
							
							
								 
								Torok Edwin
							
						 
						
							 
							
							
							
							
								
							
							
								6c2d233e7a 
								
							 
						 
						
							
							
								
								Introduce new error handling API.  
							
							 
							
							... 
							
							
							
							This will replace exit()/abort() style error handling with an API
that allows clients to register custom error handling hooks.
The default is to call exit(1) when no error handler is provided.
llvm-svn: 74922 
							
						 
						
							2009-07-07 17:32:34 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								200e0757c7 
								
							 
						 
						
							
							
								
								switch the .ll parser to use SourceMgr.  
							
							 
							
							... 
							
							
							
							llvm-svn: 74735 
							
						 
						
							2009-07-02 23:08:13 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								cc64cc9313 
								
							 
						 
						
							
							
								
								add an explicit class for holding llvm::SourceMgr diagnostics and use  
							
							 
							
							... 
							
							
							
							it to print them.  This gives us column numbers in the diag line.  Before:
t.s:4: error: unexpected token in argument list
 mov %eax %edx
          ^
now:
t.s:4:11: error: unexpected token in argument list
 mov %eax %edx
          ^
llvm-svn: 74732 
							
						 
						
							2009-07-02 22:24:20 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								4aef67c99d 
								
							 
						 
						
							
							
								
								Tweak FindExecutable so that relative executable paths work as well.  
							
							 
							
							... 
							
							
							
							llvm-svn: 74645 
							
						 
						
							2009-07-01 21:36:28 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								b8f779db87 
								
							 
						 
						
							
							
								
								Fix FindExecutable to work if given an absolute executable path name.  
							
							 
							
							... 
							
							
							
							- Patch by Viktor Kutuzov, with tweaks by me.
llvm-svn: 74608 
							
						 
						
							2009-07-01 15:26:13 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								10f1733d9a 
								
							 
						 
						
							
							
								
								Reapply 74494, this time removing the conflicting definition of operator<<  
							
							 
							
							... 
							
							
							
							in APIntTest.cpp.
llvm-svn: 74550 
							
						 
						
							2009-06-30 20:10:56 +00:00  
						
					 
				
					
						
							
							
								 
								Bill Wendling
							
						 
						
							 
							
							
							
							
								
							
							
								778a517725 
								
							 
						 
						
							
							
								
								Temporarily revert r74494. It was causing failures in the unit tests.  
							
							 
							
							... 
							
							
							
							llvm-svn: 74515 
							
						 
						
							2009-06-30 07:05:27 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								00d07afe98 
								
							 
						 
						
							
							
								
								Fix the build on Cygwin.  Patch by Aaron Gray.  
							
							 
							
							... 
							
							
							
							llvm-svn: 74510 
							
						 
						
							2009-06-30 05:33:46 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								e95d409bdd 
								
							 
						 
						
							
							
								
								Define an operator<< for APInt to be used with std::ostream.  
							
							 
							
							... 
							
							
							
							This will allow it to be used in unittests that use gtest's
EXPECT_EQ.
llvm-svn: 74494 
							
						 
						
							2009-06-30 01:28:08 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								c9dc78ae40 
								
							 
						 
						
							
							
								
								Normalize SourceMgr messages.  
							
							 
							
							... 
							
							
							
							- Don't print "Parsing" in front of every message.
 - Take additional "type" argument which is prepended to the message (with ": ")
   if given.
 - Update clients to print errors (warnings) as:
<filename>:<line number>: error(warning): ...
llvm-svn: 74489 
							
						 
						
							2009-06-30 00:49:23 +00:00  
						
					 
				
					
						
							
							
								 
								Duncan Sands
							
						 
						
							 
							
							
							
							
								
							
							
								14814d4477 
								
							 
						 
						
							
							
								
								Add triple for OpenBSD.  
							
							 
							
							... 
							
							
							
							llvm-svn: 74422 
							
						 
						
							2009-06-29 13:36:13 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								4a03279231 
								
							 
						 
						
							
							
								
								Use atomic operations for accessing this global counter.  
							
							 
							
							... 
							
							
							
							llvm-svn: 74294 
							
						 
						
							2009-06-26 18:09:03 +00:00  
						
					 
				
					
						
							
							
								 
								Douglas Gregor
							
						 
						
							 
							
							
							
							
								
							
							
								6d94e6a5f3 
								
							 
						 
						
							
							
								
								Fix linking of llvm-ld and lli with CMake, from Xerxes Rånby  
							
							 
							
							... 
							
							
							
							llvm-svn: 74285 
							
						 
						
							2009-06-26 15:37:00 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								76cfd205ff 
								
							 
						 
						
							
							
								
								Support thread-local pretty stack traces.  
							
							 
							
							... 
							
							
							
							llvm-svn: 74227 
							
						 
						
							2009-06-25 23:31:33 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								ca8f986f63 
								
							 
						 
						
							
							
								
								Use atomic operations when accessing statistics, and make the lazy initialization of statistics actually threadsafe.  
							
							 
							
							... 
							
							
							
							llvm-svn: 74005 
							
						 
						
							2009-06-23 21:19:38 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								e9b1beb543 
								
							 
						 
						
							
							
								
								Make timers threadsafe again.  This isn't quite as nice as I'd hoped (it uses locking rather than atomic arithmetic),  
							
							 
							
							... 
							
							
							
							but should work on all the platforms we care about.
I might revisit this if a totally awesome way to do it occurs to me.
llvm-svn: 74002 
							
						 
						
							2009-06-23 20:52:29 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								5cc4131063 
								
							 
						 
						
							
							
								
								Revert my last series of commits related to Timer and 64-bit atomics.  Not all the targets  
							
							 
							
							... 
							
							
							
							we care about are capable of supporting it.
llvm-svn: 73993 
							
						 
						
							2009-06-23 20:17:22 +00:00  
						
					 
				
					
						
							
							
								 
								Lang Hames
							
						 
						
							 
							
							
							
							
								
							
							
								c547bad3ff 
								
							 
						 
						
							
							
								
								Switched size_t to int64_t to prevent type mismatch in call to max.  
							
							 
							
							... 
							
							
							
							llvm-svn: 73988 
							
						 
						
							2009-06-23 19:49:23 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								ddf74dc986 
								
							 
						 
						
							
							
								
								Actually, these need to be signed integers, not unsigned.  
							
							 
							
							... 
							
							
							
							llvm-svn: 73978 
							
						 
						
							2009-06-23 18:21:13 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								bf45b3e2ad 
								
							 
						 
						
							
							
								
								Use 64-bit integer counters for tracking time, rather than doubles.  This will be more atomic op friendly.  
							
							 
							
							... 
							
							
							
							llvm-svn: 73974 
							
						 
						
							2009-06-23 18:12:30 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								4ed41c8be8 
								
							 
						 
						
							
							
								
								Make the lazy initialization of DefaultTimerGroup threadsafe.  
							
							 
							
							... 
							
							
							
							llvm-svn: 73963 
							
						 
						
							2009-06-23 17:33:37 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								891fe79672 
								
							 
						 
						
							
							
								
								Revert r73923, which broke clang.  
							
							 
							
							... 
							
							
							
							llvm-svn: 73957 
							
						 
						
							2009-06-23 16:36:10 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								bee30f58fb 
								
							 
						 
						
							
							
								
								Guard the plugin loader.  
							
							 
							
							... 
							
							
							
							llvm-svn: 73925 
							
						 
						
							2009-06-23 00:02:39 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								977c6b8998 
								
							 
						 
						
							
							
								
								Add guards around timer groups, which can be shared.  
							
							 
							
							... 
							
							
							
							llvm-svn: 73923 
							
						 
						
							2009-06-22 23:37:06 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								975ce637db 
								
							 
						 
						
							
							
								
								Guard the statistics table.  
							
							 
							
							... 
							
							
							
							llvm-svn: 73916 
							
						 
						
							2009-06-22 23:08:27 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								2d2ed3c54b 
								
							 
						 
						
							
							
								
								Guard the global annotation tables.  
							
							 
							
							... 
							
							
							
							llvm-svn: 73913 
							
						 
						
							2009-06-22 22:44:15 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								2adc9e739c 
								
							 
						 
						
							
							
								
								rename SourceMgr::PrintError to PrintMessage.  
							
							 
							
							... 
							
							
							
							llvm-svn: 73861 
							
						 
						
							2009-06-21 21:22:11 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								976af622a9 
								
							 
						 
						
							
							
								
								move include searching logic from TGLexer to SourceMgr.  
							
							 
							
							... 
							
							
							
							llvm-svn: 73845 
							
						 
						
							2009-06-21 05:06:04 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								fd255754af 
								
							 
						 
						
							
							
								
								Rename TGSourceMgr -> SourceMgr.  
							
							 
							
							... 
							
							
							
							llvm-svn: 73844 
							
						 
						
							2009-06-21 03:41:50 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								526c8cb557 
								
							 
						 
						
							
							
								
								rename TGLoc -> SMLoc.  
							
							 
							
							... 
							
							
							
							llvm-svn: 73843 
							
						 
						
							2009-06-21 03:39:35 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								1b30e1ac45 
								
							 
						 
						
							
							
								
								move TGSourceMgr class out of TableGen into libsupport.  
							
							 
							
							... 
							
							
							
							llvm-svn: 73842 
							
						 
						
							2009-06-21 03:36:54 +00:00  
						
					 
				
					
						
							
							
								 
								Duncan Sands
							
						 
						
							 
							
							
							
							
								
							
							
								0de39b42ff 
								
							 
						 
						
							
							
								
								Add support for AuroraUX.  Patch by evocallaghan.  
							
							 
							
							... 
							
							
							
							llvm-svn: 73766 
							
						 
						
							2009-06-19 14:40:01 +00:00  
						
					 
				
					
						
							
							
								 
								Ted Kremenek
							
						 
						
							 
							
							
							
							
								
							
							
								81ef65d491 
								
							 
						 
						
							
							
								
								Update CMake files to account for new location of Threading.cpp.  
							
							 
							
							... 
							
							
							
							llvm-svn: 73708 
							
						 
						
							2009-06-18 17:47:09 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								7d42b95b6c 
								
							 
						 
						
							
							
								
								Move Threading.[h|cpp] from Support to System.  
							
							 
							
							... 
							
							
							
							llvm-svn: 73707 
							
						 
						
							2009-06-18 16:54:52 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								993e4261d0 
								
							 
						 
						
							
							
								
								Add newline at end of file.  
							
							 
							
							... 
							
							
							
							llvm-svn: 73551 
							
						 
						
							2009-06-16 20:53:09 +00:00  
						
					 
				
					
						
							
							
								 
								Douglas Gregor
							
						 
						
							 
							
							
							
							
								
							
							
								c791c37633 
								
							 
						 
						
							
							
								
								Add Threading.cpp to the CMake project files  
							
							 
							
							... 
							
							
							
							llvm-svn: 73516 
							
						 
						
							2009-06-16 17:45:38 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								4cb4b6191a 
								
							 
						 
						
							
							
								
								Split the thread-related APIs out into their own file, and add a few more  
							
							 
							
							... 
							
							
							
							calls for convenience.
llvm-svn: 73512 
							
						 
						
							2009-06-16 17:33:51 +00:00  
						
					 
				
					
						
							
							
								 
								Torok Edwin
							
						 
						
							 
							
							
							
							
								
							
							
								9b5a47fc3c 
								
							 
						 
						
							
							
								
								Add support for outputting ANSI colors to raw_fd_ostream.  
							
							 
							
							... 
							
							
							
							llvm-svn: 72854 
							
						 
						
							2009-06-04 07:09:50 +00:00  
						
					 
				
					
						
							
							
								 
								Mike Stump
							
						 
						
							 
							
							
							
							
								
							
							
								799bf5855e 
								
							 
						 
						
							
							
								
								Add support for letting the client choose different flavors of NaNs.  Testcase to be  
							
							 
							
							... 
							
							
							
							added in clang.
llvm-svn: 72606 
							
						 
						
							2009-05-30 03:49:43 +00:00  
						
					 
				
					
						
							
							
								 
								Bill Wendling
							
						 
						
							 
							
							
							
							
								
							
							
								09f17a8479 
								
							 
						 
						
							
							
								
								Untabification.  
							
							 
							
							... 
							
							
							
							llvm-svn: 72604 
							
						 
						
							2009-05-30 01:09:53 +00:00  
						
					 
				
					
						
							
							
								 
								Douglas Gregor
							
						 
						
							 
							
							
							
							
								
							
							
								bbcf90f936 
								
							 
						 
						
							
							
								
								Minor fix for CMake build system  
							
							 
							
							... 
							
							
							
							llvm-svn: 72480 
							
						 
						
							2009-05-27 16:52:17 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								e3384c4f2e 
								
							 
						 
						
							
							
								
								Add llvm::triple constructor from arch, vendor, os strings, and recognize  
							
							 
							
							... 
							
							
							
							DragonFly OS type.
llvm-svn: 72242 
							
						 
						
							2009-05-22 02:24:11 +00:00  
						
					 
				
					
						
							
							
								 
								Evan Cheng
							
						 
						
							 
							
							
							
							
								
							
							
								db338f3f41 
								
							 
						 
						
							
							
								
								80 column violation.  
							
							 
							
							... 
							
							
							
							llvm-svn: 72235 
							
						 
						
							2009-05-21 23:47:47 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								e147774b05 
								
							 
						 
						
							
							
								
								Have llvm_start_multithreaded return a bool indicating whether multithreaded  
							
							 
							
							... 
							
							
							
							initialization succeeded or not, rather than just asserting.
llvm-svn: 72182 
							
						 
						
							2009-05-20 21:03:06 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								b9a4a57699 
								
							 
						 
						
							
							
								
								Add llvm_start_multithreaded(), which starts up the LLVM internals in thread-safe mode.  Provide double-check locking  
							
							 
							
							... 
							
							
							
							initialization of ManagedStatic's when running in thread-safe mode.
llvm-svn: 72151 
							
						 
						
							2009-05-20 00:39:20 +00:00  
						
					 
				
					
						
							
							
								 
								Eli Friedman
							
						 
						
							 
							
							
							
							
								
							
							
								a97f07f22d 
								
							 
						 
						
							
							
								
								Tweak MemoryBuffer::getSTDIN so that it returns after the first EOF.  
							
							 
							
							... 
							
							
							
							It doesn't matter for piped input, but it's annoying when typing at the 
console.
llvm-svn: 71998 
							
						 
						
							2009-05-18 08:44:04 +00:00  
						
					 
				
					
						
							
							
								 
								Mike Stump
							
						 
						
							 
							
							
							
							
								
							
							
								0e78566e02 
								
							 
						 
						
							
							
								
								Add dumping support for DW_AT_APPLE_isa and DW_AT_APPLE_block.  
							
							 
							
							... 
							
							
							
							Radar 6867696
llvm-svn: 71750 
							
						 
						
							2009-05-14 00:03:51 +00:00  
						
					 
				
					
						
							
							
								 
								Mike Stump
							
						 
						
							 
							
							
							
							
								
							
							
								889285d467 
								
							 
						 
						
							
							
								
								Fix whitespacing (space after switch).  
							
							 
							
							... 
							
							
							
							llvm-svn: 71738 
							
						 
						
							2009-05-13 23:23:20 +00:00  
						
					 
				
					
						
							
							
								 
								Jay Foad
							
						 
						
							 
							
							
							
							
								
							
							
								fe0c648fee 
								
							 
						 
						
							
							
								
								Move helper functions for optimizing division by constant into the APInt  
							
							 
							
							... 
							
							
							
							class.
llvm-svn: 70488 
							
						 
						
							2009-04-30 10:15:35 +00:00  
						
					 
				
					
						
							
							
								 
								Bill Wendling
							
						 
						
							 
							
							
							
							
								
							
							
								db59fda319 
								
							 
						 
						
							
							
								
								Add support for a character after a command line option. Like '-Os'.  
							
							 
							
							... 
							
							
							
							llvm-svn: 70437 
							
						 
						
							2009-04-29 23:26:16 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								b869a0ade1 
								
							 
						 
						
							
							
								
								Fix PR4040: APInt's string constructor is too strict  
							
							 
							
							... 
							
							
							
							patch by Jeff Yasskin!
llvm-svn: 70058 
							
						 
						
							2009-04-25 18:34:04 +00:00  
						
					 
				
					
						
							
							
								 
								Douglas Gregor
							
						 
						
							 
							
							
							
							
								
							
							
								b231e5791e 
								
							 
						 
						
							
							
								
								Make all raw_ostreams support the tell() function.  
							
							 
							
							... 
							
							
							
							llvm-svn: 69583 
							
						 
						
							2009-04-20 07:34:17 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								baf9535284 
								
							 
						 
						
							
							
								
								teach EscapeString and UnescapeString to handle ".  
							
							 
							
							... 
							
							
							
							llvm-svn: 69211 
							
						 
						
							2009-04-15 20:12:52 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								3875195865 
								
							 
						 
						
							
							
								
								Remove AllowInverse: it leaks memory and is not the right  
							
							 
							
							... 
							
							
							
							abstraction for CommandLine.
llvm-svn: 68588 
							
						 
						
							2009-04-08 03:43:51 +00:00  
						
					 
				
					
						
							
							
								 
								Mikhail Glushenkov
							
						 
						
							 
							
							
							
							
								
							
							
								12062ba83d 
								
							 
						 
						
							
							
								
								Fix build on Linux.  
							
							 
							
							... 
							
							
							
							llvm-svn: 68269 
							
						 
						
							2009-04-02 01:11:37 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								4abd56677d 
								
							 
						 
						
							
							
								
								Add llvm::Triple class for abstracting access to target triples.  
							
							 
							
							... 
							
							
							
							- The code is silly, I'm just amusing myself. Rewrite to be efficient
   if you like. :)
Also, if you wish to debate the proper names of the triple components
I'm all ears.
llvm-svn: 68252 
							
						 
						
							2009-04-01 21:53:23 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								cff6953c45 
								
							 
						 
						
							
							
								
								Use CHAR_BIT instead of hard-coding 8 in several places where it  
							
							 
							
							... 
							
							
							
							is appropriate. This helps visually differentiate host-oriented
calculations from target-oriented calculations.
llvm-svn: 68227 
							
						 
						
							2009-04-01 18:45:54 +00:00  
						
					 
				
					
						
							
							
								 
								Misha Brukman
							
						 
						
							 
							
							
							
							
								
							
							
								5fc1a0339c 
								
							 
						 
						
							
							
								
								* Fixed spelling of `invertible'  
							
							 
							
							... 
							
							
							
							* Simplified if statement
llvm-svn: 68163 
							
						 
						
							2009-04-01 00:15:46 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								7516668998 
								
							 
						 
						
							
							
								
								move a large method out of line.  
							
							 
							
							... 
							
							
							
							llvm-svn: 67892 
							
						 
						
							2009-03-28 02:08:47 +00:00  
						
					 
				
					
						
							
							
								 
								Dale Johannesen
							
						 
						
							 
							
							
							
							
								
							
							
								93eefa0043 
								
							 
						 
						
							
							
								
								Fix internal representation of fp80 to be the  
							
							 
							
							... 
							
							
							
							same as a normal i80 {low64, high16} rather
than its own {high64, low16}.  A depressing number
of places know about this; I think I got them all.
Bitcode readers and writers convert back to the old
form to avoid breaking compatibility.
llvm-svn: 67562 
							
						 
						
							2009-03-23 21:16:53 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								4f2fea1a21 
								
							 
						 
						
							
							
								
								Now that errs() is properly non-buffered, there's no need to  
							
							 
							
							... 
							
							
							
							explicitly flush it.
llvm-svn: 67526 
							
						 
						
							2009-03-23 15:57:19 +00:00  
						
					 
				
					
						
							
							
								 
								Duncan Sands
							
						 
						
							 
							
							
							
							
								
							
							
								8208465036 
								
							 
						 
						
							
							
								
								Fix comment typo.  
							
							 
							
							... 
							
							
							
							llvm-svn: 67302 
							
						 
						
							2009-03-19 11:37:15 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								437b8a5ccc 
								
							 
						 
						
							
							
								
								Add BUILTIN_EXPECT Support/Compiler macro.  
							
							 
							
							... 
							
							
							
							- Use for exceptional buffer conditions in raw_ostream:write to shave
   off a cycle or two.
 - Please rename if you have a better one.
llvm-svn: 67103 
							
						 
						
							2009-03-17 21:15:18 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								64fa3860ed 
								
							 
						 
						
							
							
								
								raw_ostream: Put all exceptional conditions in raw_ostream::write  
							
							 
							
							... 
							
							
							
							under a single branch.
Also, add a FIXME for formatted output.
llvm-svn: 67069 
							
						 
						
							2009-03-17 01:36:56 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								2d603dae2c 
								
							 
						 
						
							
							
								
								raw_ostream: Rework implementation of unbuffered streams so outputting  
							
							 
							
							... 
							
							
							
							a single character requires only one branch to follow slow path.
 - Never use a buffer when writing on an unbuffered stream.
 - Move default buffer size to header.
llvm-svn: 67066 
							
						 
						
							2009-03-17 01:13:35 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								db7a36cdac 
								
							 
						 
						
							
							
								
								raw_ostream: Replace flush_impl with write_impl, which takes data to  
							
							 
							
							... 
							
							
							
							write as arguments.
 - Add raw_ostream::GetNumBytesInBuffer.
 - Privatize buffer pointers.
 - Get rid of slow and unnecessary code for writing out large strings.
llvm-svn: 67060 
							
						 
						
							2009-03-16 23:29:31 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								d24535fe3c 
								
							 
						 
						
							
							
								
								raw_ostream: Lift out flush_nonempty.  
							
							 
							
							... 
							
							
							
							- Flush a known non-empty buffers; enforces the interface to
   flush_impl and kills off HandleFlush (which I saw no reason to be
   an inline method, Chris?).
 - Clarify invariant that flush_impl is only called with OutBufCur >
   OutBufStart.
 - This also cleary collects all places where we have to deal with the
   buffer possibly not existing.
 - A few more comments and fixing the unbuffered behavior remain in
   this commit sequence.
llvm-svn: 67057 
							
						 
						
							2009-03-16 22:55:06 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								8786218b0c 
								
							 
						 
						
							
							
								
								Make raw_ostream::operator<<(const void *) fast; it doesn't matter but  
							
							 
							
							... 
							
							
							
							it is easy.
llvm-svn: 67054 
							
						 
						
							2009-03-16 22:08:44 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								7a9bb9eeec 
								
							 
						 
						
							
							
								
								Add slow path for single character write, and use exclusively for  
							
							 
							
							... 
							
							
							
							single characters writes outside of the fast path in raw_ostream.h
llvm-svn: 67053 
							
						 
						
							2009-03-16 22:00:17 +00:00  
						
					 
				
					
						
							
							
								 
								Stuart Hastings
							
						 
						
							 
							
							
							
							
								
							
							
								7440952c01 
								
							 
						 
						
							
							
								
								Fix a hashing bug in APInt.  A certain pathological testcase (too  
							
							 
							
							... 
							
							
							
							large for the testsuite) took over six minutes to compile on my Mac.
The patched LLVM-GCC compiles that testcase in three seconds (GCC
takes less than one second).  This hash function is more complex
(about 35 instructions on x86) than what Chris wanted, but I expect it
will be well-behaved with arbitrary inputs.
Thank you to everyone who responded to my previous request for advice.
llvm-svn: 66962 
							
						 
						
							2009-03-13 21:51:13 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								b858c0eba0 
								
							 
						 
						
							
							
								
								just initialize the first element, we don't need to set the rest to zeros.  
							
							 
							
							... 
							
							
							
							llvm-svn: 66850 
							
						 
						
							2009-03-13 00:24:01 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								0bf186906b 
								
							 
						 
						
							
							
								
								Eliminate a 9640 byte static mutable initialized data item by moving it  
							
							 
							
							... 
							
							
							
							to the stack.  This shrinks all llvm tools by 9k, and improves reentrancy.
llvm-svn: 66847 
							
						 
						
							2009-03-13 00:03:51 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								9170209603 
								
							 
						 
						
							
							
								
								static functions don't need an anonymous namespace.  
							
							 
							
							... 
							
							
							
							llvm-svn: 66845 
							
						 
						
							2009-03-12 23:59:55 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								3da6a7071a 
								
							 
						 
						
							
							
								
								PR3478: raw_ostream should not buffer stderr  
							
							 
							
							... 
							
							
							
							- Add unbuffered flag to raw_ostream, forwarded by raw_fd_ostream and
   used by raw_stderr_ostream.
llvm-svn: 66545 
							
						 
						
							2009-03-10 16:21:55 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								ec5f2b5e05 
								
							 
						 
						
							
							
								
								Use c_str() to force the string to be nul-terminated.  
							
							 
							
							... 
							
							
							
							llvm-svn: 66279 
							
						 
						
							2009-03-06 18:13:15 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								e41a434f89 
								
							 
						 
						
							
							
								
								on apple systems, integrate nicely with crash reporter.  
							
							 
							
							... 
							
							
							
							llvm-svn: 66264 
							
						 
						
							2009-03-06 07:19:54 +00:00  
						
					 
				
					
						
							
							
								 
								Duncan Sands
							
						 
						
							 
							
							
							
							
								
							
							
								96f52eb13f 
								
							 
						 
						
							
							
								
								Add missing file.  
							
							 
							
							... 
							
							
							
							llvm-svn: 66160 
							
						 
						
							2009-03-05 09:19:13 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								8d0fe8cd90 
								
							 
						 
						
							
							
								
								Daniel wanted the stack printed upside down.  Perhaps he  
							
							 
							
							... 
							
							
							
							feels a kinship to machine stacks that grow down.  Now we get
stuff like this:
Stack dump:
0.	Program arguments: clang clang_crash_Iw2Osj.mi 
1.	/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/include/xmmintrin.h:624:1: parsing function body '_mm_cvtpi16_ps'
2.	/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/include/xmmintrin.h:624:1: in compound statement ('{}')
Abort
llvm-svn: 66145 
							
						 
						
							2009-03-05 07:03:49 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								2674eb4bd1 
								
							 
						 
						
							
							
								
								indicate what the program args line is.  
							
							 
							
							... 
							
							
							
							llvm-svn: 66144 
							
						 
						
							2009-03-05 06:51:42 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								68061d5995 
								
							 
						 
						
							
							
								
								add some helper classes for building light-weight symbolic stack traces  
							
							 
							
							... 
							
							
							
							that get printed when a program crashes.  This is the first step of many.
llvm-svn: 66076 
							
						 
						
							2009-03-04 21:40:23 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								4d20395a5f 
								
							 
						 
						
							
							
								
								The debugger sometimes lookup dynamically in the runtime to find ivar info of any Objective-C classes. It would be very helpful to debugger if the compiler encodes runtime version number in DWARF.  
							
							 
							
							... 
							
							
							
							Add support for two additional DWARF attributes to encode Objective-C runtime version number.
llvm-svn: 64834 
							
						 
						
							2009-02-17 22:43:44 +00:00  
						
					 
				
					
						
							
							
								 
								Cedric Venet
							
						 
						
							 
							
							
							
							
								
							
							
								d1e179d992 
								
							 
						 
						
							
							
								
								Unbreak the build on win32.  
							
							 
							
							... 
							
							
							
							Cleanup some warning.
Remark: when struct/class are declared differently than they are defined, this make problem for VC++ since it seems to mangle class differently that struct. These error are very hard to understand and find. So please, try to keep your definition/declaration in sync.
Only tested with VS2008. hope it does not break anything. feel free to revert.
llvm-svn: 64554 
							
						 
						
							2009-02-14 16:06:42 +00:00  
						
					 
				
					
						
							
							
								 
								Evan Cheng
							
						 
						
							 
							
							
							
							
								
							
							
								cf4bd2319c 
								
							 
						 
						
							
							
								
								Switch from new[] + delete[] to malloc + free since llvm does not catch C++ exceptions.  
							
							 
							
							... 
							
							
							
							llvm-svn: 64448 
							
						 
						
							2009-02-13 08:24:55 +00:00  
						
					 
				
					
						
							
							
								 
								Evan Cheng
							
						 
						
							 
							
							
							
							
								
							
							
								333db7abbd 
								
							 
						 
						
							
							
								
								If new[] fails, return 0 rather then trying to dereference a null pointer.  
							
							 
							
							... 
							
							
							
							llvm-svn: 64444 
							
						 
						
							2009-02-13 07:54:34 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								ef01e112aa 
								
							 
						 
						
							
							
								
								Add an API for strings with possible NULLs in the middle. Refactor the other  
							
							 
							
							... 
							
							
							
							two AddString methods to use it.
llvm-svn: 64005 
							
						 
						
							2009-02-07 04:57:08 +00:00  
						
					 
				
					
						
							
							
								 
								Mike Stump
							
						 
						
							 
							
							
							
							
								
							
							
								b92f839f9c 
								
							 
						 
						
							
							
								
								Improve -fno-opt style option processing to not require an extra  
							
							 
							
							... 
							
							
							
							option to make the -fno- form on the option.  We also document the new
form in the CommandLine documentation.
llvm-svn: 63559 
							
						 
						
							2009-02-02 22:48:49 +00:00  
						
					 
				
					
						
							
							
								 
								Mike Stump
							
						 
						
							 
							
							
							
							
								
							
							
								ecbe4a0860 
								
							 
						 
						
							
							
								
								Add opposite_of and inverse_opt to support -fno- style options.  This  
							
							 
							
							... 
							
							
							
							is necessary for eventual gcc commmand line compatibility.
llvm-svn: 63384 
							
						 
						
							2009-01-30 08:19:46 +00:00  
						
					 
				
					
						
							
							
								 
								Mikhail Glushenkov
							
						 
						
							 
							
							
							
							
								
							
							
								57cf3964f3 
								
							 
						 
						
							
							
								
								Clarify comment.  
							
							 
							
							... 
							
							
							
							llvm-svn: 63171 
							
						 
						
							2009-01-28 03:46:22 +00:00  
						
					 
				
					
						
							
							
								 
								Torok Edwin
							
						 
						
							 
							
							
							
							
								
							
							
								ec39eb8519 
								
							 
						 
						
							
							
								
								APInt's countLeadingOnes() was broken for negative i128 values,  
							
							 
							
							... 
							
							
							
							causing assertion failures in getSExtValue().
Fix it by making highWordBits actually contain what its name says,
and add some more unit-tests for APInt.
This fixes PR3419.
llvm-svn: 63107 
							
						 
						
							2009-01-27 18:06:03 +00:00  
						
					 
				
					
						
							
							
								 
								Ted Kremenek
							
						 
						
							 
							
							
							
							
								
							
							
								a26699211d 
								
							 
						 
						
							
							
								
								Add method raw_fd_ostream::seek() for random access within a file.  
							
							 
							
							... 
							
							
							
							llvm-svn: 63044 
							
						 
						
							2009-01-26 21:42:04 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								ccfacfff9a 
								
							 
						 
						
							
							
								
								Introduce two DWARF attribute extentions DW_AT_APPLE_optimized, DW_AT_APPLE_flags.  
							
							 
							
							... 
							
							
							
							DW_AT_APPLE_optimized flag is set when a compile_unit is optimized. The debugger takes advantage of this information some way.
DW_AT_APPLE_flags encodes command line options when certain env. variable is set. This is used by build engineers to track various gcc command lines used by by  a project, irrespective of whether the project used makefile, Xcode or something else.
llvm-gcc patch is next.
llvm-svn: 62888 
							
						 
						
							2009-01-23 22:33:47 +00:00  
						
					 
				
					
						
							
							
								 
								Dale Johannesen
							
						 
						
							 
							
							
							
							
								
							
							
								1f86498f93 
								
							 
						 
						
							
							
								
								Do not use host floating point types when emitting  
							
							 
							
							... 
							
							
							
							ASCII IR; loading and storing these can change the
bits of NaNs on some hosts.  Remove or add warnings
at a few other places using host floating point;
this is a bad thing to do in general.
llvm-svn: 62712 
							
						 
						
							2009-01-21 20:32:55 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								77527f5812 
								
							 
						 
						
							
							
								
								Remove uses of uint32_t in favor of 'unsigned' for better  
							
							 
							
							... 
							
							
							
							compatibility with cygwin.  Patch by Jay Foad!
llvm-svn: 62695 
							
						 
						
							2009-01-21 18:09:24 +00:00  
						
					 
				
					
						
							
							
								 
								Mikhail Glushenkov
							
						 
						
							 
							
							
							
							
								
							
							
								6a4f729dc9 
								
							 
						 
						
							
							
								
								Mimic gcc behaviour with regard to response files.  
							
							 
							
							... 
							
							
							
							llvm-svn: 62688 
							
						 
						
							2009-01-21 13:14:02 +00:00  
						
					 
				
					
						
							
							
								 
								Dale Johannesen
							
						 
						
							 
							
							
							
							
								
							
							
								b5721632ee 
								
							 
						 
						
							
							
								
								Make special cases (0 inf nan) work for frem.  
							
							 
							
							... 
							
							
							
							Besides APFloat, this involved removing code
from two places that thought they knew the
result of frem(0., x) but were wrong.
llvm-svn: 62645 
							
						 
						
							2009-01-21 00:35:19 +00:00  
						
					 
				
					
						
							
							
								 
								Dale Johannesen
							
						 
						
							 
							
							
							
							
								
							
							
								fe750179ff 
								
							 
						 
						
							
							
								
								Add an IEEE remainder function, which is not  
							
							 
							
							... 
							
							
							
							fully implemented yet and not used.  This is
mainly to clarify that APFloat::mod implements
C fmod, not remainder.
llvm-svn: 62593 
							
						 
						
							2009-01-20 18:35:05 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								17844c7a88 
								
							 
						 
						
							
							
								
								improve compatibility with various versions of graphviz, patch by  
							
							 
							
							... 
							
							
							
							Patrick Boettcher!
llvm-svn: 62592 
							
						 
						
							2009-01-20 18:25:03 +00:00  
						
					 
				
					
						
							
							
								 
								Dale Johannesen
							
						 
						
							 
							
							
							
							
								
							
							
								740e98704d 
								
							 
						 
						
							
							
								
								compile-time fmod was done incorrectly.  PR 3316.  
							
							 
							
							... 
							
							
							
							llvm-svn: 62528 
							
						 
						
							2009-01-19 21:17:05 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								030c450fdc 
								
							 
						 
						
							
							
								
								Fix typo, sentence fragment.  
							
							 
							
							... 
							
							
							
							llvm-svn: 62512 
							
						 
						
							2009-01-19 17:42:33 +00:00  
						
					 
				
					
						
							
							
								 
								Mikhail Glushenkov
							
						 
						
							 
							
							
							
							
								
							
							
								cbc26fdb6e 
								
							 
						 
						
							
							
								
								Support for multi-valued options in CommandLine  
							
							 
							
							... 
							
							
							
							Makes possible to specify options that take multiple arguments (a-la
-sectalign on Darwin). See documentation for details.
llvm-svn: 62372 
							
						 
						
							2009-01-16 22:54:19 +00:00  
						
					 
				
					
						
							
							
								 
								Misha Brukman
							
						 
						
							 
							
							
							
							
								
							
							
								5cbf223916 
								
							 
						 
						
							
							
								
								Removed trailing whitespace from Makefiles.  
							
							 
							
							... 
							
							
							
							llvm-svn: 61991 
							
						 
						
							2009-01-09 16:44:42 +00:00  
						
					 
				
					
						
							
							
								 
								Steve Naroff
							
						 
						
							 
							
							
							
							
								
							
							
								b0ad08b39a 
								
							 
						 
						
							
							
								
								Tweak --version to include the date and time.  
							
							 
							
							... 
							
							
							
							llvm-svn: 61378 
							
						 
						
							2008-12-23 18:41:47 +00:00  
						
					 
				
					
						
							
							
								 
								Nuno Lopes
							
						 
						
							 
							
							
							
							
								
							
							
								10ab44a3a2 
								
							 
						 
						
							
							
								
								remove unused var  
							
							 
							
							... 
							
							
							
							llvm-svn: 60770 
							
						 
						
							2008-12-09 17:04:06 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								d745adedd7 
								
							 
						 
						
							
							
								
								Fixes for Visual Studio users. Patch by OvermindDL1 on llvm-dev!  
							
							 
							
							... 
							
							
							
							llvm-svn: 60679 
							
						 
						
							2008-12-08 00:45:02 +00:00  
						
					 
				
					
						
							
							
								 
								Ted Kremenek
							
						 
						
							 
							
							
							
							
								
							
							
								123a35a81c 
								
							 
						 
						
							
							
								
								Have raw_fd_ostream keep track of the position in the file to make tell() go faster by not requiring a flush().  
							
							 
							
							... 
							
							
							
							llvm-svn: 60560 
							
						 
						
							2008-12-04 22:51:11 +00:00  
						
					 
				
					
						
							
							
								 
								Nuno Lopes
							
						 
						
							 
							
							
							
							
								
							
							
								50343cd2fe 
								
							 
						 
						
							
							
								
								fix build on some machines. thanks buildbot  
							
							 
							
							... 
							
							
							
							llvm-svn: 60175 
							
						 
						
							2008-11-27 16:42:44 +00:00  
						
					 
				
					
						
							
							
								 
								Nuno Lopes
							
						 
						
							 
							
							
							
							
								
							
							
								d5c2a144e1 
								
							 
						 
						
							
							
								
								fix my previous commit r60064: compare strings instead of pointers  
							
							 
							
							... 
							
							
							
							llvm-svn: 60174 
							
						 
						
							2008-11-27 16:37:02 +00:00  
						
					 
				
					
						
							
							
								 
								Bill Wendling
							
						 
						
							 
							
							
							
							
								
							
							
								c6075401c2 
								
							 
						 
						
							
							
								
								Get rid of bogus "control may reach end of non-void function ‘...’ being  
							
							 
							
							... 
							
							
							
							inlined" message.
llvm-svn: 60165 
							
						 
						
							2008-11-27 08:00:12 +00:00  
						
					 
				
					
						
							
							
								 
								Ted Kremenek
							
						 
						
							 
							
							
							
							
								
							
							
								e076257b8c 
								
							 
						 
						
							
							
								
								Add 'tell' method to raw_fd_ostream that clients can use to query the current location in the file the stream is writing to.  
							
							 
							
							... 
							
							
							
							llvm-svn: 60085 
							
						 
						
							2008-11-26 03:33:13 +00:00  
						
					 
				
					
						
							
							
								 
								Evan Cheng
							
						 
						
							 
							
							
							
							
								
							
							
								496b042e20 
								
							 
						 
						
							
							
								
								Revert r60042. IndVarSimplify should check if APFloat is PPCDoubleDouble first before trying to convert it to an integer.  
							
							 
							
							... 
							
							
							
							llvm-svn: 60072 
							
						 
						
							2008-11-26 01:11:57 +00:00  
						
					 
				
					
						
							
							
								 
								Nuno Lopes
							
						 
						
							 
							
							
							
							
								
							
							
								b472c9fac7 
								
							 
						 
						
							
							
								
								change AnnotationManager to use 'const char*' instead of std::string. this fixes the leakage of those strings and avoids the creation of such strings in static cosntructors (should result in a little improvement of startup time)  
							
							 
							
							... 
							
							
							
							llvm-svn: 60064 
							
						 
						
							2008-11-26 00:00:44 +00:00  
						
					 
				
					
						
							
							
								 
								Evan Cheng
							
						 
						
							 
							
							
							
							
								
							
							
								2e5aeff676 
								
							 
						 
						
							
							
								
								convertToSignExtendedInteger should return opInvalidOp instead of asserting if sematics of float does not allow arithmetics.  
							
							 
							
							... 
							
							
							
							llvm-svn: 60042 
							
						 
						
							2008-11-25 19:00:29 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								ed90e701f0 
								
							 
						 
						
							
							
								
								Add Binary flag to raw_fd_ostream constructor.  
							
							 
							
							... 
							
							
							
							Document raw_fd_ostream's treatment of "-".
llvm-svn: 59219 
							
						 
						
							2008-11-13 05:01:07 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								bde853911f 
								
							 
						 
						
							
							
								
								Overload AddInteger on int/long/long long instead of on int/int64_t,  
							
							 
							
							... 
							
							
							
							to avoid overload ambiguities. This fixes build errors introduced
by r58623.
llvm-svn: 58632 
							
						 
						
							2008-11-03 19:40:18 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								2bfc72e65e 
								
							 
						 
						
							
							
								
								fix PR2953, an off-by-one error handling formatted i/o.  
							
							 
							
							... 
							
							
							
							Thanks to Török Edwin for the awesome reduced testcase.
llvm-svn: 58199 
							
						 
						
							2008-10-26 19:20:47 +00:00  
						
					 
				
					
						
							
							
								 
								Ted Kremenek
							
						 
						
							 
							
							
							
							
								
							
							
								3c6de496b0 
								
							 
						 
						
							
							
								
								Added raw_fd_ostream::close().  
							
							 
							
							... 
							
							
							
							llvm-svn: 58052 
							
						 
						
							2008-10-23 23:49:09 +00:00  
						
					 
				
					
						
							
							
								 
								Julien Lerouge
							
						 
						
							 
							
							
							
							
								
							
							
								e9de15b88a 
								
							 
						 
						
							
							
								
								Fix for PR2881: fix a small leak exposed by valgrind, using a ManagedStatic.  
							
							 
							
							... 
							
							
							
							llvm-svn: 57984 
							
						 
						
							2008-10-22 16:30:41 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								1ca20df437 
								
							 
						 
						
							
							
								
								Clear raw_fd_ostream error string on success and explain behavior in  
							
							 
							
							... 
							
							
							
							documentation.
Add C++ header marker.
llvm-svn: 57923 
							
						 
						
							2008-10-21 19:53:10 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								9c4b7d5c4f 
								
							 
						 
						
							
							
								
								Fix command-line option printing to print two spaces where needed,  
							
							 
							
							... 
							
							
							
							instead of requiring all "short description" strings to begin with
two spaces. This makes these strings less mysterious, and it fixes
some cases where short description strings mistakenly did not
begin with two spaces.
llvm-svn: 57521 
							
						 
						
							2008-10-14 20:25:08 +00:00  
						
					 
				
					
						
							
							
								 
								Dale Johannesen
							
						 
						
							 
							
							
							
							
								
							
							
								cc98e28f37 
								
							 
						 
						
							
							
								
								Change TAG_ names to DW_TAG for gcc (testsuite) compatibility.  
							
							 
							
							... 
							
							
							
							llvm-svn: 57425 
							
						 
						
							2008-10-12 21:23:01 +00:00  
						
					 
				
					
						
							
							
								 
								Dale Johannesen
							
						 
						
							 
							
							
							
							
								
							
							
								ba074c0fed 
								
							 
						 
						
							
							
								
								Change Dwarf comments starting with AT_ to DW_AT_ to  
							
							 
							
							... 
							
							
							
							match gcc.  Helps with the testsuite.
llvm-svn: 57410 
							
						 
						
							2008-10-12 06:20:47 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								d57b7603f9 
								
							 
						 
						
							
							
								
								rearrange some code.  
							
							 
							
							... 
							
							
							
							llvm-svn: 57384 
							
						 
						
							2008-10-11 22:07:19 +00:00  
						
					 
				
					
						
							
							
								 
								Dale Johannesen
							
						 
						
							 
							
							
							
							
								
							
							
								4f0bd68cfe 
								
							 
						 
						
							
							
								
								Add a "loses information" return value to APFloat::convert  
							
							 
							
							... 
							
							
							
							and APFloat::convertToInteger.  Restore return value to
IEEE754.  Adjust all users accordingly.
llvm-svn: 57329 
							
						 
						
							2008-10-09 23:00:39 +00:00  
						
					 
				
					
						
							
							
								 
								Dale Johannesen
							
						 
						
							 
							
							
							
							
								
							
							
								54306fe499 
								
							 
						 
						
							
							
								
								Rename APFloat::convertToAPInt to bitcastToAPInt to  
							
							 
							
							... 
							
							
							
							make it clearer what the function does.  No functional
change.
llvm-svn: 57325 
							
						 
						
							2008-10-09 18:53:47 +00:00  
						
					 
				
					
						
							
							
								 
								Dale Johannesen
							
						 
						
							 
							
							
							
							
								
							
							
								7221af384d 
								
							 
						 
						
							
							
								
								Mark negative-zero-to-int conversion as Inexact,  
							
							 
							
							... 
							
							
							
							since -0.0 can't be represented as an int.
This prevents llvm from reducing -0.0 to a
load-and-convert of int 0.  Fixes
ieee.exp/mzero[2356].c in gcc testsuite.
llvm-svn: 57224 
							
						 
						
							2008-10-07 00:40:01 +00:00  
						
					 
				
					
						
							
							
								 
								Dale Johannesen
							
						 
						
							 
							
							
							
							
								
							
							
								6c6729f3a8 
								
							 
						 
						
							
							
								
								Be more precise about which conversions of NaNs  
							
							 
							
							... 
							
							
							
							are Inexact.  (These are not Inexact as defined
by IEEE754, but that seems like a reasonable way
to abstract what happens:  information is lost.)
llvm-svn: 57218 
							
						 
						
							2008-10-06 22:59:10 +00:00  
						
					 
				
					
						
							
							
								 
								Dale Johannesen
							
						 
						
							 
							
							
							
							
								
							
							
								6271b0a83c 
								
							 
						 
						
							
							
								
								Temporarily revert functionality change from my previous patch;  
							
							 
							
							... 
							
							
							
							it is too aggressive.
llvm-svn: 57203 
							
						 
						
							2008-10-06 20:43:48 +00:00  
						
					 
				
					
						
							
							
								 
								Dale Johannesen
							
						 
						
							 
							
							
							
							
								
							
							
								fff2995532 
								
							 
						 
						
							
							
								
								Mark shortening NaN conversions as Inexact.  PR 2856.  
							
							 
							
							... 
							
							
							
							Improve description of unsupported formats.
llvm-svn: 57185 
							
						 
						
							2008-10-06 18:22:29 +00:00  
						
					 
				
					
						
							
							
								 
								Oscar Fuentes
							
						 
						
							 
							
							
							
							
								
							
							
								a229b3c9a7 
								
							 
						 
						
							
							
								
								Initial support for the CMake build system.  
							
							 
							
							... 
							
							
							
							llvm-svn: 56419 
							
						 
						
							2008-09-22 01:08:49 +00:00  
						
					 
				
					
						
							
							
								 
								Cedric Venet
							
						 
						
							 
							
							
							
							
								
							
							
								0f7b5666a2 
								
							 
						 
						
							
							
								
								Updating VC++ project.  
							
							 
							
							... 
							
							
							
							Adding one include file and correct one declaration from class to struct in order to make llvm compile on VC2005.
llvm-svn: 55279 
							
						 
						
							2008-08-24 11:56:40 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								205af9643d 
								
							 
						 
						
							
							
								
								Add raw_stream adaptors that write into an std::string and SmallVector/SmallString.  
							
							 
							
							... 
							
							
							
							llvm-svn: 55265 
							
						 
						
							2008-08-23 22:43:04 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								0c19df4871 
								
							 
						 
						
							
							
								
								Switch the asmprinter (.ll) and all the stuff it requires over to  
							
							 
							
							... 
							
							
							
							use raw_ostream instead of std::ostream.  Among other goodness,
this speeds up llvm-dis of kc++ with a release build from 0.85s
to 0.49s (88% faster).
Other interesting changes:
 1) This makes Value::print be non-virtual.
 2) AP[S]Int and ConstantRange can no longer print to ostream directly, 
    use raw_ostream instead.
 3) This fixes a bug in raw_os_ostream where it didn't flush itself 
    when destroyed.
 4) This adds a new SDNode::print method, instead of only allowing "dump".
A lot of APIs have both std::ostream and raw_ostream versions, it would
be useful to go through and systematically anihilate the std::ostream 
versions.
This passes dejagnu, but there may be minor fallout, plz let me know if
so and I'll fix it.
llvm-svn: 55263 
							
						 
						
							2008-08-23 22:23:09 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								da42964999 
								
							 
						 
						
							
							
								
								add #include  
							
							 
							
							... 
							
							
							
							llvm-svn: 55252 
							
						 
						
							2008-08-23 20:34:06 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								22b52c984a 
								
							 
						 
						
							
							
								
								add a simple mechanism for formatted output.  This gives raw_ostream's  
							
							 
							
							... 
							
							
							
							all the power and risk of fprintf format strings.  Use them like this:
  OS << format("%10.4f", 42.0) << "\n" << format("%x", 42) << '\n';
llvm-svn: 55246 
							
						 
						
							2008-08-23 19:23:10 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								0e44e0d7a8 
								
							 
						 
						
							
							
								
								Add a clear() method to FoldingSet.  
							
							 
							
							... 
							
							
							
							llvm-svn: 55210 
							
						 
						
							2008-08-23 00:42:16 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								d564f29957 
								
							 
						 
						
							
							
								
								improve support for systems that need unistd.h to get STDOUT_FILENO.  
							
							 
							
							... 
							
							
							
							Patch contributed by Bjorn Reese!
llvm-svn: 55179 
							
						 
						
							2008-08-22 15:45:00 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								3ad8ac90b6 
								
							 
						 
						
							
							
								
								Fix write() when the string being written is larger than the buffer.  This broke various ObjC testcases  
							
							 
							
							... 
							
							
							
							with very long symbol names.
llvm-svn: 55148 
							
						 
						
							2008-08-21 22:39:33 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								d2850538db 
								
							 
						 
						
							
							
								
								Move non-trivial methods out of line to avoid code-size bloat.  
							
							 
							
							... 
							
							
							
							llvm-svn: 55138 
							
						 
						
							2008-08-21 20:58:52 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								9371964f47 
								
							 
						 
						
							
							
								
								Use raw_ostream throughout the AsmPrinter.  
							
							 
							
							... 
							
							
							
							llvm-svn: 55092 
							
						 
						
							2008-08-21 00:14:44 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								1ac3e2545b 
								
							 
						 
						
							
							
								
								Move the fast-path (<=i64) cases of various APInt methods inline  
							
							 
							
							... 
							
							
							
							and the slow-path cases out of line.  This speeds up instcombine
a bit in real world cases.  Patch contributed by m-s.
llvm-svn: 55063 
							
						 
						
							2008-08-20 17:02:31 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								0f23237b0c 
								
							 
						 
						
							
							
								
								It's not necessary to check if a value is null before delete[].  
							
							 
							
							... 
							
							
							
							llvm-svn: 55053 
							
						 
						
							2008-08-20 14:55:37 +00:00