summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/JIT
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Fix spaceChris Lattner2003-07-231-1/+1
| | | | llvm-svn: 7273
* * If compiling on X86 or Sparc, automagically enable the JIT for that archMisha Brukman2003-07-022-12/+48
| | | | | | | | | | | * 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-302-2/+3
| | | | | | system. llvm-svn: 7014
* Get rid of the duplicate '0x' in debug mode.Brian Gaeke2003-06-301-1/+1
| | | | llvm-svn: 7012
* 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
* Apparently "sparc" is a macro on sparcs. Ugh. :)Chris Lattner2003-06-171-4/+4
| | | | llvm-svn: 6744
* Use more structured command line option processingChris Lattner2003-06-171-22/+28
| | | | llvm-svn: 6742
* #ifdef out code that only applies when the HOSTARCH = sparcChris Lattner2003-06-171-1/+4
| | | | llvm-svn: 6741
* Add #include for older GCC'sChris Lattner2003-06-081-0/+1
| | | | llvm-svn: 6670
* ::: HACK ALERT ::: HACK ALERT ::: HACK ALERT ::: HACK ALERT ::: HACK ALERT :::Misha Brukman2003-06-061-1/+14
| | | | | | | | | | | | | | | | | The JIT is designed to code-generate a function at-a-time. That means that any pass can only make local changes to its function. Period. Because the Sparc PreSelection pass claims to be a BasicBlock pass while adding globals to the Module, it cannot be run with the other passes, because by this time, the globals have been output already by the JIT, and the addresses of any globals appearing AFTER this point are not recognized. However, the PreSelection pass is a requirement for correctness in the Sparc codegen path, so it MUST be run. ::: HACK ALERT ::: HACK ALERT ::: HACK ALERT ::: HACK ALERT ::: HACK ALERT ::: llvm-svn: 6650
* Output function address as hex.Misha Brukman2003-06-061-3/+2
| | | | llvm-svn: 6649
* Removed debug print statement.Misha Brukman2003-06-061-1/+0
| | | | llvm-svn: 6641
* * Institute a hack for the Sparc call to mmap() to get our generated code to beMisha Brukman2003-06-041-10/+16
| | | | | | | | | | | laid out closer to the VM so that calls to library functions (e.g. puts()) and callback (e.g. JITResolver::CompilationCallback) fit into 30 bits of the call instruction. * Abort if architecture is not yet supported (not X86 or Sparc) because it likely requires a different set of parameters to mmap() . * Stop using hard-coded values for page size; use sysconf(_SC_PAGESIZE) instead. llvm-svn: 6610
* Sparc's dlsym() requires the special operand RTLD_SELF to find a symbol in theMisha Brukman2003-06-041-0/+4
| | | | | | currently-running process. llvm-svn: 6592
* * Removed SparcEmitter.cpp; rolled into lib/Target/Sparc/SparcV9CodeEmitter.cppMisha Brukman2003-06-024-260/+23
| | | | | | | | | * No more createX86Emitter() vs. createSparcEmitter() -- there can be only one * As a result, the memory management semantics must be handled according to platform -- the parameters to mmap() are particularly sensitive to the host architecture. llvm-svn: 6527
* The flag modifications weren't picking up the old values of theBrian Gaeke2003-06-021-5/+10
| | | | | | | flags before. Save them in a temporary variable, then restore them from the temporary after creating the new constant. llvm-svn: 6520
* Remove obsolete codeChris Lattner2003-06-021-51/+0
| | | | llvm-svn: 6518
* Move target specific code to target files. The new MachineCodeEmitterChris Lattner2003-06-015-171/+76
| | | | | | class is actually target independent! llvm-svn: 6517
* Fix induction variable name clash in for loops, in finishFunction().Brian Gaeke2003-06-011-3/+8
| | | | | | | Modify new MachineOperand so that its flags match the old MachineOperand's flags, for the flags that matter. llvm-svn: 6513
* Fixed rewriting of branches -- they now work forward and backward.Misha Brukman2003-05-311-4/+9
| | | | llvm-svn: 6463
* Since malloc is no longer used, no need to free() memory.Misha Brukman2003-05-301-15/+11
| | | | | | Fixed BasicBlock patching by supplying correct type for the displacement. llvm-svn: 6453
* Fix call to mmap, so that it can be used on sparc.Brian Gaeke2003-05-301-10/+5
| | | | llvm-svn: 6424
* mmap() seems to be failing on Sparc, so just use malloc()/free() .Misha Brukman2003-05-281-4/+29
| | | | llvm-svn: 6387
* Allow for specification of which JIT to run on the commandline.Misha Brukman2003-05-274-13/+269
| | | | | | | | | | | | | | | | `lli -march=x86' or `lli -march=sparc' will forcefully select the JIT even on a different platform. Running lli without the -march option will select the JIT for the platform that it's currently running on. Pro: can test Sparc JIT (debug printing mode) on X86 -- faster to compile/link LLVM source base to test changes. Con: Linking lli on x86 now pulls in all the Sparc libs -> longer link time (but X86 can bear it, right?) In the future, perhaps this should be a ./configure option to enable/disable target JITting... llvm-svn: 6360
* Add support for atexit handlers to the JIT, fixing 2003-05-14-AtExit.cChris Lattner2003-05-143-4/+28
| | | | llvm-svn: 6193
* Fix compilation problems with previous checking *blush*Chris Lattner2003-05-141-3/+4
| | | | llvm-svn: 6191
* Add a framework for intercepting system callsChris Lattner2003-05-142-21/+54
| | | | llvm-svn: 6190
* Make sure that globals are emitted AFTER the passmanager is set up for the JIT,Chris Lattner2003-05-121-0/+1
| | | | | | because the globals may refer to functions that need to be compiled! llvm-svn: 6105
* Add support for function stubs, which allow calling functions which need toChris Lattner2003-05-094-8/+73
| | | | | | have an address available, but have not yet been code generated. llvm-svn: 6059
* Minor speedup by avoiding callbacks to functions already generatedChris Lattner2003-05-082-6/+9
| | | | llvm-svn: 6052
* Improve efficiency of JIT by having it use direct function calls instead ofChris Lattner2003-05-083-36/+29
| | | | | | signals to regain control from the executing code llvm-svn: 6051
* assert early instead of late for unimplemented featureChris Lattner2003-05-081-3/+10
| | | | llvm-svn: 6050
* Fix warnings on sparcChris Lattner2003-01-291-4/+5
| | | | llvm-svn: 5427
* Add support for named functionsChris Lattner2003-01-132-11/+24
| | | | llvm-svn: 5258
* Dead fileChris Lattner2003-01-131-0/+0
| | | | llvm-svn: 5257
* Add support for new types of valuesChris Lattner2003-01-131-13/+56
| | | | llvm-svn: 5256
* Bad segvs actually cause a segv nowChris Lattner2003-01-131-2/+9
| | | | llvm-svn: 5255
* Initial checkinChris Lattner2002-12-241-0/+54
| | | | llvm-svn: 5127
* Initial checkin of new LLI with JIT compilerChris Lattner2002-12-246-0/+310
llvm-svn: 5126
OpenPOWER on IntegriCloud