163b890dfb 
								
							 
						 
						
							
							
								
								- Dramatically simplify the Constant::mutateReferences implementation,  
							
							... 
							
							
							
							allowing it to be called on all constant types (structures/arrays)
llvm-svn: 4160 
							
						 
						
							2002-10-14 03:30:23 +00:00  
				
					
						
							
							
								 
						
							
								69ce8674b5 
								
							 
						 
						
							
							
								
								- Rename Instruction::First*Op to *OpsBegin, and Num*Ops to *OpsEnd to  
							
							... 
							
							
							
							reflect the fact that it's a range being defined.
llvm-svn: 4147 
							
						 
						
							2002-10-13 19:39:16 +00:00  
				
					
						
							
							
								 
						
							
								b1dd9bbc68 
								
							 
						 
						
							
							
								
								- Add new Constant::replaceUsesOfWithOnConstant which has an end result  
							
							... 
							
							
							
							similar to User::replaceUsesOfWith but actually does the right thing for
    constants.
llvm-svn: 4102 
							
						 
						
							2002-10-09 23:12:25 +00:00  
				
					
						
							
							
								 
						
							
								0d779712e7 
								
							 
						 
						
							
							
								
								Fix bug: Assembler/2002-10-08-LargeArrayPerformance.ll by using  
							
							... 
							
							
							
							std::vector::reserve when possible
llvm-svn: 4085 
							
						 
						
							2002-10-08 23:33:52 +00:00  
				
					
						
							
							
								 
						
							
								426752738b 
								
							 
						 
						
							
							
								
								include/llvm/DataTypes.h includes this #define so we don't need it anymore  
							
							... 
							
							
							
							llvm-svn: 3708 
							
						 
						
							2002-09-13 22:24:57 +00:00  
				
					
						
							
							
								 
						
							
								236c129844 
								
							 
						 
						
							
							
								
								Give better assertion message for error conditions  
							
							... 
							
							
							
							llvm-svn: 3680 
							
						 
						
							2002-09-11 01:21:04 +00:00  
				
					
						
							
							
								 
						
							
								b0b412e66e 
								
							 
						 
						
							
							
								
								- Renamed Type::isIntegral() to Type::isInteger()  
							
							... 
							
							
							
							- Added new method Type::isIntegral() that is the same as isInteger, but
    also accepts bool.
llvm-svn: 3574 
							
						 
						
							2002-09-03 01:08:28 +00:00  
				
					
						
							
							
								 
						
							
								81fabb05e5 
								
							 
						 
						
							
							
								
								Add support for turning an array of characters into a string.  
							
							... 
							
							
							
							llvm-svn: 3509 
							
						 
						
							2002-08-26 17:53:56 +00:00  
				
					
						
							
							
								 
						
							
								0c6e0b9042 
								
							 
						 
						
							
							
								
								- ConstantPointerRefs are now automatically removed from the module table  
							
							... 
							
							
							
							when they are destroyed, which makes Constant::destroyConstant an actually
    useful external interface.  Expose these methods publicly.
  - Implement destroyConstant on ConstPointerNull so that destroyConstant can
    be used on any derived type constant safely.
llvm-svn: 3379 
							
						 
						
							2002-08-18 00:40:04 +00:00  
				
					
						
							
							
								 
						
							
								330b7ac76c 
								
							 
						 
						
							
							
								
								Remove support for Not ConstantExpr.  This simplifies the unary case to only  
							
							... 
							
							
							
							have to support the cast instruction, so the function is renamed to getCast.
llvm-svn: 3328 
							
						 
						
							2002-08-14 18:24:09 +00:00  
				
					
						
							
							
								 
						
							
								31408f7a80 
								
							 
						 
						
							
							
								
								Return null on failure, instead of aborting.  
							
							... 
							
							
							
							llvm-svn: 3308 
							
						 
						
							2002-08-14 17:12:13 +00:00  
				
					
						
							
							
								 
						
							
								b1585a90d9 
								
							 
						 
						
							
							
								
								- Rename ConstantGenericIntegral -> ConstantIntegral  
							
							... 
							
							
							
							- Add new methods to ConstantIntegral: getMaxValue, getMinValue,
   getAllOnesValue
llvm-svn: 3299 
							
						 
						
							2002-08-13 17:50:20 +00:00  
				
					
						
							
							
								 
						
							
								41e99a07f1 
								
							 
						 
						
							
							
								
								- Added a new superclass of ConstantBool/ConstantInt: ConstantGenericIntegral  
							
							... 
							
							
							
							- Moved InstCombine: isMaxValue, isMinValue, isAllOnesValue to Constants.h
llvm-svn: 3293 
							
						 
						
							2002-08-12 21:21:21 +00:00  
				
					
						
							
							
								 
						
							
								3cd8c56cbb 
								
							 
						 
						
							
							
								
								Cleanup ConstantExpr handling:  
							
							... 
							
							
							
							* Correctly delete TypeHandles in AsmParser.  In addition to not leaking
   memory, this prevents a bug that could have occurred when a type got
   resolved that the constexpr was using
 * Check for errors in the AsmParser instead of hitting assertion failures
   deep in the code
 * Simplify the interface to the ConstantExpr class, removing unneccesary
   parameters to the ::get* methods.
 * Rename the 'getelementptr' version of ConstantExpr::get to
   ConstantExpr::getGetElementPtr
llvm-svn: 3161 
							
						 
						
							2002-07-30 18:54:25 +00:00  
				
					
						
							
							
								 
						
							
								a82ee2df46 
								
							 
						 
						
							
							
								
								*** empty log message ***  
							
							... 
							
							
							
							llvm-svn: 3065 
							
						 
						
							2002-07-24 22:08:53 +00:00  
				
					
						
							
							
								 
						
							
								d9f4ac6680 
								
							 
						 
						
							
							
								
								* ConstExpr::getelementptr now takes a vector of Constants not Values  
							
							... 
							
							
							
							* Assert things instead of printing an error and returning null.
llvm-svn: 2949 
							
						 
						
							2002-07-18 00:14:50 +00:00  
				
					
						
							
							
								 
						
							
								991873fc5c 
								
							 
						 
						
							
							
								
								added std:: to cerr and endl  
							
							... 
							
							
							
							llvm-svn: 2914 
							
						 
						
							2002-07-16 00:02:17 +00:00  
				
					
						
							
							
								 
						
							
								4c48533b57 
								
							 
						 
						
							
							
								
								Ensure ConstExpr constants are unique using a  
							
							... 
							
							
							
							map of <opcode, operands> to ConstExpr.
llvm-svn: 2909 
							
						 
						
							2002-07-15 18:19:33 +00:00  
				
					
						
							
							
								 
						
							
								4e537b27d8 
								
							 
						 
						
							
							
								
								Added subclass ConstantExpr to represent expressions consructed from  
							
							... 
							
							
							
							constants using operators such as cast, getelementptr, add, shl, etc.
Note that a ConstantExpr can be of any type, so classof() in most
other subclasses (that discriminate by type) have to check that it
is also not a ConstantExpr.
llvm-svn: 2901 
							
						 
						
							2002-07-14 23:13:17 +00:00  
				
					
						
							
							
								 
						
							
								33422fedc2 
								
							 
						 
						
							
							
								
								*** empty log message ***  
							
							... 
							
							
							
							llvm-svn: 2813 
							
						 
						
							2002-06-30 16:25:25 +00:00  
				
					
						
							
							
								 
						
							
								949659c0e2 
								
							 
						 
						
							
							
								
								added include<iostream> for cerr  
							
							... 
							
							
							
							llvm-svn: 2800 
							
						 
						
							2002-06-25 22:04:00 +00:00  
				
					
						
							
							
								 
						
							
								113f4f4609 
								
							 
						 
						
							
							
								
								MEGAPATCH checkin.  
							
							... 
							
							
							
							For details, See: docs/2002-06-25-MegaPatchInfo.txt
llvm-svn: 2779 
							
						 
						
							2002-06-25 16:13:24 +00:00  
				
					
						
							
							
								 
						
							
								ca14237696 
								
							 
						 
						
							
							
								
								Split ConstantVals.h into Constant.h and Constants.h  
							
							... 
							
							
							
							llvm-svn: 2378 
							
						 
						
							2002-04-28 19:55:58 +00:00  
				
					
						
							
							
								 
						
							
								a85386f2de 
								
							 
						 
						
							
							
								
								* Change Constant::getNullConstant to Constant::getNullValue  
							
							... 
							
							
							
							* Remove some unused code
llvm-svn: 2324 
							
						 
						
							2002-04-27 02:25:43 +00:00  
				
					
						
							
							
								 
						
							
								1ce991d6b9 
								
							 
						 
						
							
							
								
								Move asmwriter/getStrValue cruft into AsmWriter.cpp file.  
							
							... 
							
							
							
							llvm-svn: 2300 
							
						 
						
							2002-04-18 18:53:33 +00:00  
				
					
						
							
							
								 
						
							
								25bf874ff5 
								
							 
						 
						
							
							
								
								Remove unneccesary cast  
							
							... 
							
							
							
							llvm-svn: 2269 
							
						 
						
							2002-04-16 21:36:29 +00:00  
				
					
						
							
							
								 
						
							
								6915f8fc3c 
								
							 
						 
						
							
							
								
								* Move include/llvm/Analysis/SlotCalculator.h to include/llvm/SlotCalculator.h  
							
							... 
							
							
							
							because the slot calculator is already part of the VMCore library.
* Rename incorporateMethod and purgeMethod to *Function
llvm-svn: 2154 
							
						 
						
							2002-04-07 22:49:37 +00:00  
				
					
						
							
							
								 
						
							
								e026e92e0e 
								
							 
						 
						
							
							
								
								Remove some gross code by using the VAlue::dump method to do debug dumps  
							
							... 
							
							
							
							llvm-svn: 2149 
							
						 
						
							2002-04-07 22:32:25 +00:00  
				
					
						
							
							
								 
						
							
								34208394d0 
								
							 
						 
						
							
							
								
								Fix Bug: test/Regression/Other/2002-04-07-InfConstant.ll  
							
							... 
							
							
							
							llvm-svn: 2142 
							
						 
						
							2002-04-07 08:42:53 +00:00  
				
					
						
							
							
								 
						
							
								9a11be8491 
								
							 
						 
						
							
							
								
								Fix bug: test/Regression/Other/2002-04-07-HexFloatConstants.ll  
							
							... 
							
							
							
							llvm-svn: 2141 
							
						 
						
							2002-04-07 08:37:11 +00:00  
				
					
						
							
							
								 
						
							
								7f74a56e24 
								
							 
						 
						
							
							
								
								Changes to build successfully with GCC 3.02  
							
							... 
							
							
							
							llvm-svn: 1503 
							
						 
						
							2002-01-20 22:54:45 +00:00  
				
					
						
							
							
								 
						
							
								6d6f01a488 
								
							 
						 
						
							
							
								
								Rename ConstPoolVals.cpp to Constants.cpp  
							
							... 
							
							
							
							llvm-svn: 1471 
							
						 
						
							2001-12-14 16:42:30 +00:00