llvm/lib/ExecutionEngine
Lang Hames 7d5ae5bc1f [Orc] Add a JITSymbol class to the Orc APIs, refactor APIs, update clients.
This patch refactors a key piece of the Orc APIs: It removes the
*::getSymbolAddress and *::lookupSymbolAddressIn methods, which returned target
addresses (uint64_ts), and replaces them with *::findSymbol and *::findSymbolIn
respectively, which return instances of the new JITSymbol type. Unlike the old
methods, calling findSymbol or findSymbolIn does not cause the symbol to be
immediately materialized when found. Instead, the symbol will be materialized
if/when the getAddress method is called on the returned JITSymbol. This allows
us to query for the existence of symbols without actually materializing them. In
the future I expect more information to be attached to the JITSymbol class, for
example whether the returned symbol is a weak or strong definition. This will
allow us to properly handle weak symbols and multiple definitions.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228557 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-09 01:20:51 +00:00
..
IntelJITEvents Move DebugInfo to DebugInfo/DWARF. 2015-01-30 18:07:45 +00:00
Interpreter Converting FuncNames to a ManagedStatic to avoid static constructors and destructors. 2014-09-19 21:07:01 +00:00
MCJIT [Orc] Move SectionMemoryManager's implementation from MCJIT to ExecutionEngine. 2015-02-06 19:36:40 +00:00
OProfileJIT [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
Orc [Orc] Add a JITSymbol class to the Orc APIs, refactor APIs, update clients. 2015-02-09 01:20:51 +00:00
RuntimeDyld [MC] Remove various unused MCAsmInfo parameters. 2015-02-05 00:58:51 +00:00
CMakeLists.txt [Orc] Move SectionMemoryManager's implementation from MCJIT to ExecutionEngine. 2015-02-06 19:36:40 +00:00
EventListenerCommon.h Switch this header file to not hard-code Windows line endings. 2015-01-15 02:21:56 +00:00
ExecutionEngine.cpp [ExecutionEngine] FindFunctionNamed: Skip declarations 2015-01-27 19:29:00 +00:00
ExecutionEngineBindings.cpp [C API] Expose LLVMGetGlobalValueAddress and LLVMGetFunctionAddress. 2014-12-22 18:53:11 +00:00
GDBRegistrationListener.cpp [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
LLVMBuild.txt [Orc] New JIT APIs. 2015-01-23 21:25:00 +00:00
Makefile [Orc] New JIT APIs. 2015-01-23 21:25:00 +00:00
RTDyldMemoryManager.cpp RTDyldMemoryManager.cpp: Make the reference to __morestack weak. 2014-12-30 22:52:33 +00:00
SectionMemoryManager.cpp [Orc] Move SectionMemoryManager's implementation from MCJIT to ExecutionEngine. 2015-02-06 19:36:40 +00:00
TargetSelect.cpp Reinstate "Nuke the old JIT." 2014-09-02 22:28:02 +00:00