6dc4a8bc2c 
								
							 
						 
						
							
							
								
								Fix some cases where StringRef was being passed by const reference. Remove const from some other StringRefs since its implicitly const already.  
							
							... 
							
							
							
							llvm-svn: 216820 
							
						 
						
							2014-08-30 16:48:02 +00:00  
				
					
						
							
							
								 
						
							
								4fa2fd12ca 
								
							 
						 
						
							
							
								
								SubTargetFeature.cpp: it seems the size of this SmallVector should be 3  
							
							... 
							
							
							
							because some subtarget feature strings have three components.
llvm-svn: 215339 
							
						 
						
							2014-08-11 02:21:32 +00:00  
				
					
						
							
							
								 
						
							
								addf51ddde 
								
							 
						 
						
							
							
								
								Make the split function use StringRef::split.  
							
							... 
							
							
							
							llvm-svn: 208723 
							
						 
						
							2014-05-13 19:55:17 +00:00  
				
					
						
							
							
								 
						
							
								9c928478f4 
								
							 
						 
						
							
							
								
								Use a range based for loop for the SubtargetFeatures print function.  
							
							... 
							
							
							
							llvm-svn: 208132 
							
						 
						
							2014-05-06 21:20:29 +00:00  
				
					
						
							
							
								 
						
							
								0e6f41c659 
								
							 
						 
						
							
							
								
								Fix odd formatting that snuck into last patch.  
							
							... 
							
							
							
							llvm-svn: 208130 
							
						 
						
							2014-05-06 21:04:27 +00:00  
				
					
						
							
							
								 
						
							
								dc5072d60e 
								
							 
						 
						
							
							
								
								ArrayRef-ize the Feature and Processor tables for SubtargetFeatures.  
							
							... 
							
							
							
							This removes arguments passed everywhere and allows the use of
standard iteration over lists.
Should be no functional change.
llvm-svn: 208127 
							
						 
						
							2014-05-06 20:23:04 +00:00  
				
					
						
							
							
								 
						
							
								a9f3a5cb37 
								
							 
						 
						
							
							
								
								Have the SubtargetFeature help routine just not return a number and  
							
							... 
							
							
							
							fall back to the normal path without a cpu. While doing this fix
llc to just exit when we don't have a module to process instead of
asserting.
llvm-svn: 208102 
							
						 
						
							2014-05-06 16:29:50 +00:00  
				
					
						
							
							
								 
						
							
								7eba3f90ae 
								
							 
						 
						
							
							
								
								Revert "Walk back commits for unused function parameters - they're still being"  
							
							... 
							
							
							
							this reapplies 208012 and 208002.
llvm-svn: 208037 
							
						 
						
							2014-05-06 02:37:26 +00:00  
				
					
						
							
							
								 
						
							
								4b33ec96d3 
								
							 
						 
						
							
							
								
								Walk back commits for unused function parameters - they're still being  
							
							... 
							
							
							
							used via dragonegg for now.
llvm-svn: 208016 
							
						 
						
							2014-05-05 23:26:59 +00:00  
				
					
						
							
							
								 
						
							
								80f12c2349 
								
							 
						 
						
							
							
								
								Remove a now unnecessary function since all calls have one version  
							
							... 
							
							
							
							and inline it into its caller.
llvm-svn: 208012 
							
						 
						
							2014-05-05 22:36:07 +00:00  
				
					
						
							
							
								 
						
							
								fbed044fa3 
								
							 
						 
						
							
							
								
								Remove a call to std::exit in a library. Make "Help" return  
							
							... 
							
							
							
							a 0 as a default answer.
llvm-svn: 208009 
							
						 
						
							2014-05-05 22:01:47 +00:00  
				
					
						
							
							
								 
						
							
								6beaa8adb8 
								
							 
						 
						
							
							
								
								Remove unused argument from AddFeature.  
							
							... 
							
							
							
							llvm-svn: 208002 
							
						 
						
							2014-05-05 21:40:44 +00:00  
				
					
						
							
							
								 
						
							
								bb694de649 
								
							 
						 
						
							
							
								
								[C++11] More 'nullptr' conversion or in some cases just using a boolean check instead of comparing to nullptr.  
							
							... 
							
							
							
							llvm-svn: 206129 
							
						 
						
							2014-04-13 04:57:38 +00:00  
				
					
						
							
							
								 
						
							
								eab7515385 
								
							 
						 
						
							
							
								
								Reverting r199886 (Prevent repetitive warnings for unrecognized processors and features)  
							
							... 
							
							
							
							llvm-svn: 200083 
							
						 
						
							2014-01-25 16:56:18 +00:00  
				
					
						
							
							
								 
						
							
								a515896343 
								
							 
						 
						
							
							
								
								Prevent repetitive warnings for unrecognized processors and features  
							
							... 
							
							
							
							llvm-svn: 199886 
							
						 
						
							2014-01-23 11:31:38 +00:00  
				
					
						
							
							
								 
						
							
								5357df6290 
								
							 
						 
						
							
							
								
								MC: Don't assume incoming StringRef's are null terminated.  
							
							... 
							
							
							
							This can happen when processing command line arguments, which
are often stored as std::string's and later turned into
StringRef's via std::string::data().  Unfortunately this
is not guaranteed to return a null-terminated string
until C++11, causing breakage on platforms that don't do this.
llvm-svn: 192558 
							
						 
						
							2013-10-13 22:09:26 +00:00  
				
					
						
							
							
								 
						
							
								41d630f448 
								
							 
						 
						
							
							
								
								Fix the documentation of getDefaultSubtargetFeatures.  
							
							... 
							
							
							
							Patch by David Nadlinger.
llvm-svn: 192098 
							
						 
						
							2013-10-07 13:34:05 +00:00  
				
					
						
							
							
								 
						
							
								a74129adad 
								
							 
						 
						
							
							
								
								Symbol hygiene: Make sure declarations and definitions match, make helper functions static.  
							
							... 
							
							
							
							llvm-svn: 166376 
							
						 
						
							2012-10-20 12:53:26 +00:00  
				
					
						
							
							
								 
						
							
								54b69d4c0d 
								
							 
						 
						
							
							
								
								Remove template from function that is only used with one type after r165092.  
							
							... 
							
							
							
							llvm-svn: 165203 
							
						 
						
							2012-10-04 05:18:31 +00:00  
				
					
						
							
							
								 
						
							
								85e7a40232 
								
							 
						 
						
							
							
								
								Remove unused function that used to get itineraries from SubTargetFeatures. This is done from MCSubTargetInfo these days.  
							
							... 
							
							
							
							llvm-svn: 165092 
							
						 
						
							2012-10-03 06:26:11 +00:00  
				
					
						
							
							
								 
						
							
								49d684e1e2 
								
							 
						 
						
							
							
								
								Release build: guard dump functions with  
							
							... 
							
							
							
							"#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)"
No functional change. Update r163344.
llvm-svn: 163679 
							
						 
						
							2012-09-12 05:06:18 +00:00  
				
					
						
							
							
								 
						
							
								c3366ccecb 
								
							 
						 
						
							
							
								
								Release build: guard dump functions with "ifndef NDEBUG"  
							
							... 
							
							
							
							No functional change.
llvm-svn: 163344 
							
						 
						
							2012-09-06 19:55:56 +00:00  
				
					
						
							
							
								 
						
							
								77198de4d6 
								
							 
						 
						
							
							
								
								Constify subtarget info properly so that we dont cast away the const in  
							
							... 
							
							
							
							the SubtargetInfoKV tables. Found by gcc48 -Wcast-qual.
llvm-svn: 163251 
							
						 
						
							2012-09-05 21:43:57 +00:00  
				
					
						
							
							
								 
						
							
								dc1e36e9f5 
								
							 
						 
						
							
							
								
								Tidy up. Trailing whitespace.  
							
							... 
							
							
							
							llvm-svn: 156602 
							
						 
						
							2012-05-11 01:41:30 +00:00  
				
					
						
							
							
								 
						
							
								20baffb257 
								
							 
						 
						
							
							
								
								Replace (Lower|Upper)caseString in favor of StringRef's newest methods.  
							
							... 
							
							
							
							llvm-svn: 143891 
							
						 
						
							2011-11-06 20:37:06 +00:00  
				
					
						
							
							
								 
						
							
								cc863b2bb6 
								
							 
						 
						
							
							
								
								Let printf do the formatting instead aligning strings ourselves.  
							
							... 
							
							
							
							While at it, merge some format strings.
llvm-svn: 142140 
							
						 
						
							2011-10-16 16:30:34 +00:00  
				
					
						
							
							
								 
						
							
								91111d2706 
								
							 
						 
						
							
							
								
								Change createAsmParser to take a MCSubtargetInfo instead of triple,  
							
							... 
							
							
							
							CPU, and feature string. Parsing some asm directives can change
subtarget state (e.g. .code 16) and it must be reflected in other
modules (e.g. MCCodeEmitter). That is, the MCSubtargetInfo instance
must be shared.
llvm-svn: 134795 
							
						 
						
							2011-07-09 05:47:46 +00:00  
				
					
						
							
							
								 
						
							
								1a72add615 
								
							 
						 
						
							
							
								
								Compute feature bits at time of MCSubtargetInfo initialization.  
							
							... 
							
							
							
							llvm-svn: 134606 
							
						 
						
							2011-07-07 07:07:08 +00:00  
				
					
						
							
							
								 
						
							
								c88d6d402a 
								
							 
						 
						
							
							
								
								Eliminate one extra conversion.  
							
							... 
							
							
							
							llvm-svn: 134240 
							
						 
						
							2011-07-01 16:59:30 +00:00  
				
					
						
							
							
								 
						
							
								92da450ae7 
								
							 
						 
						
							
							
								
								Another misuse of StringRef. MSVC is very sensitive to that kind of error.  
							
							... 
							
							
							
							llvm-svn: 134236 
							
						 
						
							2011-07-01 09:23:41 +00:00  
				
					
						
							
							
								 
						
							
								968af4fee2 
								
							 
						 
						
							
							
								
								Fix use after free.  
							
							... 
							
							
							
							llvm-svn: 134234 
							
						 
						
							2011-07-01 04:40:50 +00:00  
				
					
						
							
							
								 
						
							
								d8e27a584e 
								
							 
						 
						
							
							
								
								Switch SubtargetFeatures from std::string to StringRef.  
							
							... 
							
							
							
							llvm-svn: 134219 
							
						 
						
							2011-07-01 00:23:10 +00:00  
				
					
						
							
							
								 
						
							
								fe6e405e8c 
								
							 
						 
						
							
							
								
								Fix the ridiculous SubtargetFeatures API where it implicitly expects CPU name to  
							
							... 
							
							
							
							be the first encoded as the first feature. It then uses the CPU name to look up
features / scheduling itineray even though clients know full well the CPU name
being used to query these properties.
The fix is to just have the clients explictly pass the CPU name!
llvm-svn: 134127 
							
						 
						
							2011-06-30 01:53:36 +00:00  
				
					
						
							
							
								 
						
							
								8264e272a9 
								
							 
						 
						
							
							
								
								Sink SubtargetFeature and TargetInstrItineraries (renamed MCInstrItineraries) into MC.  
							
							... 
							
							
							
							llvm-svn: 134049 
							
						 
						
							2011-06-29 01:14:12 +00:00