summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/JIT/Emitter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Don't include Config/stdio.h or <stdio.h>.Brian Gaeke2003-10-101-1/+0
| | | | llvm-svn: 9031
* 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
* * 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
* 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
* Specify DEBUG_TYPE's for the JIT debug messagesChris Lattner2003-08-051-0/+1
| | | | llvm-svn: 7604
* DEBUG got moved to Debug.hChris Lattner2003-08-011-0/+1
| | | | 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
* Merged in autoconf branch. This provides configuration via the autoconfJohn Criswell2003-06-301-1/+2
| | | | | | 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
* Add #include for older GCC'sChris Lattner2003-06-081-0/+1
| | | | llvm-svn: 6670
* 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
* * Removed SparcEmitter.cpp; rolled into lib/Target/Sparc/SparcV9CodeEmitter.cppMisha Brukman2003-06-021-3/+20
| | | | | | | | | * 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
* Remove obsolete codeChris Lattner2003-06-021-51/+0
| | | | llvm-svn: 6518
* Move target specific code to target files. The new MachineCodeEmitterChris Lattner2003-06-011-39/+69
| | | | | | class is actually target independent! llvm-svn: 6517
* Allow for specification of which JIT to run on the commandline.Misha Brukman2003-05-271-1/+1
| | | | | | | | | | | | | | | | `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 function stubs, which allow calling functions which need toChris Lattner2003-05-091-5/+30
| | | | | | 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-081-5/+9
| | | | llvm-svn: 6052
* Improve efficiency of JIT by having it use direct function calls instead ofChris Lattner2003-05-081-1/+4
| | | | | | signals to regain control from the executing code llvm-svn: 6051
* Fix warnings on sparcChris Lattner2003-01-291-4/+5
| | | | llvm-svn: 5427
* Add support for new types of valuesChris Lattner2003-01-131-13/+56
| | | | llvm-svn: 5256
* Initial checkin of new LLI with JIT compilerChris Lattner2002-12-241-0/+107
llvm-svn: 5126
OpenPOWER on IntegriCloud