Andrew Lenharth
							
						 
						
							 
							
							
							
							
								
							
							
								9144ec4764 
								
							 
						 
						
							
							
								
								core changes for varargs  
							
							 
							
							... 
							
							
							
							llvm-svn: 22254 
							
						 
						
							2005-06-18 18:34:52 +00:00  
						
					 
				
					
						
							
							
								 
								Misha Brukman
							
						 
						
							 
							
							
							
							
								
							
							
								5191b4b2d0 
								
							 
						 
						
							
							
								
								Convert tabs to spaces  
							
							 
							
							... 
							
							
							
							llvm-svn: 21440 
							
						 
						
							2005-04-22 04:08:30 +00:00  
						
					 
				
					
						
							
							
								 
								Misha Brukman
							
						 
						
							 
							
							
							
							
								
							
							
								91fb9ab60b 
								
							 
						 
						
							
							
								
								* Remove trailing whitespace  
							
							 
							
							... 
							
							
							
							* Convert tabs to spaces
llvm-svn: 21421 
							
						 
						
							2005-04-21 22:43:08 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								531f9e92d4 
								
							 
						 
						
							
							
								
								This mega patch converts us from using Function::a{iterator|begin|end} to  
							
							 
							
							... 
							
							
							
							using Function::arg_{iterator|begin|end}.  Likewise Module::g* -> Module::global_*.
This patch is contributed by Gabor Greif, thanks!
llvm-svn: 20597 
							
						 
						
							2005-03-15 04:54:21 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								28edd69eb4 
								
							 
						 
						
							
							
								
								If the interpreter tries to execute an external function, kill it.  Of course  
							
							 
							
							... 
							
							
							
							since we are dirty, special case __main.  This should fix the infinite loop
horrible stuff that happens on linux-alpha when configuring llvm-gcc.  It
might also help cygwin, who knows??
llvm-svn: 19729 
							
						 
						
							2005-01-21 19:59:37 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								cebb964fef 
								
							 
						 
						
							
							
								
								Improve compatiblity with HPUX on Itanium, patch by Duraid Madina  
							
							 
							
							... 
							
							
							
							llvm-svn: 19586 
							
						 
						
							2005-01-16 01:31:31 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								4588542d39 
								
							 
						 
						
							
							
								
								Silence warnings  
							
							 
							
							... 
							
							
							
							llvm-svn: 19392 
							
						 
						
							2005-01-08 20:13:44 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								feeab9f753 
								
							 
						 
						
							
							
								
								Silence VS warnings  
							
							 
							
							... 
							
							
							
							llvm-svn: 19389 
							
						 
						
							2005-01-08 20:05:34 +00:00  
						
					 
				
					
						
							
							
								 
								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  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								65cac90a92 
								
							 
						 
						
							
							
								
								Refactor the return-from-function code into popStackAndReturnValueToCaller().  
							
							 
							
							... 
							
							
							
							Make external function calls slightly less special; now they get a stack frame.
llvm-svn: 9765 
							
						 
						
							2003-11-07 05:22:49 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								b5b9ba6ff6 
								
							 
						 
						
							
							
								
								Be friendly to gcc 3.4... good compiler.  Nice compiler.  
							
							 
							
							... 
							
							
							
							llvm-svn: 9726 
							
						 
						
							2003-11-05 06:20:27 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								4e106f0649 
								
							 
						 
						
							
							
								
								Abort when the user program calls abort, instead of printing a funny message and calling exit(1).  
							
							 
							
							... 
							
							
							
							llvm-svn: 9716 
							
						 
						
							2003-11-05 01:18:49 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								221827ab07 
								
							 
						 
						
							
							
								
								Use regular old malloc to emulate malloc/alloca instructions.  
							
							 
							
							... 
							
							
							
							llvm-svn: 9713 
							
						 
						
							2003-11-05 01:02:14 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								175018317e 
								
							 
						 
						
							
							
								
								Remove a comment which no longer applies.  
							
							 
							
							... 
							
							
							
							llvm-svn: 9712 
							
						 
						
							2003-11-05 00:59:28 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								37edb43831 
								
							 
						 
						
							
							
								
								Unbreak the build  
							
							 
							
							... 
							
							
							
							llvm-svn: 9502 
							
						 
						
							2003-10-25 16:18:03 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								b77e589bd1 
								
							 
						 
						
							
							
								
								ExecutionEngine::create no longer takes a TraceMode argument.  
							
							 
							
							... 
							
							
							
							CurFrame, TraceMode, and the CachedWriter are history.
The ExecutionAnnotations (SlotNumber, InstNumber, and FunctionInfo) are history.
ExecutionContext now keeps Values for each stack frame in a std::map.
printValue() and print() are history.
executeInstruction() is now part of run().
llvm-svn: 9493 
							
						 
						
							2003-10-24 19:59:37 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								65c60e24cd 
								
							 
						 
						
							
							
								
								ExecutionEngine::create no longer takes a TraceMode argument.  
							
							 
							
							... 
							
							
							
							CurFrame, TraceMode, and the CachedWriter are history.
llvm-svn: 9492 
							
						 
						
							2003-10-24 19:59:28 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								759ba76905 
								
							 
						 
						
							
							
								
								The ExecutionAnnotations (SlotNumber, InstNumber, and FunctionInfo) are history.  
							
							 
							
							... 
							
							
							
							llvm-svn: 9490 
							
						 
						
							2003-10-24 19:59:18 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								e278c22380 
								
							 
						 
						
							
							
								
								Reduce the number of #includes.  
							
							 
							
							... 
							
							
							
							CurFrame, TraceMode, and the CachedWriter are history.
ArrayChecksEnabled and non-QuietMode are history.
The ExecutionAnnotations (SlotNumber, InstNumber, and FunctionInfo) are history.
ExecutionContext now keeps Values for each stack frame in a std::map.
Stop pre-initializing Values on the stack to 42.
Remove some dead variables, excess whitespace and commented-out code.
executeInstruction() is now part of run().
printValue() and print() are history.
llvm-svn: 9489 
							
						 
						
							2003-10-24 19:59:01 +00:00  
						
					 
				
					
						
							
							
								 
								John Criswell
							
						 
						
							 
							
							
							
							
								
							
							
								29265fe981 
								
							 
						 
						
							
							
								
								Added LLVM copyright header.  
							
							 
							
							... 
							
							
							
							llvm-svn: 9321 
							
						 
						
							2003-10-21 15:17:13 +00:00  
						
					 
				
					
						
							
							
								 
								John Criswell
							
						 
						
							 
							
							
							
							
								
							
							
								4436c49787 
								
							 
						 
						
							
							
								
								Added LLVM copyright notice to Makefiles.  
							
							 
							
							... 
							
							
							
							llvm-svn: 9312 
							
						 
						
							2003-10-20 22:26:57 +00:00  
						
					 
				
					
						
							
							
								 
								John Criswell
							
						 
						
							 
							
							
							
							
								
							
							
								482202a601 
								
							 
						 
						
							
							
								
								Added LLVM project notice to the top of every C++ source file.  
							
							 
							
							... 
							
							
							
							Header files will be on the way.
llvm-svn: 9298 
							
						 
						
							2003-10-20 19:43:21 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								fefd3bebc4 
								
							 
						 
						
							
							
								
								Interpret the new varargs intrinsics correctly  
							
							 
							
							... 
							
							
							
							llvm-svn: 9222 
							
						 
						
							2003-10-18 05:55:25 +00:00  
						
					 
				
					
						
							
							
								 
								Misha Brukman
							
						 
						
							 
							
							
							
							
								
							
							
								1d2d8ec853 
								
							 
						 
						
							
							
								
								Order #includes as per the style guide.  
							
							 
							
							... 
							
							
							
							llvm-svn: 9128 
							
						 
						
							2003-10-14 21:42:11 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								cc31fddf13 
								
							 
						 
						
							
							
								
								Don't include Config/stdio.h or <stdio.h>.  
							
							 
							
							... 
							
							
							
							llvm-svn: 9031 
							
						 
						
							2003-10-10 18:46:29 +00:00  
						
					 
				
					
						
							
							
								 
								Misha Brukman
							
						 
						
							 
							
							
							
							
								
							
							
								aa7d26c8c8 
								
							 
						 
						
							
							
								
								Fix spelling.  
							
							 
							
							... 
							
							
							
							llvm-svn: 9021 
							
						 
						
							2003-10-10 17:42:19 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								20c65741d0 
								
							 
						 
						
							
							
								
								Never set any signal handlers.  
							
							 
							
							... 
							
							
							
							Never call setjmp(), longjmp() or strsignal().
llvm-svn: 9014 
							
						 
						
							2003-10-10 17:03:22 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								6cc20deac1 
								
							 
						 
						
							
							
								
								Rewrite head-of-file comment.  
							
							 
							
							... 
							
							
							
							In lookupFunction():
 Change to use "F" for Function argument instead of ancient "M".
 Remove commented-out code.
 Change to use GetAddressOfSymbol instead of dlsym.
llvm-svn: 9013 
							
						 
						
							2003-10-10 17:03:10 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								93cb392a33 
								
							 
						 
						
							
							
								
								Do not read past the end of the contained type list  
							
							 
							
							... 
							
							
							
							llvm-svn: 8986 
							
						 
						
							2003-10-09 20:31:18 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								2caaaba3e9 
								
							 
						 
						
							
							
								
								Squelch warning  
							
							 
							
							... 
							
							
							
							llvm-svn: 8659 
							
						 
						
							2003-09-22 20:33:34 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								a28e1f281a 
								
							 
						 
						
							
							
								
								Change FunctionInfo from being an annotation put on Functions to be  
							
							 
							
							... 
							
							
							
							something which is mapped from functions.
llvm-svn: 8580 
							
						 
						
							2003-09-17 17:26:22 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								ad48131254 
								
							 
						 
						
							
							
								
								Reorder #includes to follow LLVM conventions  
							
							 
							
							... 
							
							
							
							llvm-svn: 8375 
							
						 
						
							2003-09-05 20:08:15 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								f3a300d578 
								
							 
						 
						
							
							
								
								ExecutionEngine.h, GenericValue.h --> include/llvm/ExecutionEngine/  
							
							 
							
							... 
							
							
							
							Build ExecutionEngine as library.
llvm-svn: 8370 
							
						 
						
							2003-09-05 19:39:22 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								9b518bc0be 
								
							 
						 
						
							
							
								
								Make getOperandValue and executeCastOperation methods of Interpreter.  
							
							 
							
							... 
							
							
							
							This lets us protect a few more ExecutionEngine methods.
llvm-svn: 8367 
							
						 
						
							2003-09-05 18:55:03 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								a7669038fc 
								
							 
						 
						
							
							
								
								Make CreateArgv part of lli rather than part of ExecutionEngine.  
							
							 
							
							... 
							
							
							
							Switch Interpreter and JIT's "run" methods to take a Function and a vector of
 GenericValues.
Move (almost all of) the stuff that constructs a canonical call to main()
 into lli (new methods "callAsMain", "makeStringVector").
Nuke getCurrentExecutablePath(), enableTracing(), getCurrentFunction(),
 isStopped(), and many dead decls from interpreter.
Add linux strdup() support to interpreter.
Make interpreter's atexit handler runner and JIT's runAtExitHandlers() look
 more alike, in preparation for refactoring.
atexit() is spelled "atexit", not "at_exit".
llvm-svn: 8366 
							
						 
						
							2003-09-05 18:42:01 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								33d98aebe7 
								
							 
						 
						
							
							
								
								Remove printOperandInfo(), and simplify run().  
							
							 
							
							... 
							
							
							
							llvm-svn: 8362 
							
						 
						
							2003-09-05 05:22:08 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								ed9917b3f8 
								
							 
						 
						
							
							
								
								Remove support for printing values from a module by name, only used  
							
							 
							
							... 
							
							
							
							w/ interactive keyboard entry of names.
With that, Support.cpp is history.
llvm-svn: 8360 
							
						 
						
							2003-09-05 05:04:32 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								8421765778 
								
							 
						 
						
							
							
								
								Remove support for interactive (step finish next) instructions.  
							
							 
							
							... 
							
							
							
							Remove printCurrentInstruction, printStackFrame and infoValue
 (only used interactively) and other unused methods of Interpreter.
Fold UserInput.cpp containing only callMainFunction() into Interpreter.cpp.
Remove unused Profile flag.
llvm-svn: 8359 
							
						 
						
							2003-09-05 04:46:26 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								411281cc82 
								
							 
						 
						
							
							
								
								Remove support for breakpoints (not used).  
							
							 
							
							... 
							
							
							
							Remove some dead code and whitespace.
llvm-svn: 8346 
							
						 
						
							2003-09-04 23:15:40 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								e80e5ba7f8 
								
							 
						 
						
							
							
								
								Interpreter cleanups:  
							
							 
							
							... 
							
							
							
							Get rid of support for DebugMode (make it always off).
Mung some comments.
Get rid of interpreter's PROFILE_STRUCTURE_FIELDS and PerformExitStuff
 which have been disabled forever.
Get rid of -abort-on-exception (make it always on).
Get rid of user interaction stuff (debug mode innards).
Simplify Interpreter's callMainFunction().
llvm-svn: 8344 
							
						 
						
							2003-09-04 22:21:24 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								4bd3bd5b5a 
								
							 
						 
						
							
							
								
								ExecutionEngine.cpp: Move execution engine creation stuff into a new  
							
							 
							
							... 
							
							
							
							static method here.
 Remove some extra blank lines.
ExecutionEngine.h: Add its prototype.
lli.cpp: Call it.
Make creation method for each type of EE into a static method of its
own subclass.
Interpreter/Interpreter.cpp: ExecutionEngine::createInterpreter -->
 Interpreter::create
Interpreter/Interpreter.h: Likewise.
JIT/JIT.cpp: ExecutionEngine::createJIT --> VM::create
JIT/VM.h: Likewise.
llvm-svn: 8343 
							
						 
						
							2003-09-03 20:34:19 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								4d4f424f0c 
								
							 
						 
						
							
							
								
								Targets now configure themselves based on the source module, not on the  
							
							 
							
							... 
							
							
							
							ad-hoc "Config" flags
llvm-svn: 8134 
							
						 
						
							2003-08-24 19:50:53 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								479854091a 
								
							 
						 
						
							
							
								
								Add preliminary support for "any" pointersize/endianness.  This will need  
							
							 
							
							... 
							
							
							
							to change soon though.
llvm-svn: 8123 
							
						 
						
							2003-08-24 14:02:47 +00:00  
						
					 
				
					
						
							
							
								 
								John Criswell
							
						 
						
							 
							
							
							
							
								
							
							
								71c3e6236f 
								
							 
						 
						
							
							
								
								The JIT now passes the environment pointer to the main() function when it  
							
							 
							
							... 
							
							
							
							starts a program.  This allows the GNU env program to compile and JIT under
LLVM.
llvm-svn: 8022 
							
						 
						
							2003-08-21 21:12:30 +00:00  
						
					 
				
					
						
							
							
								 
								Misha Brukman
							
						 
						
							 
							
							
							
							
								
							
							
								7eb05a170a 
								
							 
						 
						
							
							
								
								Spell `necessary' correctly.  
							
							 
							
							... 
							
							
							
							llvm-svn: 7944 
							
						 
						
							2003-08-18 14:43:39 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								aa58664639 
								
							 
						 
						
							
							
								
								Deconstify parameter to getPointerToFunction().  
							
							 
							
							... 
							
							
							
							llvm-svn: 7822 
							
						 
						
							2003-08-13 18:17:54 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								625eef3e41 
								
							 
						 
						
							
							
								
								Remove redundant const qualifier  
							
							 
							
							... 
							
							
							
							llvm-svn: 7254 
							
						 
						
							2003-07-23 15:30:32 +00:00  
						
					 
				
					
						
							
							
								 
								John Criswell
							
						 
						
							 
							
							
							
							
								
							
							
								3ef61afb76 
								
							 
						 
						
							
							
								
								Merged in autoconf branch.  This provides configuration via the autoconf  
							
							 
							
							... 
							
							
							
							system.
llvm-svn: 7014 
							
						 
						
							2003-06-30 21:59:07 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								fcd72643fa 
								
							 
						 
						
							
							
								
								Include <cmath> instead of <math.h>  
							
							 
							
							... 
							
							
							
							Remove isnan; it's too unportable to handle cleanly at this point.
llvm-svn: 6866 
							
						 
						
							2003-06-23 19:41:55 +00:00  
						
					 
				
					
						
							
							
								 
								Brian Gaeke
							
						 
						
							 
							
							
							
							
								
							
							
								44a4adfad2 
								
							 
						 
						
							
							
								
								Use std::isnan instead of isnan.  Brought back to you from the  
							
							 
							
							... 
							
							
							
							future, by the reconciliation of the C++ and C99 standards. Someday.
llvm-svn: 6751 
							
						 
						
							2003-06-17 19:59:17 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								4a5bb95729 
								
							 
						 
						
							
							
								
								Add support for atexit function, remove support for __main function  
							
							 
							
							... 
							
							
							
							llvm-svn: 6194 
							
						 
						
							2003-05-14 14:21:30 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								b78244f9e1 
								
							 
						 
						
							
							
								
								Make sure that globals are emitted AFTER the passmanager is set up for the JIT,  
							
							 
							
							... 
							
							
							
							because the globals may refer to functions that need to be compiled!
llvm-svn: 6105 
							
						 
						
							2003-05-12 02:14:34 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								185045c494 
								
							 
						 
						
							
							
								
								switch main LLI core execution to use an InstVisitor instead of a switch statement  
							
							 
							
							... 
							
							
							
							llvm-svn: 6081 
							
						 
						
							2003-05-10 21:22:39 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								bd6771cb25 
								
							 
						 
						
							
							
								
								Fix testcase: SingleSource/UnitTests/2003-05-02-DependantPHI.c  
							
							 
							
							... 
							
							
							
							llvm-svn: 6074 
							
						 
						
							2003-05-10 20:21:16 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								525e251c4e 
								
							 
						 
						
							
							
								
								Implement varargs support for LLI!  
							
							 
							
							... 
							
							
							
							llvm-svn: 6043 
							
						 
						
							2003-05-08 16:52:43 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								470754e3ca 
								
							 
						 
						
							
							
								
								A large number of simple changes:  
							
							 
							
							... 
							
							
							
							* s/Method/Function
  * Kill some obsolete (external) functions that used to be to support tracing
llvm-svn: 6041 
							
						 
						
							2003-05-08 16:18:31 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								22e90434f3 
								
							 
						 
						
							
							
								
								Add support for recording arguments passed through the ... of a varargs function  
							
							 
							
							... 
							
							
							
							llvm-svn: 6040 
							
						 
						
							2003-05-08 16:06:52 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								4f6cdbdf81 
								
							 
						 
						
							
							
								
								Remove two fields from TargetData which are target specific.  
							
							 
							
							... 
							
							
							
							llvm-svn: 5963 
							
						 
						
							2003-04-26 20:11:09 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								01971e1267 
								
							 
						 
						
							
							
								
								Only do the %ld -> %lld promotion when running a 64 bit bytecode on a 32 bit host  
							
							 
							
							... 
							
							
							
							llvm-svn: 5942 
							
						 
						
							2003-04-25 18:28:44 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								4c5245b144 
								
							 
						 
						
							
							
								
								Add __strdup  
							
							 
							
							... 
							
							
							
							llvm-svn: 5941 
							
						 
						
							2003-04-25 18:23:38 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								6fac66e2cc 
								
							 
						 
						
							
							
								
								MAke sure that LLI properly configures align_of(double)  
							
							 
							
							... 
							
							
							
							llvm-svn: 5938 
							
						 
						
							2003-04-25 06:15:05 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								ba90675054 
								
							 
						 
						
							
							
								
								Fix problem where we would read 64 bits worth of pointer information, even on 32 bit targets!  
							
							 
							
							... 
							
							
							
							llvm-svn: 5930 
							
						 
						
							2003-04-25 04:21:19 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								487bb80496 
								
							 
						 
						
							
							
								
								Add memcpy  
							
							 
							
							... 
							
							
							
							llvm-svn: 5887 
							
						 
						
							2003-04-23 20:23:16 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								ed27f84ed9 
								
							 
						 
						
							
							
								
								Fix a problem with setcc instructions and pointers  
							
							 
							
							... 
							
							
							
							llvm-svn: 5886 
							
						 
						
							2003-04-23 19:55:35 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								93f4ff73a6 
								
							 
						 
						
							
							
								
								Implement a bunch of new external functions  
							
							 
							
							... 
							
							
							
							llvm-svn: 5885 
							
						 
						
							2003-04-23 19:55:24 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								7881fc8704 
								
							 
						 
						
							
							
								
								Implement &|^ on bool values  
							
							 
							
							... 
							
							
							
							llvm-svn: 5884 
							
						 
						
							2003-04-23 19:21:00 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								26a4a1f5ca 
								
							 
						 
						
							
							
								
								Add support for _IO_getc function used on linux  
							
							 
							
							... 
							
							
							
							llvm-svn: 5883 
							
						 
						
							2003-04-23 19:20:50 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								aee56b8d34 
								
							 
						 
						
							
							
								
								Kill using declarations  
							
							 
							
							... 
							
							
							
							Kill code for invalid operations on pointers
llvm-svn: 5856 
							
						 
						
							2003-04-22 21:22:33 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								bbd1157f71 
								
							 
						 
						
							
							
								
								Implement cast to bool  
							
							 
							
							... 
							
							
							
							llvm-svn: 5855 
							
						 
						
							2003-04-22 21:15:56 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								fa5fc55f83 
								
							 
						 
						
							
							
								
								Get rid of extraneous arguments to implementation functions  
							
							 
							
							... 
							
							
							
							llvm-svn: 5852 
							
						 
						
							2003-04-22 20:37:39 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								d215af03a3 
								
							 
						 
						
							
							
								
								Add support to LLI for switch instruction  
							
							 
							
							... 
							
							
							
							llvm-svn: 5851 
							
						 
						
							2003-04-22 20:34:47 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								f11d8a35ab 
								
							 
						 
						
							
							
								
								Fix wierd idiom  
							
							 
							
							... 
							
							
							
							llvm-svn: 5831 
							
						 
						
							2003-04-21 22:43:32 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								1610666ea5 
								
							 
						 
						
							
							
								
								fprintf CAN take exactly 2 args  
							
							 
							
							... 
							
							
							
							llvm-svn: 5830 
							
						 
						
							2003-04-21 22:43:20 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								d31837154d 
								
							 
						 
						
							
							
								
								Implement scanf and fix sscanf to actually endian swap the results correctly  
							
							 
							
							... 
							
							
							
							llvm-svn: 5763 
							
						 
						
							2003-03-31 22:12:37 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								13b3e5bdab 
								
							 
						 
						
							
							
								
								Fix typeo  
							
							 
							
							... 
							
							
							
							llvm-svn: 5624 
							
						 
						
							2003-02-25 21:14:59 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								d49518c534 
								
							 
						 
						
							
							
								
								* Wrap at 80 columns  
							
							 
							
							... 
							
							
							
							* Fix a ton of warnings
* Implement puts
llvm-svn: 5254 
							
						 
						
							2003-01-13 00:59:47 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								4e7aa44644 
								
							 
						 
						
							
							
								
								Handle value promotion properly to work with tracing better  
							
							 
							
							... 
							
							
							
							llvm-svn: 5253 
							
						 
						
							2003-01-13 00:58:52 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								996fe01028 
								
							 
						 
						
							
							
								
								Initial checkin of new LLI with JIT compiler  
							
							 
							
							... 
							
							
							
							llvm-svn: 5126 
							
						 
						
							2002-12-24 00:01:05 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								a0d7b084ef 
								
							 
						 
						
							
							
								
								Substantial changes to refactor LLI to incorporate both the Jello JIT and  
							
							 
							
							... 
							
							
							
							the traditional LLI interpreter
llvm-svn: 5125 
							
						 
						
							2002-12-23 23:59:41 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								677671d1af 
								
							 
						 
						
							
							
								
								Add support for isnan  
							
							 
							
							... 
							
							
							
							llvm-svn: 5111 
							
						 
						
							2002-12-20 04:18:13 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								3552d79ac1 
								
							 
						 
						
							
							
								
								Namespacify more  
							
							 
							
							... 
							
							
							
							llvm-svn: 4956 
							
						 
						
							2002-12-08 06:01:34 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								4f96aa450e 
								
							 
						 
						
							
							
								
								Add support to count the number of dynamic instructions executed by LLI  
							
							 
							
							... 
							
							
							
							llvm-svn: 4955 
							
						 
						
							2002-12-08 05:51:08 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								98cf1f5d64 
								
							 
						 
						
							
							
								
								- Eliminated the deferred symbol table stuff in Module & Function, it really  
							
							 
							
							... 
							
							
							
							wasn't an optimization and it was causing lots of bugs.
llvm-svn: 4779 
							
						 
						
							2002-11-20 18:36:02 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								7a1da7c850 
								
							 
						 
						
							
							
								
								Implement feof  
							
							 
							
							... 
							
							
							
							llvm-svn: 4627 
							
						 
						
							2002-11-08 19:10:26 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								a41a195374 
								
							 
						 
						
							
							
								
								Implement freopen for burg  
							
							 
							
							... 
							
							
							
							llvm-svn: 4606 
							
						 
						
							2002-11-07 19:33:50 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								a2b4c6cc49 
								
							 
						 
						
							
							
								
								Make command line arguments setup be endian correct!!  
							
							 
							
							... 
							
							
							
							llvm-svn: 4605 
							
						 
						
							2002-11-07 19:29:31 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								c3a84099a9 
								
							 
						 
						
							
							
								
								Implement fprintf  
							
							 
							
							... 
							
							
							
							llvm-svn: 4585 
							
						 
						
							2002-11-06 23:05:03 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								8529020770 
								
							 
						 
						
							
							
								
								Implement fputc and ungetc to allow burg to run in lli  
							
							 
							
							... 
							
							
							
							llvm-svn: 4584 
							
						 
						
							2002-11-06 22:59:28 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								61596ad266 
								
							 
						 
						
							
							
								
								Fix two problems:  
							
							 
							
							... 
							
							
							
							* Load Implementation can cause unaligned memory accesses, which caused
    problems for sparc.
  * cast from pointer to pointer would zero the upper 32 bits of the pointer
    which obviously causes problems on 64 bit hosts.
llvm-svn: 4454 
							
						 
						
							2002-10-30 21:47:57 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								7fe1f7c931 
								
							 
						 
						
							
							
								
								Fix a major bug in lli  
							
							 
							
							... 
							
							
							
							llvm-svn: 4289 
							
						 
						
							2002-10-26 01:57:15 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								6a1a65f9de 
								
							 
						 
						
							
							
								
								- Fix LLI so that it simulates the endianness of the target machine  
							
							 
							
							... 
							
							
							
							correctly, despite the fact that the host machine might not be the same.
llvm-svn: 4180 
							
						 
						
							2002-10-15 20:34:05 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								0313db6b02 
								
							 
						 
						
							
							
								
								* Implement the getc() function  
							
							 
							
							... 
							
							
							
							* Support usage of stdin, stdout & stderr correctly in LLI!
llvm-svn: 4022 
							
						 
						
							2002-10-02 21:12:13 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								8b952fa7ae 
								
							 
						 
						
							
							
								
								Cleanup #includes, expose module  
							
							 
							
							... 
							
							
							
							llvm-svn: 4021 
							
						 
						
							2002-10-02 21:11:16 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								dabbf17b47 
								
							 
						 
						
							
							
								
								Expose TD to ExternalFunctions.cpp  
							
							 
							
							... 
							
							
							
							llvm-svn: 4020 
							
						 
						
							2002-10-02 21:10:48 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								bd0d2eab64 
								
							 
						 
						
							
							
								
								* Fix a bug that was causing lli to misrun:  
							
							 
							
							... 
							
							
							
							test/Regression/Transforms/DecomposeMultiDimRefs/mixedindices.c
* Eliminate unneccesary #include
llvm-svn: 3712 
							
						 
						
							2002-09-13 23:30:42 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								f78e050e93 
								
							 
						 
						
							
							
								
								Another portability patch graciously provided by Casey Carter  
							
							 
							
							... 
							
							
							
							llvm-svn: 3698 
							
						 
						
							2002-09-13 14:41:38 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								e314bf5264 
								
							 
						 
						
							
							
								
								- Change getelementptr instruction to use long indexes instead of uint  
							
							 
							
							... 
							
							
							
							indexes for sequential types.
llvm-svn: 3683 
							
						 
						
							2002-09-11 01:21:35 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								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  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								c837dbc39f 
								
							 
						 
						
							
							
								
								Implement ConstantPointerRef support, & ConstantExpr support for Cast, GEP & Add.  
							
							 
							
							... 
							
							
							
							llvm-svn: 3516 
							
						 
						
							2002-08-27 22:33:45 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								dfb3a2cd07 
								
							 
						 
						
							
							
								
								Eliminated the MemAccessInst class, folding contents into GEP class.  
							
							 
							
							... 
							
							
							
							llvm-svn: 3487 
							
						 
						
							2002-08-22 23:37:20 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								cd709cbf53 
								
							 
						 
						
							
							
								
								Load & StoreInst no longer derive from MemAccessInst, so we don't have  
							
							 
							
							... 
							
							
							
							to handle indexing anymore
llvm-svn: 3485 
							
						 
						
							2002-08-22 22:49:05 +00:00