summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
Commit message (Collapse)AuthorAgeFilesLines
* simplify this code now that each constant pool entry is not separately allocatedChris Lattner2006-02-091-15/+16
| | | | llvm-svn: 26079
* Adjust to MachineConstantPool interface change: instead of keeping aChris Lattner2006-02-091-7/+10
| | | | | | value/alignment pair for each constant, keep a value/offset pair. llvm-svn: 26078
* rename fields of constant pool entriesChris Lattner2006-02-091-6/+4
| | | | llvm-svn: 26076
* The interpreter assumes that the caller of runFunction() must be lli, andJeff Cohen2006-02-073-8/+7
| | | | | | | | therefore the function being called must be a main() returning an int. The consequences when these assumptions are false are not good, so don't assume them. llvm-svn: 26031
* Teach the interpreter to handle global variables that are added to a module ↵Jeff Cohen2006-02-071-1/+10
| | | | | | | | | after interpretation has begun. The JIT already handles this situation correctly, and the interpreter can already handle new functions being added. llvm-svn: 26030
* Allow the specification of explicit alignments for constant pool entries.Evan Cheng2006-01-311-4/+6
| | | | llvm-svn: 25855
* Add #include of <iostream>Chris Lattner2006-01-221-1/+2
| | | | llvm-svn: 25516
* Fixed InitializeMemory to handle ConstantPacked.Robert Bocchino2006-01-201-0/+6
| | | | llvm-svn: 25481
* Wrap long lines.Chris Lattner2006-01-071-6/+8
| | | | llvm-svn: 25140
* wrap long lineChris Lattner2006-01-071-1/+2
| | | | llvm-svn: 25139
* Fix a nasty bug that was causing miscompilation of global variablesChris Lattner2005-10-231-1/+4
| | | | | | | on big endian 32-bit targets in some cases (e.g. PPC). This fixes several PPC JIT failures. llvm-svn: 23914
* Shrinkify to match llcChris Lattner2005-10-231-3/+3
| | | | llvm-svn: 23912
* Add help support for -mcpu and -mattr.Jim Laskey2005-09-021-3/+3
| | | | llvm-svn: 23222
* 1. Use SubtargetFeatures in llc/lli.Jim Laskey2005-09-011-1/+24
| | | | | | | | 2. Propagate feature "string" to all targets. 3. Implement use of SubtargetFeatures in PowerPCTargetSubtarget. llvm-svn: 23192
* one cannot allocate a global, until one is done initializing the global pointersAndrew Lenharth2005-08-011-5/+5
| | | | llvm-svn: 22568
* Keep tabs and trailing spaces out.Jeff Cohen2005-07-301-4/+4
| | | | llvm-svn: 22565
* support near allocations for the JITAndrew Lenharth2005-07-291-33/+73
| | | | llvm-svn: 22554
* Like constants, globals on some platforms are GOT relative. This means they ↵Andrew Lenharth2005-07-282-14/+78
| | | | | | | | | | | | | | have to be allocated near the GOT, which new doesn't do. So break out the allocate into a new function. Also move GOT index handling into JITResolver. This lets it update the mapping when a Lazy function is JITed. It doesn't managed the table, just the mapping. Note that this is still non-ideal, as any function that takes a function address should also take a GOT index, but that is a lot of changes. The relocation resolve process updates any GOT entry it sees is out of date. llvm-svn: 22537
* Eliminate all remaining tabs and trailing spaces.Jeff Cohen2005-07-273-12/+12
| | | | llvm-svn: 22523
* fix a warning on 32-bit systemsChris Lattner2005-07-251-1/+1
| | | | llvm-svn: 22513
* the JIT memory manager will construct a GOT if you want it too. Also, it ↵Andrew Lenharth2005-07-221-9/+51
| | | | | | places the constants in the allocated memory, rather than a malloc area llvm-svn: 22497
* count the number of relocations performed.Chris Lattner2005-07-201-0/+3
| | | | llvm-svn: 22480
* For PR540:Reid Spencer2005-07-124-34/+86
| | | | | | | | | | | | | | | | | | | | | | This patch completes the changes for making lli thread-safe. Here's the list of changes: * The Support/ThreadSupport* files were removed and replaced with the MutexGuard.h file since all ThreadSupport* declared was a Mutex Guard. The implementation of MutexGuard.h is now based on sys::Mutex which hides its implementation and makes it unnecessary to have the -NoSupport.h and -PThreads.h versions of ThreadSupport. * All places in ExecutionEngine that previously referred to "Mutex" now refer to sys::Mutex * All places in ExecutionEngine that previously referred to "MutexLocker" now refer to MutexGuard (this is frivolous but I believe the technically correct name for such a class is "Guard" not a "Locker"). These changes passed all of llvm-test. All we need now are some test cases that actually use multiple threads. llvm-svn: 22404
* fix long linesChris Lattner2005-07-111-3/+4
| | | | llvm-svn: 22369
* core changes for varargsAndrew Lenharth2005-06-182-13/+3
| | | | llvm-svn: 22254
* Fix a really horrible problem that causes the JIT to miscompile any programChris Lattner2005-05-121-2/+2
| | | | | | that use 64-bit integers on 32-bit hosts. llvm-svn: 21886
* Make the stub functions be tail callsChris Lattner2005-05-061-1/+2
| | | | llvm-svn: 21738
* Convert tabs to spacesMisha Brukman2005-04-224-8/+9
| | | | llvm-svn: 21440
* Remove trailing whitespaceMisha Brukman2005-04-215-24/+24
| | | | llvm-svn: 21422
* * Remove trailing whitespaceMisha Brukman2005-04-214-113/+113
| | | | | | * Convert tabs to spaces llvm-svn: 21421
* Remove trailing whitespaceMisha Brukman2005-04-211-21/+21
| | | | llvm-svn: 21420
* Add support for targets that require stubs for external functions.Chris Lattner2005-04-181-2/+27
| | | | llvm-svn: 21313
* Fix the missing symbols problem Bill was hitting. Patch contributed byChris Lattner2005-03-171-0/+1
| | | | | | Bill Wendling!! llvm-svn: 20649
* This mega patch converts us from using Function::a{iterator|begin|end} toChris Lattner2005-03-152-5/+5
| | | | | | | | using Function::arg_{iterator|begin|end}. Likewise Module::g* -> Module::global_*. This patch is contributed by Gabor Greif, thanks! llvm-svn: 20597
* Use const iterators where possible. Patch by Evan Jones!Chris Lattner2005-02-271-2/+2
| | | | llvm-svn: 20354
* Fix problems running the HowToUseJIT on powerpc, and probably problems withChris Lattner2005-02-201-2/+2
| | | | | | ANY program that does not have all functions internalized. llvm-svn: 20258
* This is no longer needed. Global variables with undef initializers can beChris Lattner2005-02-021-2/+0
| | | | | | initialized to anything, including garbage. llvm-svn: 20010
* If the interpreter tries to execute an external function, kill it. Of courseChris Lattner2005-01-211-6/+8
| | | | | | | | since we are dirty, special case __main. This should fix the infinite loop horrible stuff that happens on linux-alpha when configuring llvm-gcc. It might also help cygwin, who knows?? llvm-svn: 19729
* Improve compatiblity with HPUX on Itanium, patch by Duraid MadinaChris Lattner2005-01-161-1/+1
| | | | llvm-svn: 19586
* Rework constant pool handling so that function constant pools are no longerChris Lattner2005-01-101-21/+24
| | | | | | | leaked to the system. Now they are destroyed with the JITMemoryManager is destroyed. llvm-svn: 19434
* Silence warningsChris Lattner2005-01-081-2/+2
| | | | llvm-svn: 19392
* Silence VS warnings.Chris Lattner2005-01-081-37/+37
| | | | llvm-svn: 19391
* Silence VS warnings.Chris Lattner2005-01-082-2/+3
| | | | llvm-svn: 19390
* Silence VS warningsChris Lattner2005-01-081-4/+4
| | | | llvm-svn: 19389
* Be double sure about including sys/stat.h by wrapping the inclusion inReid Spencer2004-12-201-0/+3
| | | | | | an "#if defined(HAVE_SYS_STAT_H)". llvm-svn: 19069
* Move the #include of sys/stat.h inside the linux "hack" for the statReid Spencer2004-12-171-3/+1
| | | | | | family of functions so it gets noticed if we ever remove this. llvm-svn: 19022
* Only #include sys/stat.h if we're on linux where we have the PR274 problem.Reid Spencer2004-12-171-0/+2
| | | | llvm-svn: 19020
* Get rid of some leaks found by VC leak detector.Reid Spencer2004-12-131-0/+5
| | | | | | Patch contributed by Morten Ofsted. llvm-svn: 18889
* Properly implement a fix for PR475Chris Lattner2004-12-052-13/+15
| | | | llvm-svn: 18537
* Revert this patch, it broke a ton of programs.Chris Lattner2004-12-051-4/+0
| | | | llvm-svn: 18535
OpenPOWER on IntegriCloud