summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/JIT
Commit message (Collapse)AuthorAgeFilesLines
...
* Address PR274 - '[JIT] Programs cannot resolve the fstat function'Brian Gaeke2004-03-091-0/+18
| | | | | | | | | by trying to get the compiler to generate an undefined reference for it and related functions which live in libc_nonshared.a on Linux. Linkers... sigh. llvm-svn: 12256
* Great sparc renaming fallout IV: Sparc --> SparcV9.Brian Gaeke2004-02-251-1/+1
| | | | llvm-svn: 11844
* Great renaming part II: Sparc --> SparcV9 (also includes command-line ↵Brian Gaeke2004-02-251-5/+5
| | | | | | options and Makefiles) llvm-svn: 11827
* There is no reason to #define fdChris Lattner2004-02-081-3/+2
| | | | llvm-svn: 11190
* Print an error message if there is an error materialize the bc file.Chris Lattner2004-02-011-1/+6
| | | | llvm-svn: 11041
* Pass around IntrinsicLowering instances as appropriate.Chris Lattner2003-12-282-5/+8
| | | | | | Reimplement the Interpreters implementation of va_* to be more direct. llvm-svn: 10627
* No longer run atExit functions from run()Chris Lattner2003-12-263-23/+27
| | | | | | | rename run to runFunction Genericize the runFunction code a little bit, though it still stinks llvm-svn: 10610
* This should not be needed anymoreChris Lattner2003-12-201-4/+0
| | | | llvm-svn: 10558
* Implement PR135, lazy emission of global variablesChris Lattner2003-12-203-15/+78
| | | | llvm-svn: 10549
* Cleanup the JIT as per PR176. This renames the VM class to JIT, and merges theChris Lattner2003-12-206-221/+217
| | | | | | | VM.cpp and JIT.cpp files into JIT.cpp. This also splits some nasty code out into TargetSelect.cpp so that people hopefully won't notice it. :) llvm-svn: 10544
* Rip JIT specific stuff out of TargetMachine, as per PR176Chris Lattner2003-12-203-15/+16
| | | | llvm-svn: 10542
* Implement the ExecutionEngine::getPointerToFunctionOrStub by forwarding theChris Lattner2003-12-122-0/+23
| | | | | | request on to the TargetMachine if it supports the getJITStubForFunction method llvm-svn: 10431
* Finegrainify namespacificationChris Lattner2003-12-084-17/+5
| | | | llvm-svn: 10318
* Emit constants to one contiguous block, but this time, respect alignment ↵Chris Lattner2003-11-301-5/+27
| | | | | | | | constraints. If this doesn't work Misha, feel free to revert it. llvm-svn: 10267
* Go back to allocating memory for each constant separately. Since SPARCs do notMisha Brukman2003-11-301-20/+5
| | | | | | | | allow unaligned loads, that is probably the problem I've been seeing in numerous SPARC test cases failing. X86, on the other hand, just slows down unaligned accesses, since it must make 2 aligned accesses for each unaligned one. llvm-svn: 10266
* Emit the MachineConstantPool constants in one contiguous memory `pool'.Misha Brukman2003-11-171-5/+20
| | | | llvm-svn: 10060
* * Order #includes as per style guideMisha Brukman2003-11-171-8/+7
| | | | | | | * Delete blank comment lines * Eliminate space between function name and open-paren ( to be consistent llvm-svn: 10059
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-115-0/+20
| | | | llvm-svn: 9903
* Remove #include of PassManager.h which was marked FIXME, and apparently is noBrian Gaeke2003-11-091-3/+0
| | | | | | longer used. llvm-svn: 9823
* Remove the *BIG UGLY HACK* from the JIT: PreSelection is now a FunctionPass.Misha Brukman2003-11-071-15/+0
| | | | llvm-svn: 9790
* In VM::create(), comment out almost the whole function if NO_JITS_ENABLED,Brian Gaeke2003-10-291-3/+4
| | | | | | because the Arch variable will likely be undefined. llvm-svn: 9576
* 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-211-0/+7
| | | | llvm-svn: 9321
* Added LLVM copyright notice to Makefiles.John Criswell2003-10-201-0/+8
| | | | llvm-svn: 9312
* Added LLVM project notice to the top of every C++ source file.John Criswell2003-10-204-0/+28
| | | | | | 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
* 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
* Enabling incremental bytecode loading in the JIT:Misha Brukman2003-10-143-7/+15
| | | | | | * The VM is now constructed with a ModuleProvider llvm-svn: 9125
* 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-101-1/+0
| | | | llvm-svn: 9031
* Change to use GetAddressOfSymbol instead of dlsym.Brian Gaeke2003-10-101-10/+5
| | | | llvm-svn: 9012
* 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
* ExecutionEngine.h, GenericValue.h --> include/llvm/ExecutionEngine/Brian Gaeke2003-09-052-2/+2
| | | | | | Build ExecutionEngine as library. llvm-svn: 8370
* Make CreateArgv part of lli rather than part of ExecutionEngine.Brian Gaeke2003-09-053-41/+32
| | | | | | | | | | | | | | | 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
* ExecutionEngine.cpp: Move execution engine creation stuff into a newBrian Gaeke2003-09-032-4/+8
| | | | | | | | | | | | | | | | | | 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-3/+3
| | | | | | ad-hoc "Config" flags llvm-svn: 8134
* 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-212-4/+29
| | | | | | | starts a program. This allows the GNU env program to compile and JIT under LLVM. llvm-svn: 8022
* 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-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
* 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
OpenPOWER on IntegriCloud