summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
Commit message (Collapse)AuthorAgeFilesLines
* Add #include <iostream> since Value.h does not #include it any more.Reid Spencer2004-07-041-0/+1
| | | | llvm-svn: 14622
* Add support for the select instructionChris Lattner2004-04-201-0/+2
| | | | llvm-svn: 13076
* Adjust to new interfaceChris Lattner2004-04-041-1/+1
| | | | llvm-svn: 12646
* Adjust to new gep_type_iterator prototypes.Chris Lattner2004-04-041-1/+3
| | | | llvm-svn: 12644
* remove obsolete commentChris Lattner2004-02-261-1/+1
| | | | llvm-svn: 11872
* Fix off-by-one in Interpreter::getFirstVarArg(), which was punishingBrian Gaeke2004-02-131-1/+1
| | | | | | | any attempts by LLI to use varargs (possibly left over from the introduction of IntrinsicLowering??) llvm-svn: 11370
* Pass around IntrinsicLowering instances as appropriate.Chris Lattner2003-12-281-4/+8
| | | | | | Reimplement the Interpreters implementation of va_* to be more direct. llvm-svn: 10627
* No longer run atExit functions from run()Chris Lattner2003-12-261-6/+5
| | | | | | rename run to runFunction llvm-svn: 10609
* Fix typo in comment. Add prototype for getConstantExprValue().Brian Gaeke2003-12-111-1/+3
| | | | llvm-svn: 10390
* implement methodChris Lattner2003-12-081-0/+7
| | | | llvm-svn: 10321
* Do not depend on structure elements being of type UByteTyChris Lattner2003-11-251-2/+3
| | | | llvm-svn: 10224
* Change LLI's internal representation of va_list to a pointer to the nextBrian Gaeke2003-11-131-0/+4
| | | | | | | | 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
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+4
| | | | llvm-svn: 9903
* Implement vaarg instruction. This is not quite perfect: 2003-08-11-VaListArgBrian Gaeke2003-11-071-0/+1
| | | | | | still causes a crash. But it's better than before. llvm-svn: 9794
* Add stub version of unwind supportBrian Gaeke2003-11-071-0/+1
| | | | llvm-svn: 9789
* visitCallInst --> visitCallSite.Brian Gaeke2003-11-071-2/+5
| | | | | | Use visitCallSite to implement both CallInsts and InvokeInsts. llvm-svn: 9788
* Use CallSites for call sites, instead of CallInsts. A revolutionary concept.Brian Gaeke2003-11-071-2/+3
| | | | llvm-svn: 9784
* Refactor the return-from-function code into popStackAndReturnValueToCaller().Brian Gaeke2003-11-071-0/+1
| | | | | | Make external function calls slightly less special; now they get a stack frame. llvm-svn: 9765
* Be friendly to gcc 3.4... good compiler. Nice compiler.Chris Lattner2003-11-051-1/+1
| | | | llvm-svn: 9726
* ExecutionEngine::create no longer takes a TraceMode argument.Brian Gaeke2003-10-241-18/+4
| | | | | | | | | | 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
* Added LLVM copyright header.John Criswell2003-10-211-0/+7
| | | | llvm-svn: 9321
* Interpret the new varargs intrinsics correctlyChris Lattner2003-10-181-1/+1
| | | | llvm-svn: 9222
* Change FunctionInfo from being an annotation put on Functions to beChris Lattner2003-09-171-0/+2
| | | | | | something which is mapped from functions. llvm-svn: 8580
* Reorder #includes to follow LLVM conventionsChris Lattner2003-09-051-4/+4
| | | | llvm-svn: 8375
* ExecutionEngine.h, GenericValue.h --> include/llvm/ExecutionEngine/Brian Gaeke2003-09-051-2/+2
| | | | | | Build ExecutionEngine as library. llvm-svn: 8370
* Make getOperandValue and executeCastOperation methods of Interpreter.Brian Gaeke2003-09-051-0/+3
| | | | | | This lets us protect a few more ExecutionEngine methods. llvm-svn: 8367
* Make CreateArgv part of lli rather than part of ExecutionEngine.Brian Gaeke2003-09-051-38/+15
| | | | | | | | | | | | | | | 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
* Remove support for printing values from a module by name, only usedBrian Gaeke2003-09-051-15/+0
| | | | | | | w/ interactive keyboard entry of names. With that, Support.cpp is history. llvm-svn: 8360
* Remove support for interactive (step finish next) instructions.Brian Gaeke2003-09-051-20/+0
| | | | | | | | | 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
* Remove support for breakpoints (not used).Brian Gaeke2003-09-041-2/+1
| | | | | | Remove some dead code and whitespace. llvm-svn: 8346
* Interpreter cleanups:Brian Gaeke2003-09-041-10/+2
| | | | | | | | | | | | 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
* ExecutionEngine.cpp: Move execution engine creation stuff into a newBrian Gaeke2003-09-031-2/+7
| | | | | | | | | | | | | | | | | | 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
* Targets now configure themselves based on the source module, not on theChris Lattner2003-08-241-1/+2
| | | | | | ad-hoc "Config" flags llvm-svn: 8134
* The JIT now passes the environment pointer to the main() function when itJohn Criswell2003-08-211-1/+2
| | | | | | | starts a program. This allows the GNU env program to compile and JIT under LLVM. llvm-svn: 8022
* Deconstify parameter to getPointerToFunction().Brian Gaeke2003-08-131-1/+1
| | | | llvm-svn: 7822
* Add support for atexit function, remove support for __main functionChris Lattner2003-05-141-0/+9
| | | | llvm-svn: 6194
* switch main LLI core execution to use an InstVisitor instead of a switch ↵Chris Lattner2003-05-101-17/+25
| | | | | | statement llvm-svn: 6081
* Fix testcase: SingleSource/UnitTests/2003-05-02-DependantPHI.cChris Lattner2003-05-101-1/+8
| | | | llvm-svn: 6074
* A large number of simple changes:Chris Lattner2003-05-081-13/+13
| | | | | | | * s/Method/Function * Kill some obsolete (external) functions that used to be to support tracing llvm-svn: 6041
* Add support for recording arguments passed through the ... of a varargs functionChris Lattner2003-05-081-0/+1
| | | | llvm-svn: 6040
* Substantial changes to refactor LLI to incorporate both the Jello JIT andChris Lattner2002-12-231-28/+28
| | | | | | the traditional LLI interpreter llvm-svn: 5125
* Make command line arguments setup be endian correct!!Chris Lattner2002-11-071-1/+1
| | | | llvm-svn: 4605
* - Fix LLI so that it simulates the endianness of the target machineChris Lattner2002-10-151-0/+1
| | | | | | correctly, despite the fact that the host machine might not be the same. llvm-svn: 4180
* Cleanup #includes, expose moduleChris Lattner2002-10-021-4/+2
| | | | llvm-svn: 4021
* MEGAPATCH checkin.Chris Lattner2002-06-251-4/+4
| | | | | | For details, See: docs/2002-06-25-MegaPatchInfo.txt llvm-svn: 2778
* Change references to the Method class to be references to the FunctionChris Lattner2002-04-071-11/+11
| | | | | | | class. The Method class is obsolete (renamed) and all references to it are being converted over to Function. llvm-svn: 2144
* Keep track of memory allocated by alloca so that it is freed appropriatelyChris Lattner2002-02-191-0/+31
| | | | llvm-svn: 1776
* Method.h no longer includes BasicBlock.hChris Lattner2002-02-121-0/+1
| | | | | | | Method::inst_* is now in llvm/Support/InstIterator.h GraphTraits specializations for BasicBlock and Methods are now in llvm/Support/CFG.h llvm-svn: 1746
* Changes to build successfully with GCC 3.02Chris Lattner2002-01-201-15/+16
| | | | llvm-svn: 1503
* Move DataTypes.h from llvm/Support to just SupportChris Lattner2001-11-261-1/+1
| | | | llvm-svn: 1399
OpenPOWER on IntegriCloud