Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								70e37278cb 
								
							 
						 
						
							
							
								
								Use System/DynamicLibrary instead of Support/DynamicLinker  
							
							 
							
							... 
							
							
							
							llvm-svn: 18357 
							
						 
						
							2004-11-29 14:11:29 +00:00  
						
					 
				
					
						
							
							
								 
								Misha Brukman
							
						 
						
							 
							
							
							
							
								
							
							
								624685d9a1 
								
							 
						 
						
							
							
								
								Implement ExecutionEngine::freeMachineCodeForFunction()  
							
							 
							
							... 
							
							
							
							llvm-svn: 17601 
							
						 
						
							2004-11-07 23:58:46 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								c833eddfe6 
								
							 
						 
						
							
							
								
								Fix library name.  
							
							 
							
							... 
							
							
							
							llvm-svn: 17307 
							
						 
						
							2004-10-28 05:37:24 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								f9676539bb 
								
							 
						 
						
							
							
								
								Changes to support rand48 tests  
							
							 
							
							... 
							
							
							
							llvm-svn: 17284 
							
						 
						
							2004-10-27 23:03:44 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								c1c320c335 
								
							 
						 
						
							
							
								
								We won't use automake  
							
							 
							
							... 
							
							
							
							llvm-svn: 17155 
							
						 
						
							2004-10-22 03:35:04 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								6a11a75f31 
								
							 
						 
						
							
							
								
								Initial automake generated Makefile template  
							
							 
							
							... 
							
							
							
							llvm-svn: 17136 
							
						 
						
							2004-10-18 23:55:41 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								98e541457b 
								
							 
						 
						
							
							
								
								Add support for unreachable  
							
							 
							
							... 
							
							
							
							llvm-svn: 17056 
							
						 
						
							2004-10-16 18:21:33 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								ace94df71f 
								
							 
						 
						
							
							
								
								Update to reflect changes in Makefile rules.  
							
							 
							
							... 
							
							
							
							llvm-svn: 16950 
							
						 
						
							2004-10-13 11:46:52 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								b84cbf2725 
								
							 
						 
						
							
							
								
								Initial version of automake Makefile.am file.  
							
							 
							
							... 
							
							
							
							llvm-svn: 16885 
							
						 
						
							2004-10-10 20:43:57 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								6614946443 
								
							 
						 
						
							
							
								
								Convert code to compile with vc7.1.  
							
							 
							
							... 
							
							
							
							Patch contributed by Paolo Invernizzi. Thanks Paolo!
llvm-svn: 16368 
							
						 
						
							2004-09-15 17:06:42 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								7c16caa336 
								
							 
						 
						
							
							
								
								Changes For Bug 352  
							
							 
							
							... 
							
							
							
							Move include/Config and include/Support into include/llvm/Config,
include/llvm/ADT and include/llvm/Support. From here on out, all LLVM
public header files must be under include/llvm/.
llvm-svn: 16137 
							
						 
						
							2004-09-01 22:55:40 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								5c4de70691 
								
							 
						 
						
							
							
								
								Fixes for PR341  
							
							 
							
							... 
							
							
							
							llvm-svn: 14848 
							
						 
						
							2004-07-15 02:51:32 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								60a7dd16c4 
								
							 
						 
						
							
							
								
								Fixes for PR341  
							
							 
							
							... 
							
							
							
							llvm-svn: 14847 
							
						 
						
							2004-07-15 02:51:31 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								eb04d9bcb4 
								
							 
						 
						
							
							
								
								Add #include <iostream> since Value.h does not #include it any more.  
							
							 
							
							... 
							
							
							
							llvm-svn: 14622 
							
						 
						
							2004-07-04 12:19:56 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								bcdadf3765 
								
							 
						 
						
							
							
								
								Move the IntrinsicLowering header into the CodeGen directory, as per PR346  
							
							 
							
							... 
							
							
							
							llvm-svn: 14266 
							
						 
						
							2004-06-20 07:49:54 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								6b7275996c 
								
							 
						 
						
							
							
								
								Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID()  
							
							 
							
							... 
							
							
							
							llvm-svn: 14201 
							
						 
						
							2004-06-17 18:19:28 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								3b9474ecd7 
								
							 
						 
						
							
							
								
								Add int ferror(FILE *)  
							
							 
							
							... 
							
							
							
							llvm-svn: 14194 
							
						 
						
							2004-06-16 02:56:40 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								cb9ccac8a7 
								
							 
						 
						
							
							
								
								These #includes are long dead  
							
							 
							
							... 
							
							
							
							llvm-svn: 13856 
							
						 
						
							2004-05-27 21:24:38 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								7b8a3b550a 
								
							 
						 
						
							
							
								
								Get rid of a wart: useless getFILE function is now a cast macro.  
							
							 
							
							... 
							
							
							
							llvm-svn: 13747 
							
						 
						
							2004-05-25 08:46:15 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								2d7efbbb93 
								
							 
						 
						
							
							
								
								Generalize the strlen size_t hack, for the benefit of the other external  
							
							 
							
							... 
							
							
							
							functions with wrappers that either take or return size_ts.
llvm-svn: 13296 
							
						 
						
							2004-05-01 06:42:15 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								ad373c8576 
								
							 
						 
						
							
							
								
								Go back to the interpreter main loop after performing intrinsic lowering,  
							
							 
							
							... 
							
							
							
							because 1) the first instruction might not be a call site, and
2) CS and SF.Caller were not getting set to point to the new call site
anyway (resulting in a crash on e.g. call %llvm.memset).
llvm-svn: 13122 
							
						 
						
							2004-04-23 18:05:28 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								2b2d7a99be 
								
							 
						 
						
							
							
								
								Add support for the select instruction  
							
							 
							
							... 
							
							
							
							llvm-svn: 13076 
							
						 
						
							2004-04-20 16:43:21 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								ca76d11a81 
								
							 
						 
						
							
							
								
								Adjust to new interface  
							
							 
							
							... 
							
							
							
							llvm-svn: 12646 
							
						 
						
							2004-04-04 19:47:06 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								092d260fc1 
								
							 
						 
						
							
							
								
								Adjust to new gep_type_iterator prototypes.  
							
							 
							
							... 
							
							
							
							llvm-svn: 12644 
							
						 
						
							2004-04-04 17:30:06 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								071a5e5649 
								
							 
						 
						
							
							
								
								Rename the intrinsic enum values for llvm.va_* from Intrinsic::va_* to  
							
							 
							
							... 
							
							
							
							Intrinsic::va*.  This avoid conflicting with macros in the stdlib.h file.
llvm-svn: 12356 
							
						 
						
							2004-03-13 00:24:00 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								234a2d4f19 
								
							 
						 
						
							
							
								
								remove obsolete comment  
							
							 
							
							... 
							
							
							
							llvm-svn: 11872 
							
						 
						
							2004-02-26 07:59:22 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								7b4be13f94 
								
							 
						 
						
							
							
								
								Represent va_list in interpreter as a (ec-stack-depth . var-arg-index)  
							
							 
							
							... 
							
							
							
							pair, and look up varargs in the execution stack every time, instead of
just pushing iterators (which can be invalidated during callFunction())
around.  (union GenericValue now has a "pair of uints" member, to support
this mechanism.) Fixes Bug 234.
llvm-svn: 11845 
							
						 
						
							2004-02-25 23:01:48 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								242ebf2523 
								
							 
						 
						
							
							
								
								Fix off-by-one in Interpreter::getFirstVarArg(), which was punishing  
							
							 
							
							... 
							
							
							
							any attempts by LLI to use varargs (possibly left over from the introduction
of IntrinsicLowering??)
llvm-svn: 11370 
							
						 
						
							2004-02-13 06:18:39 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								51f100753c 
								
							 
						 
						
							
							
								
								The Interpreter was failing the AtExit UnitTest. This fixes it.  
							
							 
							
							... 
							
							
							
							llvm-svn: 11367 
							
						 
						
							2004-02-13 05:48:00 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								fa829be4d3 
								
							 
						 
						
							
							
								
								Start using the new and improve interface to FunctionType arguments  
							
							 
							
							... 
							
							
							
							llvm-svn: 11224 
							
						 
						
							2004-02-09 04:14:01 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								fae8ab3088 
								
							 
						 
						
							
							
								
								rename the "exceptional" destination of an invoke instruction to the 'unwind' dest  
							
							 
							
							... 
							
							
							
							llvm-svn: 11202 
							
						 
						
							2004-02-08 21:44:31 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								1c0133ffd9 
								
							 
						 
						
							
							
								
								Don't pass anything to the IntrinsicLowering class that is not_intrinsic,  
							
							 
							
							... 
							
							
							
							because that makes it abort. Also, fix a typo in a comment.
This checkin brought to you by the "It only takes about 30 seconds to run
ENABLE_LLI tests on Shootout on zion, even if they all dump core" fund.
llvm-svn: 10844 
							
						 
						
							2004-01-14 06:02:53 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								5d236005b0 
								
							 
						 
						
							
							
								
								Clean up a lot of the code I added yesterday by exposing the IntrinsicLowering  
							
							 
							
							... 
							
							
							
							implementation from the TargetMachine directly.
llvm-svn: 10636 
							
						 
						
							2003-12-28 21:23:38 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								c8c6c03dda 
								
							 
						 
						
							
							
								
								Pass around IntrinsicLowering instances as appropriate.  
							
							 
							
							... 
							
							
							
							Reimplement the Interpreters implementation of va_* to be more direct.
llvm-svn: 10627 
							
						 
						
							2003-12-28 09:44:37 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								d94296c620 
								
							 
						 
						
							
							
								
								No longer run atExit functions from run()  
							
							 
							
							... 
							
							
							
							rename run to runFunction
llvm-svn: 10609 
							
						 
						
							2003-12-26 06:13:05 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								1809966189 
								
							 
						 
						
							
							
								
								Finegrainify namespacification  
							
							 
							
							... 
							
							
							
							llvm-svn: 10465 
							
						 
						
							2003-12-14 23:25:48 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								13a2e54e0c 
								
							 
						 
						
							
							
								
								Dynamically get the right-sized member of a GenericValue to hold a size_t, and  
							
							 
							
							... 
							
							
							
							use it to return the result of strlen.
llvm-svn: 10433 
							
						 
						
							2003-12-12 15:38:06 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								8657acc07e 
								
							 
						 
						
							
							
								
								Since we are using a gep_type_iterator, we apparently must get the type  
							
							 
							
							... 
							
							
							
							index by using I.getOperand() here. This was failing an assertion on
basically every struct access.
llvm-svn: 10426 
							
						 
						
							2003-12-12 05:13:05 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								2bba152fb8 
								
							 
						 
						
							
							
								
								Fix typo in comment.  Add prototype for getConstantExprValue().  
							
							 
							
							... 
							
							
							
							llvm-svn: 10390 
							
						 
						
							2003-12-11 00:23:28 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								5a8ec7d5f6 
								
							 
						 
						
							
							
								
								Add support for --debug-only=interpreter, to print out instrs before  
							
							 
							
							... 
							
							
							
							interpreting them.
Move support for getting the value of a ConstantExpr into
getConstantExprValue(), and add support for the rest of the different
kinds of ConstantExprs.  (I don't think I like ConstantExprs!)
This requires separate procedures executeShlInst() and executeShrInst().
Reduce the number of references to TheEE.
Get rid of an old comment mentioning annotations.
Fix exitCalled(), which was crashing the Interpreter. This was a
leftover from the return-value code refactoring.
llvm-svn: 10389 
							
						 
						
							2003-12-11 00:22:59 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								86ad4c05d0 
								
							 
						 
						
							
							
								
								implement method  
							
							 
							
							... 
							
							
							
							llvm-svn: 10321 
							
						 
						
							2003-12-08 08:23:04 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								f078808a2b 
								
							 
						 
						
							
							
								
								Do not depend on structure elements being of type UByteTy  
							
							 
							
							... 
							
							
							
							llvm-svn: 10224 
							
						 
						
							2003-11-25 20:44:56 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								d81ca471dd 
								
							 
						 
						
							
							
								
								Change LLI's internal representation of va_list to a pointer to the next  
							
							 
							
							... 
							
							
							
							argument to be returned by va_arg. This allows va_lists to be passed
between different LLVM procedures (though it is unlikely that an LLI
va_list would make sense to an external function, except by chance.)
llvm-svn: 9965 
							
						 
						
							2003-11-13 06:06:01 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								960707c335 
								
							 
						 
						
							
							
								
								Put all LLVM code into the llvm namespace, as per bug 109.  
							
							 
							
							... 
							
							
							
							llvm-svn: 9903 
							
						 
						
							2003-11-11 22:41:34 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								9ef636c698 
								
							 
						 
						
							
							
								
								Implement vaarg instruction. This is not quite perfect: 2003-08-11-VaListArg  
							
							 
							
							... 
							
							
							
							still causes a crash. But it's better than before.
llvm-svn: 9794 
							
						 
						
							2003-11-07 21:20:47 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								85baf8c65a 
								
							 
						 
						
							
							
								
								popStackAndReturnValueToCaller() must advance instruction pointer to normal  
							
							 
							
							... 
							
							
							
							destination, if returning from an invoke.
Implement 'unwind' instruction.
llvm-svn: 9792 
							
						 
						
							2003-11-07 20:44:58 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								6d145eb65f 
								
							 
						 
						
							
							
								
								Add stub version of unwind support  
							
							 
							
							... 
							
							
							
							llvm-svn: 9789 
							
						 
						
							2003-11-07 20:07:06 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								a6454d3532 
								
							 
						 
						
							
							
								
								visitCallInst --> visitCallSite.  
							
							 
							
							... 
							
							
							
							Use visitCallSite to implement both CallInsts and InvokeInsts.
llvm-svn: 9788 
							
						 
						
							2003-11-07 20:04:22 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								a6d48e4db2 
								
							 
						 
						
							
							
								
								Make the operation of visitCallInst() only depend on the CallSite.  
							
							 
							
							... 
							
							
							
							llvm-svn: 9787 
							
						 
						
							2003-11-07 19:59:08 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								18b59578c9 
								
							 
						 
						
							
							
								
								Use CallSites for call sites, instead of CallInsts. A revolutionary concept.  
							
							 
							
							... 
							
							
							
							llvm-svn: 9784 
							
						 
						
							2003-11-07 19:26:23 +00:00