David Blaikie
							
						 
						
							 
							
							
							
							
								
							
							
								46a9f016c5 
								
							 
						 
						
							
							
								
								More dead code removal (using -Wunreachable-code)  
							
							 
							
							... 
							
							
							
							llvm-svn: 148578 
							
						 
						
							2012-01-20 21:51:11 +00:00  
						
					 
				
					
						
							
							
								 
								Michael J. Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								447762da85 
								
							 
						 
						
							
							
								
								Merge System into Support.  
							
							 
							
							... 
							
							
							
							llvm-svn: 120298 
							
						 
						
							2010-11-29 18:16:10 +00:00  
						
					 
				
					
						
							
							
								 
								Jeffrey Yasskin
							
						 
						
							 
							
							
							
							
								
							
							
								735b0ae247 
								
							 
						 
						
							
							
								
								Fix memcheck-found leaks: one false positive from using new[], and one true  
							
							 
							
							... 
							
							
							
							positive where pointers would be leaked on llvm_shutdown.
llvm-svn: 97759 
							
						 
						
							2010-03-04 22:15:01 +00:00  
						
					 
				
					
						
							
							
								 
								David Greene
							
						 
						
							 
							
							
							
							
								
							
							
								033d65581d 
								
							 
						 
						
							
							
								
								Do some cleanups suggested by Chris.  
							
							 
							
							... 
							
							
							
							llvm-svn: 87034 
							
						 
						
							2009-11-12 21:49:55 +00:00  
						
					 
				
					
						
							
							
								 
								David Greene
							
						 
						
							 
							
							
							
							
								
							
							
								81eb42d8ca 
								
							 
						 
						
							
							
								
								Make FixedStackPseudoSourceValue a first-class PseudoSourceValue by  
							
							 
							
							... 
							
							
							
							making it visible to clients and adding LLVM-style cast capability.
This will be used by AsmPrinter to determine when to emit spill comments
for an instruction.
llvm-svn: 87019 
							
						 
						
							2009-11-12 20:25:07 +00:00  
						
					 
				
					
						
							
							
								 
								Evan Cheng
							
						 
						
							 
							
							
							
							
								
							
							
								ea68c7c9a8 
								
							 
						 
						
							
							
								
								Add PseudoSourceValue::mayAlias. It returns true if the object can ever alias any LLVM IR value.  
							
							 
							
							... 
							
							
							
							llvm-svn: 85762 
							
						 
						
							2009-11-01 23:50:04 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								0997991252 
								
							 
						 
						
							
							
								
								pseudosourcevalue is also still using getGlobalContext(), so it isn't  
							
							 
							
							... 
							
							
							
							thread safe either.
llvm-svn: 85253 
							
						 
						
							2009-10-27 17:02:08 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								974e12b2d3 
								
							 
						 
						
							
							
								
								Remove includes of Support/Compiler.h that are no longer needed after the  
							
							 
							
							... 
							
							
							
							VISIBILITY_HIDDEN removal.
llvm-svn: 85043 
							
						 
						
							2009-10-25 06:57:41 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								02d5f77d26 
								
							 
						 
						
							
							
								
								Remove VISIBILITY_HIDDEN from class/struct found inside anonymous namespaces.  
							
							 
							
							... 
							
							
							
							Chris claims we should never have visibility_hidden inside any .cpp file but
that's still not true even after this commit.
llvm-svn: 85042 
							
						 
						
							2009-10-25 06:33:48 +00:00  
						
					 
				
					
						
							
							
								 
								Evan Cheng
							
						 
						
							 
							
							
							
							
								
							
							
								f0236e011e 
								
							 
						 
						
							
							
								
								Spill slots cannot alias.  
							
							 
							
							... 
							
							
							
							llvm-svn: 84432 
							
						 
						
							2009-10-18 19:58:47 +00:00  
						
					 
				
					
						
							
							
								 
								Evan Cheng
							
						 
						
							 
							
							
							
							
								
							
							
								0e9d9ca855 
								
							 
						 
						
							
							
								
								-Revert parts of 84326 and 84411. Distinquishing between fixed and non-fixed  
							
							 
							
							... 
							
							
							
							stack slots and giving them different PseudoSourceValue's did not fix the
problem of post-alloc scheduling miscompiling llvm itself.
- Apply Dan's conservative workaround by assuming any non fixed stack slots can
alias other memory locations. This means a load from spill slot #1  cannot 
move above a store of spill slot #2 . 
- Enable post-alloc scheduling for x86 at optimization leverl Default and above.
llvm-svn: 84424 
							
						 
						
							2009-10-18 18:16:27 +00:00  
						
					 
				
					
						
							
							
								 
								Evan Cheng
							
						 
						
							 
							
							
							
							
								
							
							
								8759585aba 
								
							 
						 
						
							
							
								
								Revert 84315 for now. Re-thinking the patch.  
							
							 
							
							... 
							
							
							
							llvm-svn: 84321 
							
						 
						
							2009-10-17 07:53:04 +00:00  
						
					 
				
					
						
							
							
								 
								Evan Cheng
							
						 
						
							 
							
							
							
							
								
							
							
								0818d87ed1 
								
							 
						 
						
							
							
								
								Rename getFixedStack to getStackObject. The stack objects represented are not  
							
							 
							
							... 
							
							
							
							necessarily fixed. Only those will negative frame indices are "fixed."
llvm-svn: 84315 
							
						 
						
							2009-10-17 06:22:26 +00:00  
						
					 
				
					
						
							
							
								 
								Duncan Sands
							
						 
						
							 
							
							
							
							
								
							
							
								9ed7b16bf3 
								
							 
						 
						
							
							
								
								Introduce and use convenience methods for getting pointer types  
							
							 
							
							... 
							
							
							
							where the element is of a basic builtin type.  For example, to get
an i8* use getInt8PtrTy.
llvm-svn: 83379 
							
						 
						
							2009-10-06 15:40:36 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								c0353bfff5 
								
							 
						 
						
							
							
								
								Give MachineMemOperand an operator<<, factoring out code from  
							
							 
							
							... 
							
							
							
							two different places for printing MachineMemOperands.
Drop the virtual from Value::dump and instead give Value a
protected virtual hook that can be overridden by subclasses
to implement custom printing. This lets printing be more
consistent, and simplifies printing of PseudoSourceValue
values.
llvm-svn: 82599 
							
						 
						
							2009-09-23 01:33:16 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								55f1c09e31 
								
							 
						 
						
							
							
								
								Push LLVMContexts through the IntegerType APIs.  
							
							 
							
							... 
							
							
							
							llvm-svn: 78948 
							
						 
						
							2009-08-13 21:58:54 +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
							
						 
						
							 
							
							
							
							
								
							
							
								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  
						
					 
				
					
						
							
							
								 
								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  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								ee1cd1781a 
								
							 
						 
						
							
							
								
								Have PseudoSourceValue override Value::dump, so that it works  
							
							 
							
							... 
							
							
							
							on PseudoSourceValue values. This also fixes a FIXME in
lib/VMCode/AsmWriter.cpp.
llvm-svn: 60507 
							
						 
						
							2008-12-03 21:37:21 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								a5b15bd09b 
								
							 
						 
						
							
							
								
								Remove the std::ostream form of PseudoSourceValue's print,  
							
							 
							
							... 
							
							
							
							which isn't needed anymore.
llvm-svn: 55419 
							
						 
						
							2008-08-27 16:19:44 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								a078d83e17 
								
							 
						 
						
							
							
								
								simplify PseudoSourceValue printing a bit.  Unnest all of PseudoSourceValue.cpp from the llvm namespace.  
							
							 
							
							... 
							
							
							
							llvm-svn: 55293 
							
						 
						
							2008-08-24 20:37:32 +00:00  
						
					 
				
					
						
							
							
								 
								Evan Cheng
							
						 
						
							 
							
							
							
							
								
							
							
								72e7d91591 
								
							 
						 
						
							
							
								
								Print PseudoSourceValue.  
							
							 
							
							... 
							
							
							
							llvm-svn: 55291 
							
						 
						
							2008-08-24 18:51:20 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								09b0448dbc 
								
							 
						 
						
							
							
								
								Enable rematerialization of constants using AliasAnalysis::pointsToConstantMemory,  
							
							 
							
							... 
							
							
							
							and knowledge of PseudoSourceValues. This unfortunately isn't sufficient to allow
constants to be rematerialized in PIC mode -- the extra indirection is a
complication.
llvm-svn: 54000 
							
						 
						
							2008-07-25 00:02:30 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								793357b115 
								
							 
						 
						
							
							
								
								Fix edito in the PseudoSourceValue name list.  
							
							 
							
							... 
							
							
							
							llvm-svn: 53562 
							
						 
						
							2008-07-14 17:45:47 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								02c7c6cb33 
								
							 
						 
						
							
							
								
								Include a frame index in the "fixed stack" pseudo source value  
							
							 
							
							... 
							
							
							
							instead of using the frame index for the SVOffset, which was
inconsistent.
llvm-svn: 53486 
							
						 
						
							2008-07-11 22:44:52 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								bdc24adaaf 
								
							 
						 
						
							
							
								
								A quick nm audit turned up several fixed tables and objects that were  
							
							 
							
							... 
							
							
							
							marked read-write. Use const so that they can be allocated in a
read-only segment.
llvm-svn: 48800 
							
						 
						
							2008-03-25 21:45:14 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								7b5d916c98 
								
							 
						 
						
							
							
								
								From Chris' review: fix 80 column violations  
							
							 
							
							... 
							
							
							
							llvm-svn: 46961 
							
						 
						
							2008-02-11 18:57:43 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								16d4bc3dc0 
								
							 
						 
						
							
							
								
								Follow Chris' suggestion; change the PseudoSourceValue accessors  
							
							 
							
							... 
							
							
							
							to return pointers instead of references, since this is always what
is needed.
llvm-svn: 46857 
							
						 
						
							2008-02-07 18:41:25 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								2d489b5081 
								
							 
						 
						
							
							
								
								Re-apply the memory operand changes, with a fix for the static  
							
							 
							
							... 
							
							
							
							initializer problem, a minor tweak to the way the
DAGISelEmitter finds load/store nodes, and a renaming of the
new PseudoSourceValue objects.
llvm-svn: 46827 
							
						 
						
							2008-02-06 22:27:42 +00:00  
						
					 
				
					
						
							
							
								 
								Evan Cheng
							
						 
						
							 
							
							
							
							
								
							
							
								27b32b87ed 
								
							 
						 
						
							
							
								
								Revert 46556 and 46585. Dan please fix the PseudoSourceValue problem and re-commit.  
							
							 
							
							... 
							
							
							
							llvm-svn: 46623 
							
						 
						
							2008-01-31 21:00:00 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								02b6792dd4 
								
							 
						 
						
							
							
								
								Add a new PseudoSourceValue class, which will be used to help track  
							
							 
							
							... 
							
							
							
							memory reference information in the backend. Most of this was written by
Florian Brander, cleanup and updating to TOT by me.
llvm-svn: 46556 
							
						 
						
							2008-01-30 16:35:31 +00:00