Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add a special case for argc,argv | Chris Lattner | 2004-08-16 | 1 | -2/+13 |
| | | | | llvm-svn: 15802 | ||||
* | Finally, add support for calling arbitrary non-varargs functions. | Chris Lattner | 2004-08-16 | 1 | -9/+58 |
| | | | | llvm-svn: 15799 | ||||
* | Handle all nullary functions, of any valid return type. | Chris Lattner | 2004-08-15 | 1 | -7/+46 |
| | | | | llvm-svn: 15798 | ||||
* | Fine, go all of the way and check that the argument types are correct as well. | Chris Lattner | 2004-08-15 | 1 | -13/+27 |
| | | | | llvm-svn: 15797 | ||||
* | These only really work if returning int or void | Chris Lattner | 2004-08-15 | 1 | -17/+21 |
| | | | | llvm-svn: 15796 | ||||
* | Handle zero arg function case | Chris Lattner | 2004-08-15 | 1 | -1/+5 |
| | | | | llvm-svn: 15794 | ||||
* | Simplify code a bit, print error message always instead of asserting. | Chris Lattner | 2004-08-15 | 1 | -16/+19 |
| | | | | llvm-svn: 15793 | ||||
* | The cleanup is done. Update comment. | Chris Lattner | 2004-07-11 | 1 | -5/+2 |
| | | | | llvm-svn: 14761 | ||||
* | Goodbye macro hell, hello nice clean simple extensible code. This change | Chris Lattner | 2004-07-11 | 1 | -55/+13 |
| | | | | | | | | also gives the JIT the ability to dynamically load targets. e.g. lli -load libparisc.so -march=parisc foo.bc llvm-svn: 14750 | ||||
* | Make error message consistent with the rest of LLVM by saying that bytecode | Reid Spencer | 2004-07-07 | 1 | -2/+2 |
| | | | | | | is read, not parsed. llvm-svn: 14677 | ||||
* | Fix for bug 391. | Reid Spencer | 2004-07-07 | 1 | -0/+3 |
| | | | | | | Improve exeception handling around bcreader invocations. llvm-svn: 14674 | ||||
* | Add #include <iostream> since Value.h does not #include it any more. | Reid Spencer | 2004-07-04 | 1 | -0/+2 |
| | | | | llvm-svn: 14622 | ||||
* | Implement PR315: abort, don't warn, when missing external functions encountered | Chris Lattner | 2004-06-01 | 1 | -9/+17 |
| | | | | | | This fixes some critical problems building libstdc++ on cygwin. llvm-svn: 13934 | ||||
* | Use the SystemUtils.h file to do our dirty work. | Chris Lattner | 2004-05-28 | 1 | -52/+2 |
| | | | | llvm-svn: 13868 | ||||
* | This code is a real mess, but at least get the JIT *building* on platforms | Chris Lattner | 2004-05-27 | 1 | -0/+8 |
| | | | | | | | (such as plan 9) without mmap. Of course it won't RUN... but that's another step. :) llvm-svn: 13839 | ||||
* | Implement emitWordAt() for the JIT emitter. | Brian Gaeke | 2004-04-23 | 1 | -0/+5 |
| | | | | llvm-svn: 13118 | ||||
* | Add a TargetData to the PassManager regardless of the TargetMachine. | Brian Gaeke | 2004-04-14 | 1 | -0/+3 |
| | | | | | | This should unbreak the Sparc JIT again. llvm-svn: 12949 | ||||
* | My fix for PR274 broke the build on Darwin/PPC. As I'm fairly certain this | Brian Gaeke | 2004-03-10 | 1 | -2/+4 |
| | | | | | | | bug only affects Linux systems that use GLIBC, I'm going to put ifdefs around the array. llvm-svn: 12269 | ||||
* | Address PR274 - '[JIT] Programs cannot resolve the fstat function' | Brian Gaeke | 2004-03-09 | 1 | -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 Gaeke | 2004-02-25 | 1 | -1/+1 |
| | | | | llvm-svn: 11844 | ||||
* | Great renaming part II: Sparc --> SparcV9 (also includes command-line ↵ | Brian Gaeke | 2004-02-25 | 1 | -5/+5 |
| | | | | | | options and Makefiles) llvm-svn: 11827 | ||||
* | There is no reason to #define fd | Chris Lattner | 2004-02-08 | 1 | -3/+2 |
| | | | | llvm-svn: 11190 | ||||
* | Print an error message if there is an error materialize the bc file. | Chris Lattner | 2004-02-01 | 1 | -1/+6 |
| | | | | llvm-svn: 11041 | ||||
* | Pass around IntrinsicLowering instances as appropriate. | Chris Lattner | 2003-12-28 | 2 | -5/+8 |
| | | | | | | Reimplement the Interpreters implementation of va_* to be more direct. llvm-svn: 10627 | ||||
* | No longer run atExit functions from run() | Chris Lattner | 2003-12-26 | 3 | -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 anymore | Chris Lattner | 2003-12-20 | 1 | -4/+0 |
| | | | | llvm-svn: 10558 | ||||
* | Implement PR135, lazy emission of global variables | Chris Lattner | 2003-12-20 | 3 | -15/+78 |
| | | | | llvm-svn: 10549 | ||||
* | Cleanup the JIT as per PR176. This renames the VM class to JIT, and merges the | Chris Lattner | 2003-12-20 | 6 | -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 PR176 | Chris Lattner | 2003-12-20 | 3 | -15/+16 |
| | | | | llvm-svn: 10542 | ||||
* | Implement the ExecutionEngine::getPointerToFunctionOrStub by forwarding the | Chris Lattner | 2003-12-12 | 2 | -0/+23 |
| | | | | | | request on to the TargetMachine if it supports the getJITStubForFunction method llvm-svn: 10431 | ||||
* | Finegrainify namespacification | Chris Lattner | 2003-12-08 | 4 | -17/+5 |
| | | | | llvm-svn: 10318 | ||||
* | Emit constants to one contiguous block, but this time, respect alignment ↵ | Chris Lattner | 2003-11-30 | 1 | -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 not | Misha Brukman | 2003-11-30 | 1 | -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 Brukman | 2003-11-17 | 1 | -5/+20 |
| | | | | llvm-svn: 10060 | ||||
* | * Order #includes as per style guide | Misha Brukman | 2003-11-17 | 1 | -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 Gaeke | 2003-11-11 | 5 | -0/+20 |
| | | | | llvm-svn: 9903 | ||||
* | Remove #include of PassManager.h which was marked FIXME, and apparently is no | Brian Gaeke | 2003-11-09 | 1 | -3/+0 |
| | | | | | | longer used. llvm-svn: 9823 | ||||
* | Remove the *BIG UGLY HACK* from the JIT: PreSelection is now a FunctionPass. | Misha Brukman | 2003-11-07 | 1 | -15/+0 |
| | | | | llvm-svn: 9790 | ||||
* | In VM::create(), comment out almost the whole function if NO_JITS_ENABLED, | Brian Gaeke | 2003-10-29 | 1 | -3/+4 |
| | | | | | | because the Arch variable will likely be undefined. llvm-svn: 9576 | ||||
* | Destroy MachineFunction for any Function that we are about to | Brian Gaeke | 2003-10-24 | 1 | -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 Criswell | 2003-10-21 | 1 | -0/+7 |
| | | | | llvm-svn: 9321 | ||||
* | Added LLVM copyright notice to Makefiles. | John Criswell | 2003-10-20 | 1 | -0/+8 |
| | | | | llvm-svn: 9312 | ||||
* | Added LLVM project notice to the top of every C++ source file. | John Criswell | 2003-10-20 | 4 | -0/+28 |
| | | | | | | Header files will be on the way. llvm-svn: 9298 | ||||
* | Hrm, a relic from the past. How cute :) | Chris Lattner | 2003-10-20 | 1 | -1/+1 |
| | | | | llvm-svn: 9283 | ||||
* | Tidy up doxygen comment for getPointerToFunction(). | Brian Gaeke | 2003-10-17 | 1 | -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 Gaeke | 2003-10-17 | 1 | -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 Gaeke | 2003-10-16 | 1 | -2/+1 |
| | | | | llvm-svn: 9184 | ||||
* | JIT.cpp: | Misha Brukman | 2003-10-16 | 2 | -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 Brukman | 2003-10-14 | 3 | -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 on | Brian Gaeke | 2003-10-11 | 1 | -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 |