summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Add support for casting any pointer to any integer typeChris Lattner2003-08-181-6/+8
| | | | llvm-svn: 7953
* Spell `necessary' correctly.Misha Brukman2003-08-181-1/+1
| | | | llvm-svn: 7944
* rename selection library to selectiondagChris Lattner2003-08-151-1/+1
| | | | llvm-svn: 7878
* Implement a _REAL_ memory manager for the code generated by the JIT. ThisChris Lattner2003-08-141-42/+100
| | | | | | speeds up program execution by 15% pretty consistently for large programs llvm-svn: 7845
* Deconstify parameter to getPointerToFunction().Brian Gaeke2003-08-131-1/+1
| | | | llvm-svn: 7822
* Deconstify parameter to getPointerToFunction().Brian Gaeke2003-08-131-2/+2
| | | | | | Use a FunctionPassManager instead of a PassManager. llvm-svn: 7820
* Deconstify parameter to getPointerToFunction().Brian Gaeke2003-08-131-5/+3
| | | | | | | Run passes on single function (hey, just-in-time compilation!) instead of the entire module that contains it. llvm-svn: 7819
* In ExecutionEngine::getPointerToGlobal(), throw away const qualifierBrian Gaeke2003-08-131-1/+1
| | | | | | on Function * when passing it to getPointerToFunction(). llvm-svn: 7818
* Incorporate mapping library into the sparc libraryChris Lattner2003-08-131-1/+1
| | | | llvm-svn: 7800
* Include the new selection library for the X86 targetChris Lattner2003-08-111-1/+1
| | | | llvm-svn: 7720
* Specify DEBUG_TYPE's for the JIT debug messagesChris Lattner2003-08-052-0/+2
| | | | llvm-svn: 7604
* DEBUG got moved to Debug.hChris Lattner2003-08-012-3/+3
| | | | llvm-svn: 7491
* * Stop hard-coding a value for beginning of emitted code on Sparc since we canMisha Brukman2003-07-291-10/+6
| | | | | | | | now handle far calls (i.e., beyond the 30-bit limit in call instructions). * As a side-effect, this allows us to unify and clean up the mmap() call and code around it. llvm-svn: 7381
* Add rationale for the MAP_ANONYMOUS vs. MAP_ANON flags.Misha Brukman2003-07-281-0/+1
| | | | llvm-svn: 7368
* Add ability for external C code to get pointers to functions given their name.Misha Brukman2003-07-281-3/+15
| | | | | | | | | This us used by bugpoint -- when code is compiled to a shared object to be JITted, it must use the JIT's lazy resolution method to find function addresses, because some functions will not be available at .so load time, as they are in the bytecode file. llvm-svn: 7363
* Clean up code dealing with RTLD_SELF differences on Sparc and X86.Misha Brukman2003-07-281-5/+5
| | | | llvm-svn: 7362
* Fix reference to architecture.Misha Brukman2003-07-281-1/+1
| | | | llvm-svn: 7361
* Add in support to load shared objects (-load is provided by Support library).Misha Brukman2003-07-281-1/+1
| | | | llvm-svn: 7360
* Fix spaceChris Lattner2003-07-231-1/+1
| | | | llvm-svn: 7273
* Remove redundant const qualifierChris Lattner2003-07-231-3/+3
| | | | llvm-svn: 7254
* Cleaned up the code which chooses the appropriate value for the file descriptorMisha Brukman2003-07-181-5/+4
| | | | | | | to pass to dlsym() -- Linux/x86 wants 0 while Sparc/Solaris wants RTLD_SELF, which is not zero. Thanks to Chris for the suggestion. llvm-svn: 7204
* Clean up my last checkin: code is easier to read and explains the differences inMisha Brukman2003-07-151-4/+5
| | | | | | usage of the special file handle RTLD_SELF on Sparc/Solaris vs. 0 on Linux/x86. llvm-svn: 7177
* On Sparc/Solaris, the special handle RTLD_SELF is used as a handle referring toMisha Brukman2003-07-151-1/+6
| | | | | | | the program's executing image, not 0 as it is on Linux/x86 and possibly other systems. llvm-svn: 7176
* * If compiling on X86 or Sparc, automagically enable the JIT for that archMisha Brukman2003-07-023-21/+73
| | | | | | | | | | | * Setting ENABLE_X86_JIT or ENABLE_SPARC_JIT on the `make' command-line will force the inclusion of that JIT on a different architecture * If neither JIT is enabled (e.g., compiling on a different architecture), the -march option will not be available to LLI. * As a side effect of the $ARCH variable, the Sparc LLI can now link just a bit faster by not including the x86 library. llvm-svn: 7070
* Merged in autoconf branch. This provides configuration via the autoconfJohn Criswell2003-06-305-7/+8
| | | | | | system. llvm-svn: 7014
* Get rid of the duplicate '0x' in debug mode.Brian Gaeke2003-06-301-1/+1
| | | | llvm-svn: 7012
* Include <cmath> instead of <math.h>Brian Gaeke2003-06-231-10/+1
| | | | | | Remove isnan; it's too unportable to handle cleanly at this point. llvm-svn: 6866
* Add #ifdef hack for MAP_ANONYMOUS being spelled MAP_ANON on some platforms.Brian Gaeke2003-06-171-0/+3
| | | | | | | (We're already talking about autoconf'ing this, so I'm assuming this hack will be short-lived...I just don't want it to get lost in my working files.) llvm-svn: 6761
* Use $(PLATFORMLIBDL) to selectively bring in -ldl only on those platforms whereBrian Gaeke2003-06-171-1/+1
| | | | | | it is needed. llvm-svn: 6753
OpenPOWER on IntegriCloud