Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								87f75f75be 
								
							 
						 
						
							
							
								
								If a metadata operand is seeded in value map and the metadata should also be seeded in value map. This is not limited to function local metadata.  
							
							 
							
							... 
							
							
							
							Failure to seed metdata in such cases causes troubles when in a cloned module, metadata from a new module refers to values in old module. Usually this results in mysterious bugpoint crashes. For example,
 Checking to see if we can delete global inits: Unknown constant!
 UNREACHABLE executed at /d/g/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:904!
llvm-svn: 106592 
							
						 
						
							2010-06-22 22:53:21 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								f040dec68a 
								
							 
						 
						
							
							
								
								Revert 106528. It is causing self host failures.  
							
							 
							
							... 
							
							
							
							llvm-svn: 106529 
							
						 
						
							2010-06-22 06:14:09 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								b195eb4acf 
								
							 
						 
						
							
							
								
								Do not rely on DenseMap slot which can be easily invalidated when DenseMap grows.  
							
							 
							
							... 
							
							
							
							llvm-svn: 106528 
							
						 
						
							2010-06-22 05:16:56 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								2176643241 
								
							 
						 
						
							
							
								
								Rename ValueMapTy as ValueToValueMapTy to clearly indicate that this has no replationship with ADT/ValueMap.  
							
							 
							
							... 
							
							
							
							llvm-svn: 101950 
							
						 
						
							2010-04-20 22:24:18 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								382b969647 
								
							 
						 
						
							
							
								
								There is no need to install ValueMapper.h header.  
							
							 
							
							... 
							
							
							
							llvm-svn: 101949 
							
						 
						
							2010-04-20 22:18:31 +00:00  
						
					 
				
					
						
							
							
								 
								Victor Hernandez
							
						 
						
							 
							
							
							
							
								
							
							
								2b17e2a452 
								
							 
						 
						
							
							
								
								Avoid extra calls to MD->getNumOperands()  
							
							 
							
							... 
							
							
							
							llvm-svn: 94618 
							
						 
						
							2010-01-26 23:29:09 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								24716b6c63 
								
							 
						 
						
							
							
								
								It turns out that this #include is needed because otherwise  
							
							 
							
							... 
							
							
							
							ValueMapper.cpp ends up calling an out of line 
__ZNK4llvm12PATypeHolder3getEv, which is a template and llvm-config
determines arbitrarily to use the one in libipo.  This sucks, but
keeping the #include is a reasonable workaround.
llvm-svn: 94103 
							
						 
						
							2010-01-21 21:29:25 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								9889b4be04 
								
							 
						 
						
							
							
								
								unbreak the build, apparently without this transformutils starts depending on libipa?  
							
							 
							
							... 
							
							
							
							llvm-svn: 94102 
							
						 
						
							2010-01-21 21:20:51 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								e39837d5ee 
								
							 
						 
						
							
							
								
								tidy up  
							
							 
							
							... 
							
							
							
							llvm-svn: 94101 
							
						 
						
							2010-01-21 21:05:54 +00:00  
						
					 
				
					
						
							
							
								 
								Victor Hernandez
							
						 
						
							 
							
							
							
							
								
							
							
								a9ad174b49 
								
							 
						 
						
							
							
								
								Don't need to include IntrinsicInst.h any more  
							
							 
							
							... 
							
							
							
							llvm-svn: 94092 
							
						 
						
							2010-01-21 19:33:59 +00:00  
						
					 
				
					
						
							
							
								 
								Victor Hernandez
							
						 
						
							 
							
							
							
							
								
							
							
								d089f4e10b 
								
							 
						 
						
							
							
								
								No need to map NULL operands of metadata  
							
							 
							
							... 
							
							
							
							llvm-svn: 94091 
							
						 
						
							2010-01-21 19:26:20 +00:00  
						
					 
				
					
						
							
							
								 
								Victor Hernandez
							
						 
						
							 
							
							
							
							
								
							
							
								f2462407ee 
								
							 
						 
						
							
							
								
								Switch Elts from vector to SmallVector  
							
							 
							
							... 
							
							
							
							llvm-svn: 93989 
							
						 
						
							2010-01-20 06:56:16 +00:00  
						
					 
				
					
						
							
							
								 
								Victor Hernandez
							
						 
						
							 
							
							
							
							
								
							
							
								5fa88d4e30 
								
							 
						 
						
							
							
								
								Map operands of all function-local metadata, not just metadata passed to llvm.dbg.declare intrinsics  
							
							 
							
							... 
							
							
							
							llvm-svn: 93979 
							
						 
						
							2010-01-20 05:49:59 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								696cb8d410 
								
							 
						 
						
							
							
								
								While mapping llvm.dbg.declare intrinsic manually map its operand, if possible,  
							
							 
							
							... 
							
							
							
							because it points to an alloca instruction through metadata.
llvm-svn: 93757 
							
						 
						
							2010-01-18 19:52:14 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								aa99c94e2a 
								
							 
						 
						
							
							
								
								Revert 85678/85680.  The decision is to stay with the current form of  
							
							 
							
							... 
							
							
							
							indirectbr, thus we don't need "blockaddr(@func , null)".  Eliminate it
for simplicity.
llvm-svn: 85699 
							
						 
						
							2009-11-01 01:27:45 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								3c89c53f35 
								
							 
						 
						
							
							
								
								adjust a couple xforms to work with null bb's in BlockAddress.  
							
							 
							
							... 
							
							
							
							llvm-svn: 85680 
							
						 
						
							2009-10-31 20:13:24 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								ee8b951e73 
								
							 
						 
						
							
							
								
								teach various passes about blockaddress.  We no longer  
							
							 
							
							... 
							
							
							
							crash on any clang tests.
llvm-svn: 85465 
							
						 
						
							2009-10-29 01:21:20 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								be060382e9 
								
							 
						 
						
							
							
								
								teach ValueMapper about BlockAddress', making bugpoint a lot more useful.  
							
							 
							
							... 
							
							
							
							llvm-svn: 85458 
							
						 
						
							2009-10-29 00:31:02 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								cf5a47d63d 
								
							 
						 
						
							
							
								
								unindent massive blocks, no functionality change.  
							
							 
							
							... 
							
							
							
							llvm-svn: 85457 
							
						 
						
							2009-10-29 00:28:30 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								ef41a1ce3c 
								
							 
						 
						
							
							
								
								MapValue doesn't needs its LLVMContext argument.  
							
							 
							
							... 
							
							
							
							llvm-svn: 85020 
							
						 
						
							2009-10-24 23:37:16 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								a4f43fb5dd 
								
							 
						 
						
							
							
								
								Rename MDNode.h header. It defines MDnode and other metadata classes.  
							
							 
							
							... 
							
							
							
							New name is Metadata.h.
llvm-svn: 77370 
							
						 
						
							2009-07-28 21:49:47 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								4aa3295a65 
								
							 
						 
						
							
							
								
								Return ConstantVector to 2.5 API.  
							
							 
							
							... 
							
							
							
							llvm-svn: 77366 
							
						 
						
							2009-07-28 21:19:26 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								c2c7932c64 
								
							 
						 
						
							
							
								
								Change ConstantArray to 2.5 API.  
							
							 
							
							... 
							
							
							
							llvm-svn: 77347 
							
						 
						
							2009-07-28 18:32:17 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								45308b578b 
								
							 
						 
						
							
							
								
								Move ConstantStruct back to 2.5 API.  
							
							 
							
							... 
							
							
							
							llvm-svn: 77266 
							
						 
						
							2009-07-27 22:29:26 +00:00  
						
					 
				
					
						
							
							
								 
								Devang Patel
							
						 
						
							 
							
							
							
							
								
							
							
								de6f46c32e 
								
							 
						 
						
							
							
								
								Do not seed mstadata into the value map.  
							
							 
							
							... 
							
							
							
							llvm-svn: 77208 
							
						 
						
							2009-07-27 17:17:04 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								47db941fd3 
								
							 
						 
						
							
							
								
								Get rid of the Pass+Context magic.  
							
							 
							
							... 
							
							
							
							llvm-svn: 76702 
							
						 
						
							2009-07-22 00:24:57 +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  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								38264b1554 
								
							 
						 
						
							
							
								
								"LLVMContext* " --> "LLVMContext *"  
							
							 
							
							... 
							
							
							
							llvm-svn: 74878 
							
						 
						
							2009-07-06 23:00:19 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								e70b637033 
								
							 
						 
						
							
							
								
								More LLVMContext-ification.  
							
							 
							
							... 
							
							
							
							llvm-svn: 74807 
							
						 
						
							2009-07-05 22:41:43 +00:00  
						
					 
				
					
						
							
							
								 
								Nick Lewycky
							
						 
						
							 
							
							
							
							
								
							
							
								adbc284666 
								
							 
						 
						
							
							
								
								Give embedded metadata its own type instead of relying on EmptyStructTy.  
							
							 
							
							... 
							
							
							
							llvm-svn: 72610 
							
						 
						
							2009-05-30 05:06:04 +00:00  
						
					 
				
					
						
							
							
								 
								Gabor Greif
							
						 
						
							 
							
							
							
							
								
							
							
								5df4326d78 
								
							 
						 
						
							
							
								
								rewrite operand loops to use iterators  
							
							 
							
							... 
							
							
							
							llvm-svn: 51789 
							
						 
						
							2008-05-30 21:24:22 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								f3ebc3f3d2 
								
							 
						 
						
							
							
								
								Remove attribution from file headers, per discussion on llvmdev.  
							
							 
							
							... 
							
							
							
							llvm-svn: 45418 
							
						 
						
							2007-12-29 20:36:04 +00:00  
						
					 
				
					
						
							
							
								 
								Anton Korobeynikov
							
						 
						
							 
							
							
							
							
								
							
							
								98638aede6 
								
							 
						 
						
							
							
								
								Forget to commit users part of value mapper interface  
							
							 
							
							... 
							
							
							
							llvm-svn: 43940 
							
						 
						
							2007-11-09 12:27:04 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								06c60b6032 
								
							 
						 
						
							
							
								
								Fix comments about vectors to use the current wording.  
							
							 
							
							... 
							
							
							
							llvm-svn: 39921 
							
						 
						
							2007-07-16 14:29:03 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								1e48acb858 
								
							 
						 
						
							
							
								
								fix an obscure and tricky bug the inliner can hit sometimes.  
							
							 
							
							... 
							
							
							
							llvm-svn: 34531 
							
						 
						
							2007-02-23 19:54:30 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								d84d35ba70 
								
							 
						 
						
							
							
								
								For PR1195:  
							
							 
							
							... 
							
							
							
							Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and
PackedTyID -> VectorTyID. No functional changes.
llvm-svn: 34293 
							
						 
						
							2007-02-15 02:26:10 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								1bfc7ab6a7 
								
							 
						 
						
							
							
								
								Switch inliner over to use DenseMap instead of std::map for ValueMap.  This  
							
							 
							
							... 
							
							
							
							speeds up the inliner 16%.
llvm-svn: 33801 
							
						 
						
							2007-02-03 00:08:31 +00:00  
						
					 
				
					
						
							
							
								 
								Zhou Sheng
							
						 
						
							 
							
							
							
							
								
							
							
								75b871fb1e 
								
							 
						 
						
							
							
								
								For PR1043:  
							
							 
							
							... 
							
							
							
							Merge ConstantIntegral and ConstantBool into ConstantInt.
Remove ConstantIntegral and ConstantBool from LLVM.
llvm-svn: 33073 
							
						 
						
							2007-01-11 12:24:14 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								19247f36ea 
								
							 
						 
						
							
							
								
								eliminate some ugly code, using ConstantExpr::getWithOperands instead.  
							
							 
							
							... 
							
							
							
							llvm-svn: 29149 
							
						 
						
							2006-07-14 22:21:31 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								3df13f4f22 
								
							 
						 
						
							
							
								
								Implement a new method, CloneAndPruneFunctionInto, as documented.  
							
							 
							
							... 
							
							
							
							llvm-svn: 28519 
							
						 
						
							2006-05-27 01:22:24 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								17bd60588c 
								
							 
						 
						
							
							
								
								Add supprot for shufflevector  
							
							 
							
							... 
							
							
							
							llvm-svn: 27513 
							
						 
						
							2006-04-08 01:19:12 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								8ec0205de4 
								
							 
						 
						
							
							
								
								Fix inlining of insert/extract element constantexprs  
							
							 
							
							... 
							
							
							
							llvm-svn: 27478 
							
						 
						
							2006-04-07 04:41:03 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								1b2436a624 
								
							 
						 
						
							
							
								
								add valuemapper support for inline asm  
							
							 
							
							... 
							
							
							
							llvm-svn: 27332 
							
						 
						
							2006-04-01 23:17:11 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								42e0ba09aa 
								
							 
						 
						
							
							
								
								teach the inliner to work with packed constants  
							
							 
							
							... 
							
							
							
							llvm-svn: 27161 
							
						 
						
							2006-03-27 05:50:18 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								120f31b1fd 
								
							 
						 
						
							
							
								
								teach the cloner to handle inline asms  
							
							 
							
							... 
							
							
							
							llvm-svn: 25633 
							
						 
						
							2006-01-26 01:55:22 +00:00  
						
					 
				
					
						
							
							
								 
								Misha Brukman
							
						 
						
							 
							
							
							
							
								
							
							
								b1c9317bb4 
								
							 
						 
						
							
							
								
								Remove trailing whitespace  
							
							 
							
							... 
							
							
							
							llvm-svn: 21427 
							
						 
						
							2005-04-21 23:48:37 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								7e6d4a12b5 
								
							 
						 
						
							
							
								
								Add support for UndefValue  
							
							 
							
							... 
							
							
							
							llvm-svn: 17046 
							
						 
						
							2004-10-16 18:10:31 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								889d346e6e 
								
							 
						 
						
							
							
								
								Add value mapper support for select constant exprs.  This should fix a bug  
							
							 
							
							... 
							
							
							
							Nate ran into when bugpointing siod.  This fix should go into LLVM 1.3
llvm-svn: 15712 
							
						 
						
							2004-08-13 02:43:19 +00:00  
						
					 
				
					
						
							
							
								 
								Alkis Evlogimenos
							
						 
						
							 
							
							
							
							
								
							
							
								832437255d 
								
							 
						 
						
							
							
								
								Stop using getValues().  
							
							 
							
							... 
							
							
							
							llvm-svn: 15487 
							
						 
						
							2004-08-04 08:44:43 +00:00