summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/JIT/Intercept.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move getPointerToNamedFunction() from JIT/MCJIT to JITMemoryManager.Danil Malyshev2012-03-281-162/+0
| | | | llvm-svn: 153607
* Revert a series of commits to MCJIT to get the build working in CMakeChandler Carruth2012-03-221-0/+162
| | | | | | | | | | | | | | | (and hopefully on Windows). The bots have been down most of the day because of this, and it's not clear to me what all will be required to fix it. The commits started with r153205, then r153207, r153208, and r153221. The first commit seems to be the real culprit, but I couldn't revert a smaller number of patches. When resubmitting, r153207 and r153208 should be folded into r153205, they were simple build fixes. llvm-svn: 153241
* Based on this discussion: ↵Danil Malyshev2012-03-211-162/+0
| | | | | | | | | http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120305/138477.html 1. Declare a virtual function getPointerToNamedFunction() in JITMemoryManager 2. Move the implementation of getPointerToNamedFunction() form JIT/MCJIT to DefaultJITMemoryManager. llvm-svn: 153205
* EE: Provide the symbol "lseek64" explicitly with <unistd.h> on Linux glibc.NAKAMURA Takumi2011-08-141-0/+1
| | | | | | With libcxx, it seems <unistd.h> would not be provided. Thanks to Ryuta Suzuki. llvm-svn: 137567
* Trailing whitespace.Jim Grosbach2011-03-221-6/+6
| | | | llvm-svn: 128086
* Merge System into Support.Michael J. Spencer2010-11-291-1/+1
| | | | llvm-svn: 120298
* Fix a comment.NAKAMURA Takumi2010-08-301-1/+1
| | | | llvm-svn: 112535
* EE/JIT: Do not invoke parent's ctors/dtors from main()! (PR3897)NAKAMURA Takumi2010-08-301-0/+12
| | | | | | | | | | On Mingw and Cygwin, the symbol __main is resolved to callee's(eg. tools/lli) one, to invoke wrong duplicated ctors (and register wrong callee's dtors with atexit(3)). We expect, by callee, ExecutionEngine::runStaticConstructorsDestructors() is called before ExecutionEngine::runFunctionAsMain() is called. llvm-svn: 112474
* rename llvm::llvm_report_error -> llvm::report_fatal_errorChris Lattner2010-04-071-1/+1
| | | | llvm-svn: 100709
* remove some uses of llvm/Support/Streams.hChris Lattner2009-08-231-1/+0
| | | | llvm-svn: 79842
* This void is implicit in C++.Dan Gohman2009-08-121-1/+1
| | | | llvm-svn: 78848
* Fix a bunch of namespace pollution.Dan Gohman2009-08-071-0/+2
| | | | llvm-svn: 78363
* llvm_report_error already prints "LLVM ERROR:". So stop reporting errors ↵Benjamin Kramer2009-08-031-1/+1
| | | | | | like "LLVM ERROR: llvm: error:" or "LLVM ERROR: ERROR:". llvm-svn: 77971
* Convert more assert(0)+abort() -> LLVM_UNREACHABLE,Torok Edwin2009-07-111-3/+3
| | | | | | and abort()/exit() -> llvm_report_error(). llvm-svn: 75363
* stat64/open64/lseek64 for the interpreterTorok Edwin2009-05-231-1/+4
| | | | llvm-svn: 72329
* Fix misplaced right parentheses.Evan Cheng2009-01-051-2/+2
| | | | llvm-svn: 61699
* Handle weak_extern in the JIT. This fixesDan Gohman2009-01-051-6/+9
| | | | | | | | SingleSource/UnitTests/2007-04-25-weak.c in JIT mode. The test now passes on systems which are able to produce a correct reference output to compare with. llvm-svn: 61674
* Add a new flag that disables symbol lookup with dlsym when set. This allowsChris Lattner2008-06-161-33/+35
| | | | | | | a JIT client to completely control symbol lookup with the LazyFunctionCreator interface. llvm-svn: 52335
* Add #includes to make some dependencies explicit.Dan Gohman2008-05-231-0/+1
| | | | llvm-svn: 51496
* Remove symbols that don't exist, remove tabs, fix comment typoChris Lattner2008-01-031-17/+15
| | | | llvm-svn: 45553
* Fix PR1873, a problem finding stat-related symbols on linux, due toChris Lattner2008-01-031-9/+20
| | | | | | "libc_nonshared.a". Patch by Edwin Török! llvm-svn: 45532
* Remove attribution from file headers, per discussion on llvmdev.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45418
* for consistency, allow a fallthrough if the final check returns null.Chris Lattner2007-11-281-1/+2
| | | | llvm-svn: 44406
* Make this actually work on systems that support ppc long double.Chris Lattner2007-11-271-3/+8
| | | | llvm-svn: 44374
* Unbreak all of the darwin/ppc32 JIT failures having to do Chris Lattner2007-11-271-0/+10
| | | | | | with not being able to find printf. llvm-svn: 44373
* add a mechanism for the JIT to invoke a function to lazily create functions ↵Chris Lattner2007-10-221-0/+5
| | | | | | as they are referenced. llvm-svn: 43210
* llvm-gcc3 is dead, along with it __main.Chris Lattner2007-10-221-12/+0
| | | | llvm-svn: 43209
* Removing even more <iostream> includes.Bill Wendling2006-12-071-3/+2
| | | | llvm-svn: 32320
* Fix handling of asm specifiers for external globals. This unbreaks many programsChris Lattner2006-07-281-1/+12
| | | | | | on leopard in the jit. llvm-svn: 29391
* Fix warning on linuxChris Lattner2006-07-271-8/+8
| | | | llvm-svn: 29314
* Silence some -pedantic warnings.Chris Lattner2006-06-011-4/+6
| | | | llvm-svn: 28629
* Convert llvm.cs.uiuc.edu -> llvm.orgReid Spencer2006-03-141-1/+1
| | | | llvm-svn: 26748
* Remove trailing whitespaceMisha Brukman2005-04-211-5/+5
| | | | llvm-svn: 21422
* 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
* Remove darwin specific majikChris Lattner2004-12-031-24/+0
| | | | llvm-svn: 18467
* Do not look here for elegance.Chris Lattner2004-12-031-0/+24
| | | | | | | | This fixes the ugly darwin "cannot find symbols starting with __" issue. Thanks for Owen/resistor for testing this out for me. llvm-svn: 18454
* Use System/DynamicLibrary instead of Support/DynamicLinkerReid Spencer2004-11-291-2/+2
| | | | llvm-svn: 18357
* Changes For Bug 352Reid Spencer2004-09-011-1/+1
| | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137
* Implement PR315: abort, don't warn, when missing external functions encounteredChris Lattner2004-06-011-9/+17
| | | | | | This fixes some critical problems building libstdc++ on cygwin. llvm-svn: 13934
* My fix for PR274 broke the build on Darwin/PPC. As I'm fairly certain thisBrian Gaeke2004-03-101-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 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
* No longer run atExit functions from run()Chris Lattner2003-12-261-2/+2
| | | | | | | rename run to runFunction Genericize the runFunction code a little bit, though it still stinks llvm-svn: 10610
* Cleanup the JIT as per PR176. This renames the VM class to JIT, and merges theChris Lattner2003-12-201-4/+4
| | | | | | | 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
* Finegrainify namespacificationChris Lattner2003-12-081-4/+1
| | | | llvm-svn: 10318
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+4
| | | | llvm-svn: 9903
* Added LLVM project notice to the top of every C++ source file.John Criswell2003-10-201-0/+7
| | | | | | Header files will be on the way. llvm-svn: 9298
* Change to use GetAddressOfSymbol instead of dlsym.Brian Gaeke2003-10-101-10/+5
| | | | llvm-svn: 9012
* Make CreateArgv part of lli rather than part of ExecutionEngine.Brian Gaeke2003-09-051-10/+15
| | | | | | | | | | | | | | | 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
OpenPOWER on IntegriCloud