summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Hack a structure profiling option togetherChris Lattner2001-11-121-1/+4
| | | | llvm-svn: 1267
* * Switch to operation on pointers with PointerTy more consistentlyChris Lattner2001-11-071-1/+3
| | | | | | | | | | | | | | | | | | | | * Fix misspeling * Catch SIGFPE for traps * info XXX now prints the raw contents of the GenericValue * Switch to calloc instead of malloc (temporarily I hope) to bandaid Olden benchmarks * Implement binary And & Or * Convert expressions like this: PointerTy SrcPtr = getOperandValue(I->getPtrOperand(), SF).PointerVal; to: GenericValue SRC = getOperandValue(I->getPtrOperand(), SF); PointerTy SrcPtr = SRC.PointerVal; because the prior way confuses purify. * Taint the initial values of the value planes * Handling 'print bb4' in the interpreter without crashing * Print nicer stack frames with concise return type * printf doesn't suck nearly as badly as it used to llvm-svn: 1177
* *Print Stack traces better.Chris Lattner2001-11-071-0/+5
| | | | | | | | * Use the cache writer for all it's problems. * print arguments to methods in stack traces. *Print the current stack from for up/down commands. llvm-svn: 1170
* * Use cached writer to speed up printing and get symbolic types more ↵Chris Lattner2001-11-071-1/+4
| | | | | | | | consistently * When a segfault or bus error occurs, stop the program, print a stack trace, and dump the user in the debugger mode llvm-svn: 1169
* callExternalMethod now returns the return value of the functionChris Lattner2001-10-301-2/+6
| | | | llvm-svn: 1048
* Implement a -trace command line option and a trace option in the interpreter.Chris Lattner2001-10-271-0/+2
| | | | llvm-svn: 989
* * Make pointer values work better by treating them uniformly as 64 bit values.Chris Lattner2001-10-271-1/+1
| | | | | | | | | This causes code that is generated by gcc to work better. * Implement mul & div * Export malloc, free, and pow * add strtol, atoi, and atol to the runtime library llvm-svn: 988
* Provide argv for commandsChris Lattner2001-10-271-1/+1
| | | | llvm-svn: 987
* * Implement exit() builtin functionChris Lattner2001-10-271-0/+6
| | | | | | | * Implement linked in runtime library with puts(char*) in it * implement builtin putchar(int) function llvm-svn: 985
* Enhancements to pass argc & argv to main if requiredChris Lattner2001-10-181-0/+3
| | | | llvm-svn: 909
* Implement ulong & long supportChris Lattner2001-10-151-0/+3
| | | | llvm-svn: 843
* Implement global variables. Struct and Pointer initializers are not ↵Chris Lattner2001-10-151-1/+4
| | | | | | implemented yet though llvm-svn: 818
* Genericize support for calling functions a bitChris Lattner2001-09-101-2/+3
| | | | | | Add external method support llvm-svn: 528
* Lots of new functionalityChris Lattner2001-08-271-1/+4
| | | | llvm-svn: 372
* Initial checkin of interpreterChris Lattner2001-08-231-0/+129
llvm-svn: 361
OpenPOWER on IntegriCloud