summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
Commit message (Collapse)AuthorAgeFilesLines
...
* Reduce the number of #includes.Brian Gaeke2003-10-241-186/+22
| | | | | | | | | | | | | 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
* ExecutionEngine::create no longer takes a TraceMode argument.Brian Gaeke2003-10-241-5/+4
| | | | llvm-svn: 9488
* Destroy MachineFunction for any Function that we are about toBrian Gaeke2003-10-241-0/+2
| | | | | | | recompile and relink. This keeps it from failing an assertion when it goes and tries to construct a new MachineFunction for that Function. llvm-svn: 9459
* Added LLVM copyright header.John Criswell2003-10-213-0/+21
| | | | llvm-svn: 9321
* Added LLVM copyright notice to Makefiles.John Criswell2003-10-203-0/+24
| | | | llvm-svn: 9312
* Added LLVM project notice to the top of every C++ source file.John Criswell2003-10-208-0/+56
| | | | | | Header files will be on the way. llvm-svn: 9298
* Hrm, a relic from the past. How cute :)Chris Lattner2003-10-201-1/+1
| | | | llvm-svn: 9283
* Interpret the new varargs intrinsics correctlyChris Lattner2003-10-183-28/+13
| | | | llvm-svn: 9222
* Don't release the Module, as that invalidates the Module* within theMisha Brukman2003-10-171-2/+2
| | | | | | | ModuleProvider, which has bad consequences in lli::callAsMain() which tries to access that same Module*. llvm-svn: 9205
* Tidy up doxygen comment for getPointerToFunction().Brian Gaeke2003-10-171-0/+10
| | | | | | Add prototypes for recompileAndRelinkFunction() and runJITOnFunction(). llvm-svn: 9200
* Refactor running the JIT passes on a single function into the new method,Brian Gaeke2003-10-171-7/+35
| | | | | | | | | runJITOnFunction(). Add new method for recompiling and patching in new versions of functions, recompileAndRelinkFunction(). llvm-svn: 9199
* Fix a typo in a comment, and zap a blank line.Brian Gaeke2003-10-161-2/+1
| | | | llvm-svn: 9184
* JIT.cpp:Misha Brukman2003-10-162-5/+7
| | | | | | | | | | | | * #include "llvm/ModuleProvider" * alphabetize #includes * omit extraneous parens in pointer expressions VM.cpp: * #include "llvm/ModuleProvider" * alphabetize #includes llvm-svn: 9182
* * Reorder includes as per the style guideMisha Brukman2003-10-161-6/+22
| | | | | | | | * Move the constructors from .h file here * Document ExecutionEngine::create() * Catch exception possibly thrown by ModuleProvider::releaseModule() llvm-svn: 9181
* Order #includes as per the style guide.Misha Brukman2003-10-141-3/+3
| | | | llvm-svn: 9128
* Enabling incremental bytecode loading in the JIT:Misha Brukman2003-10-143-7/+15
| | | | | | * The VM is now constructed with a ModuleProvider llvm-svn: 9125
* Enabling incremental bytecode loading in the JIT:Misha Brukman2003-10-141-4/+5
| | | | | | * ExecutionEngine and VM can be constructed using a ModuleProvider. llvm-svn: 9124
* Make mmap's fd for anonymous memory acquisition default to -1, except onBrian Gaeke2003-10-111-2/+7
| | | | | | | Linux. This is consistent with what FreeBSD and Solaris both want. This makes the JIT work on FreeBSD 5.1-RELEASE. Whee. llvm-svn: 9045
* Don't include Config/stdio.h or <stdio.h>.Brian Gaeke2003-10-102-2/+0
| | | | llvm-svn: 9031
* * Tabs to spacesMisha Brukman2003-10-101-8/+16
| | | | | | | * Doxygenified function comments * Added FIXMEs to solicit documentation for other functions llvm-svn: 9022
* Fix spelling.Misha Brukman2003-10-102-2/+2
| | | | llvm-svn: 9021
* Never set any signal handlers.Brian Gaeke2003-10-101-37/+2
| | | | | | Never call setjmp(), longjmp() or strsignal(). llvm-svn: 9014
* Rewrite head-of-file comment.Brian Gaeke2003-10-101-14/+16
| | | | | | | | | 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
* Change to use GetAddressOfSymbol instead of dlsym.Brian Gaeke2003-10-102-18/+9
| | | | llvm-svn: 9012
* Do not read past the end of the contained type listChris Lattner2003-10-091-2/+2
| | | | llvm-svn: 8986
* Actually _PASS IN_ NO_RESERVE if we have it.Chris Lattner2003-10-061-1/+1
| | | | | | Thanks to Brian for fixing this obvious oops llvm-svn: 8899
* Squelch warningChris Lattner2003-09-221-2/+2
| | | | llvm-svn: 8659
* Change FunctionInfo from being an annotation put on Functions to beChris Lattner2003-09-173-22/+9
| | | | | | something which is mapped from functions. llvm-svn: 8580
* * Move include files from middle of file to the top where they belong, movingMisha Brukman2003-09-101-7/+5
| | | | | | | | the #define up there too * Since we're including system headers, use the ones in include/llvm/Config * While we're here, use the canonical LLVM header ordering algorithm llvm-svn: 8463
* Fix warning when _POSIX_MAPPED_FILES is already defined in unistd.hMisha Brukman2003-09-101-0/+2
| | | | llvm-svn: 8436
* Remove a bunch of unneeded stuphChris Lattner2003-09-081-45/+0
| | | | llvm-svn: 8400
* Reorder #includes to follow LLVM conventionsChris Lattner2003-09-052-9/+9
| | | | llvm-svn: 8375
* ExecutionEngine.h, GenericValue.h --> include/llvm/ExecutionEngine/Brian Gaeke2003-09-055-9/+9
| | | | | | Build ExecutionEngine as library. llvm-svn: 8370
* Make getOperandValue and executeCastOperation methods of Interpreter.Brian Gaeke2003-09-052-3/+6
| | | | | | 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-057-190/+86
| | | | | | | | | | | | | | | 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 printOperandInfo(), and simplify run().Brian Gaeke2003-09-051-30/+0
| | | | llvm-svn: 8362
* Remove support for printing values from a module by name, only usedBrian Gaeke2003-09-053-109/+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-054-186/+44
| | | | | | | | | 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-043-47/+8
| | | | | | Remove some dead code and whitespace. llvm-svn: 8346
* Move EE dtor where it belongsBrian Gaeke2003-09-041-0/+4
| | | | llvm-svn: 8345
* Interpreter cleanups:Brian Gaeke2003-09-045-320/+33
| | | | | | | | | | | | 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-035-12/+33
| | | | | | | | | | | | | | | | | | 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
* Preselection is now integrated into the Sparc target libraryChris Lattner2003-09-011-1/+1
| | | | llvm-svn: 8305
* Sparc peephole optimizer moved out of post-opts library into Sparc target ↵Chris Lattner2003-09-011-1/+1
| | | | | | library llvm-svn: 8302
* Consult the target data, not the module, about how large the current pointerChris Lattner2003-08-241-4/+4
| | | | | | | size is. This ensures that if the module has no specified pointer size that things will work correctly. llvm-svn: 8136
* Targets now configure themselves based on the source module, not on theChris Lattner2003-08-243-13/+31
| | | | | | ad-hoc "Config" flags llvm-svn: 8134
* Add preliminary support for "any" pointersize/endianness. This will needChris Lattner2003-08-242-5/+6
| | | | | | to change soon though. llvm-svn: 8123
* Minor cleanups: wrap at 80 lines. Convert file comment to doxygen format andChris Lattner2003-08-211-26/+17
| | | | | | llvm style llvm-svn: 8024
* The JIT now passes the environment pointer to the main() function when itJohn Criswell2003-08-214-6/+33
| | | | | | | starts a program. This allows the GNU env program to compile and JIT under LLVM. llvm-svn: 8022
* no really, implement it!Chris Lattner2003-08-181-2/+1
| | | | llvm-svn: 7955
OpenPOWER on IntegriCloud