summaryrefslogtreecommitdiffstats
path: root/llvm/tools/lli
Commit message (Collapse)AuthorAgeFilesLines
* [C++11] Add 'override' keyword to virtual methods that override their base ↵Craig Topper2014-03-083-29/+31
| | | | | | class. llvm-svn: 203345
* Replace OwningPtr<T> with std::unique_ptr<T>.Ahmed Charles2014-03-061-3/+3
| | | | | | | | | | This compiles with no changes to clang/lld/lldb with MSVC and includes overloads to various functions which are used by those projects and llvm which have OwningPtr's as parameters. This should allow out of tree projects some time to move. There are also no changes to libs/Target, which should help out of tree targets have time to move, if necessary. llvm-svn: 203083
* [C++11] Replace OwningPtr::take() with OwningPtr::release().Ahmed Charles2014-03-051-1/+1
| | | | llvm-svn: 202957
* [cleanup] Re-sort all the includes with utils/sort_includes.py.Chandler Carruth2014-03-042-2/+1
| | | | llvm-svn: 202811
* Replace the F_Binary flag with a F_Text one.Rafael Espindola2014-02-241-1/+1
| | | | | | | | | After this I will set the default back to F_None. The advantage is that before this patch forgetting to set F_Binary would corrupt a file on windows. Forgetting to set F_Text produces one that cannot be read in notepad, which is a better failure mode :-) llvm-svn: 202052
* [CMake] Put lli-child-target into the Folder "Misc".NAKAMURA Takumi2014-01-281-0/+2
| | | | llvm-svn: 200297
* Fix known typosAlp Toker2014-01-243-3/+3
| | | | | | | Sweep the codebase for common typos. Includes some changes to visible function names that were misspelt. llvm-svn: 200018
* Report lli remote IO errors consistentlyAlp Toker2014-01-245-41/+30
| | | | | | | | | This enables IO error reports in both the child and server processes. The scheme still isn't entirely satisfactory and output is jumbled but it beats having no output at all. This will hopefully unblock ARM support (PR18057). llvm-svn: 200017
* lli: Factor portable messaging into a new RPCChannel facilityAlp Toker2014-01-239-168/+151
| | | | | | | The client and server now use a single unified low-level RPC core built around LLVM's existing cross-platform abstractions. llvm-svn: 199947
* Remove unused include following r199929Alp Toker2014-01-231-1/+0
| | | | llvm-svn: 199930
* Replace the interim lli build fix with something cleanerAlp Toker2014-01-235-45/+15
| | | | | | | | | | Eliminates the LLI_BUILDING_CHILD build hack from r199885. Also add a FIXME to remove code that tricks the tests into passing when the feature fails to work. Please don't do stuff like this, the tests exist for a reason! llvm-svn: 199929
* Windows/ChildTarget.inc: LLIChildTarget::allocate() has gone since r199881.NAKAMURA Takumi2014-01-231-4/+0
| | | | llvm-svn: 199889
* Interim build fix for MakefilesAlp Toker2014-01-233-2/+8
| | | | | | Looks like some parts still need detangling. Let's see if this holds for now. llvm-svn: 199885
* Prospective Makefile build fixAlp Toker2014-01-231-0/+2
| | | | llvm-svn: 199882
* Refactor lli-child-target to remove duplicated codeAlp Toker2014-01-236-174/+32
| | | | | | | | | | | | | | Eliminate the copies LLVM's System mmap and cache invalidation code. These were slowly drifting away from the original version, and moreover the copied code was a dead end in terms of portability. We now statically link to Support but in practice with stripping this adds next to no weight to the resultant binary. Also avoid installing lli-child-target to the user's $PATH. It's not meant to be run directly. llvm-svn: 199881
* Tweak r199835 to use can_execute() instead of exists()Alp Toker2014-01-221-2/+3
| | | | | | | The execution code path crashes if it can't execute the binary so we might as well take precautions here. llvm-svn: 199844
* Eliminate inappropriate use of FindProgramByName() from lliAlp Toker2014-01-221-11/+9
| | | | llvm-svn: 199835
* Change createObjectFile to return an ErrorOr.Rafael Espindola2014-01-221-3/+3
| | | | llvm-svn: 199776
* Return an error_code from materializeAllPermanently.Rafael Espindola2014-01-141-3/+3
| | | | llvm-svn: 199275
* Fix Remote MCJIT on WindowsRenato Golin2014-01-141-5/+6
| | | | llvm-svn: 199268
* Sanitize MCJIT remote executionRenato Golin2014-01-149-152/+437
| | | | | | | | | | | | MCJIT remote execution (ChildTarget+RemoteTargetExternal) protocol was in dire need of refactoring. It was fail-prone, had no error reporting and implemented the same message logic on every single function. This patch rectifies it, and makes it work on ARM, where it was randomly failing. Other architectures shall profit from this change as well, making their buildbots and releases more reliable. llvm-svn: 199261
* Re-sort #include lines again, prior to moving headers around.Chandler Carruth2014-01-136-12/+6
| | | | llvm-svn: 199080
* lli: Tweak CacheName not to contain DOS driveletter.NAKAMURA Takumi2014-01-101-1/+9
| | | | llvm-svn: 198929
* lli: LLIObjectCache: Use llvm::sys::path to get dirname.NAKAMURA Takumi2014-01-101-2/+5
| | | | llvm-svn: 198928
* Whitespace.NAKAMURA Takumi2014-01-101-2/+2
| | | | llvm-svn: 198927
* Fix accidental use of the exotic "std::string::back()" method. Turns out it'sLang Hames2014-01-091-1/+2
| | | | | | new in C++11. llvm-svn: 198853
* Add an "-object-cache-dir=<string>" option to LLI. This option specifies theLang Hames2014-01-091-7/+23
| | | | | | | | | | | root path to which object files managed by the LLIObjectCache instance should be written. This option defaults to "", in which case objects are cached in the same directory as the bitcode they are derived from. The load-object-a.ll test has been rewritten to use this option to support testing in environments where the test directory is not writable. llvm-svn: 198852
* Replace fstream use with raw_fd_ostream.Lang Hames2014-01-091-2/+2
| | | | llvm-svn: 198821
* Re-apply r196639: Add support for archives and object file caching under MCJIT.Lang Hames2014-01-081-0/+123
| | | | | | | | | I believe the bot failures on linux systems were due to overestimating the alignment of object-files within archives, which are only guaranteed to be two-byte aligned. I have reduced the alignment in RuntimeDyldELF::createObjectImageFromFile accordingly. llvm-svn: 198737
* Fix gcc warnings.Matt Arsenault2013-12-101-0/+5
| | | | | | Unused variable and unused typedef in release build. llvm-svn: 196947
* [CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt.NAKAMURA Takumi2013-12-101-1/+13
| | | | llvm-svn: 196908
* [CMake] lli/CMakeLists.txt: Move add_subdirectory(ChildTarget) to the front. ↵NAKAMURA Takumi2013-12-101-2/+1
| | | | | | It depends on nothing described in LLVM_LINK_COMPONENTS. llvm-svn: 196902
* Whitespace cleanups.NAKAMURA Takumi2013-12-071-1/+1
| | | | llvm-svn: 196654
* Revert r196639 while I investigate a bot failure.Lang Hames2013-12-071-123/+0
| | | | llvm-svn: 196641
* Add support for archives and object file caching under MCJIT.Lang Hames2013-12-071-0/+123
| | | | | | Patch by Andy Kaylor, with minor edits to resolve merge conflicts. llvm-svn: 196639
* Fix minor GCC warnings.Matt Arsenault2013-12-052-0/+2
| | | | | | Unused typedefs and unused variables. llvm-svn: 196526
* Export symbols in tools that support loading plugins.Will Dietz2013-12-051-0/+1
| | | | llvm-svn: 196447
* Cleaning up comments in lliAndrew Kaylor2013-10-291-2/+2
| | | | llvm-svn: 193571
* Adding a workaround for __main linking with remote lli and Cygwin/MinGWAndrew Kaylor2013-10-291-0/+48
| | | | llvm-svn: 193570
* Fix the lli --extra-module value_descAlp Toker2013-10-281-1/+1
| | | | llvm-svn: 193552
* Standardizing lli's extra module command line optionAndrew Kaylor2013-10-281-2/+1
| | | | llvm-svn: 193544
* MCJIT-remote: __main should be resolved in child context.NAKAMURA Takumi2013-10-272-17/+1
| | | | | | | | | | | | | | | - Mark tests as XFAIL:cygming in test/ExecutionEngine/MCJIT/remote. Rather to suppress them, I'd like to leave them running as XFAIL. - Revert r193472. RecordMemoryManager no longer resolves __main on cygming. There are a couple of issues. - X86 Codegen emits "call __main" in @main for targeting cygming. It is useless in JIT. FYI, tests are passing when emitting __main is disabled. - Current remote JIT does not resolve any symbols in child context. FIXME: __main should be disabled, or remote JIT should resolve __main. llvm-svn: 193498
* lli/RemoteMemoryManager.cpp: Resurrect __main stuff removed in r192504 to ↵NAKAMURA Takumi2013-10-262-1/+17
| | | | | | unbreak mingw32. llvm-svn: 193472
* Adding support for deregistering EH frames with MCJIT.Andrew Kaylor2013-10-161-0/+1
| | | | | | Patch by Yaron Keren llvm-svn: 192753
* Fixing problems in lli's RemoteMemoryManager.Andrew Kaylor2013-10-112-7/+7
| | | | | | | | This fixes a problem from a previous check-in where a return value was omitted. Previously the remote/stubs-remote.ll and remote/stubs-sm-pic.ll tests were reporting passes, but they should have been failing. Those tests attempt to link against an external symbol and remote symbol resolution is not supported. The old RemoteMemoryManager implementation resulted in local symbols being used for resolution and the child process crashed but the test didn't notice. With this check-in remote symbol resolution fails, and so the test (correctly) fails. llvm-svn: 192514
* Adding multiple object support to MCJIT EH frame handlingAndrew Kaylor2013-10-112-26/+9
| | | | llvm-svn: 192504
* Removing unintended code block from lliAndrew Kaylor2013-10-081-9/+0
| | | | llvm-svn: 192205
* lli: Plug leaks in the remote target external implementation.Benjamin Kramer2013-10-056-1/+16
| | | | llvm-svn: 192031
* Attempting to fix lli build errorAndrew Kaylor2013-10-041-3/+3
| | | | llvm-svn: 191979
* Fixing container/pointer bug in remote-lli found by ASanAndrew Kaylor2013-10-042-28/+29
| | | | llvm-svn: 191976
OpenPOWER on IntegriCloud