Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move the IntrinsicLowering header into the CodeGen directory, as per PR346 | Chris Lattner | 2004-06-20 | 2 | -2/+2 |
| | | | | llvm-svn: 14266 | ||||
* | Move the IntrinsicLowering header into the CodeGen directory | Chris Lattner | 2004-06-20 | 1 | -1/+1 |
| | | | | llvm-svn: 14265 | ||||
* | Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID() | Chris Lattner | 2004-06-17 | 3 | -29/+29 |
| | | | | llvm-svn: 14201 | ||||
* | Add int ferror(FILE *) | Brian Gaeke | 2004-06-16 | 1 | -0/+8 |
| | | | | llvm-svn: 14194 | ||||
* | 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 | ||||
* | Remove long unused #includes | Chris Lattner | 2004-05-27 | 1 | -1/+0 |
| | | | | llvm-svn: 13857 | ||||
* | These #includes are long dead | Chris Lattner | 2004-05-27 | 1 | -2/+0 |
| | | | | llvm-svn: 13856 | ||||
* | 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 | ||||
* | Get rid of a wart: useless getFILE function is now a cast macro. | Reid Spencer | 2004-05-25 | 1 | -42/+2 |
| | | | | llvm-svn: 13747 | ||||
* | Generalize the strlen size_t hack, for the benefit of the other external | Brian Gaeke | 2004-05-01 | 1 | -17/+33 |
| | | | | | | functions with wrappers that either take or return size_ts. llvm-svn: 13296 | ||||
* | Go back to the interpreter main loop after performing intrinsic lowering, | Brian Gaeke | 2004-04-23 | 1 | -0/+1 |
| | | | | | | | | because 1) the first instruction might not be a call site, and 2) CS and SF.Caller were not getting set to point to the new call site anyway (resulting in a crash on e.g. call %llvm.memset). llvm-svn: 13122 | ||||
* | Implement emitWordAt() for the JIT emitter. | Brian Gaeke | 2004-04-23 | 1 | -0/+5 |
| | | | | llvm-svn: 13118 | ||||
* | Add support for the select instruction | Chris Lattner | 2004-04-20 | 2 | -2/+24 |
| | | | | llvm-svn: 13076 | ||||
* | 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 | ||||
* | Adjust to new interface | Chris Lattner | 2004-04-04 | 1 | -1/+1 |
| | | | | llvm-svn: 12646 | ||||
* | Adjust to new gep_type_iterator prototypes. | Chris Lattner | 2004-04-04 | 1 | -1/+3 |
| | | | | llvm-svn: 12644 | ||||
* | Fix PR296: [execution engines] Unhandled cast constant expression | Chris Lattner | 2004-03-16 | 1 | -6/+17 |
| | | | | llvm-svn: 12435 | ||||
* | Rename the intrinsic enum values for llvm.va_* from Intrinsic::va_* to | Chris Lattner | 2004-03-13 | 1 | -3/+3 |
| | | | | | | Intrinsic::va*. This avoid conflicting with macros in the stdlib.h file. llvm-svn: 12356 | ||||
* | 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 | ||||
* | remove obsolete comment | Chris Lattner | 2004-02-26 | 1 | -1/+1 |
| | | | | llvm-svn: 11872 | ||||
* | Represent va_list in interpreter as a (ec-stack-depth . var-arg-index) | Brian Gaeke | 2004-02-25 | 1 | -11/+14 |
| | | | | | | | | | pair, and look up varargs in the execution stack every time, instead of just pushing iterators (which can be invalidated during callFunction()) around. (union GenericValue now has a "pair of uints" member, to support this mechanism.) Fixes Bug 234. llvm-svn: 11845 | ||||
* | 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 | ||||
* | Make the JIT zero out globals with memset instead of an element at a time. This | Chris Lattner | 2004-02-15 | 1 | -0/+4 |
| | | | | | | should speed it up a bit on a lot of programs llvm-svn: 11472 | ||||
* | Fix off-by-one in Interpreter::getFirstVarArg(), which was punishing | Brian Gaeke | 2004-02-13 | 1 | -1/+1 |
| | | | | | | | any attempts by LLI to use varargs (possibly left over from the introduction of IntrinsicLowering??) llvm-svn: 11370 | ||||
* | The Interpreter was failing the AtExit UnitTest. This fixes it. | Brian Gaeke | 2004-02-13 | 1 | -0/+4 |
| | | | | llvm-svn: 11367 | ||||
* | Start using the new and improve interface to FunctionType arguments | Chris Lattner | 2004-02-09 | 1 | -2/+2 |
| | | | | llvm-svn: 11224 | ||||
* | rename the "exceptional" destination of an invoke instruction to the ↵ | Chris Lattner | 2004-02-08 | 1 | -2/+1 |
| | | | | | | 'unwind' dest llvm-svn: 11202 | ||||
* | Print out all globals as they are emitted, not just those emitted from | Chris Lattner | 2004-02-08 | 1 | -3/+2 |
| | | | | | | emitGlobals llvm-svn: 11191 | ||||
* | There is no reason to #define fd | Chris Lattner | 2004-02-08 | 1 | -3/+2 |
| | | | | llvm-svn: 11190 | ||||
* | Print an error message if we can't materialize the bytecode file | Chris Lattner | 2004-02-01 | 1 | -5/+11 |
| | | | | llvm-svn: 11043 | ||||
* | Print an error message if there is an error materialize the bc file. | Chris Lattner | 2004-02-01 | 1 | -1/+6 |
| | | | | llvm-svn: 11041 | ||||
* | Don't pass anything to the IntrinsicLowering class that is not_intrinsic, | Brian Gaeke | 2004-01-14 | 1 | -1/+4 |
| | | | | | | | | | because that makes it abort. Also, fix a typo in a comment. This checkin brought to you by the "It only takes about 30 seconds to run ENABLE_LLI tests on Shootout on zion, even if they all dump core" fund. llvm-svn: 10844 | ||||
* | Add new ExecutionEngine::getGlobalValueAtAddress method, which can efficiently | Chris Lattner | 2003-12-31 | 1 | -5/+21 |
| | | | | | | | | | | turn a memory address back into the LLVM global object that starts at that address. Note that this won't cause any additional datastructures to be built for clients of the EE that don't need this information. Also modified some code to not access the GlobalAddress map directly. llvm-svn: 10674 | ||||
* | Clean up a lot of the code I added yesterday by exposing the IntrinsicLowering | Chris Lattner | 2003-12-28 | 1 | -1/+0 |
| | | | | | | implementation from the TargetMachine directly. llvm-svn: 10636 | ||||
* | Pass around IntrinsicLowering instances as appropriate. | Chris Lattner | 2003-12-28 | 7 | -50/+74 |
| | | | | | | Reimplement the Interpreters implementation of va_* to be more direct. llvm-svn: 10627 | ||||
* | Factor code out of LLI | Chris Lattner | 2003-12-26 | 1 | -0/+54 |
| | | | | llvm-svn: 10616 | ||||
* | 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 | ||||
* | No longer run atExit functions from run() | Chris Lattner | 2003-12-26 | 2 | -10/+6 |
| | | | | | | rename run to runFunction llvm-svn: 10609 | ||||
* | 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 | 4 | -19/+85 |
| | | | | llvm-svn: 10549 | ||||
* | Simple refactorings to prepare for lazy global emission | Chris Lattner | 2003-12-20 | 1 | -2/+16 |
| | | | | | | Also, add a stat for the number of globals emitted llvm-svn: 10547 | ||||
* | 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 | ||||
* | Update for changes in the JIT | Chris Lattner | 2003-12-20 | 1 | -2/+2 |
| | | | | llvm-svn: 10543 | ||||
* | Rip JIT specific stuff out of TargetMachine, as per PR176 | Chris Lattner | 2003-12-20 | 3 | -15/+16 |
| | | | | llvm-svn: 10542 | ||||
* | Finegrainify namespacification | Chris Lattner | 2003-12-14 | 2 | -24/+2 |
| | | | | llvm-svn: 10465 | ||||
* | Dynamically get the right-sized member of a GenericValue to hold a size_t, and | Brian Gaeke | 2003-12-12 | 1 | -2/+8 |
| | | | | | | use it to return the result of strlen. llvm-svn: 10433 | ||||
* | 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 |