teak-llvm/llvm/unittests/ExecutionEngine/Orc
Chris Bieneman a34680a33e Break out OrcError and RPC
Summary:
When createing an ORC remote JIT target the current library split forces the target process to link large portions of LLVM (Core, Execution Engine, JITLink, Object, MC, Passes, RuntimeDyld, Support, Target, and TransformUtils). This occurs because the ORC RPC interfaces rely on the static globals the ORC Error types require, which starts a cycle of pulling in more and more.

This patch breaks the ORC RPC Error implementations out into an "OrcError" library which only depends on LLVM Support. It also pulls the ORC RPC headers into their own subdirectory.

With this patch code can include the Orc/RPC/*.h headers and will only incur link dependencies on LLVMOrcError and LLVMSupport.

Reviewers: lhames

Reviewed By: lhames

Subscribers: mgorny, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D68732
2019-10-29 17:31:28 -07:00
..
CMakeLists.txt [cmake] Link in LLVMPasses due to dependency by LLVMOrcJIT; NFC 2019-08-19 23:12:48 +00:00
CoreAPIsTest.cpp [Orc] Address the remaining move-capture FIXMEs 2019-09-13 11:35:33 +00:00
GlobalMappingLayerTest.cpp
IndirectionUtilsTest.cpp
JITTargetMachineBuilderTest.cpp
LazyCallThroughAndReexportsTest.cpp [ORC] Fix a FIXME: Propagate errors to dependencies. 2019-08-23 20:37:31 +00:00
LazyEmittingLayerTest.cpp [ORC] Add deprecation warnings to ORCv1 layers and utilities. 2019-07-17 16:40:52 +00:00
LegacyAPIInteropTest.cpp
LegacyCompileOnDemandLayerTest.cpp [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
LegacyRTDyldObjectLinkingLayerTest.cpp [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
ObjectTransformLayerTest.cpp [ORC] Add deprecation warnings to ORCv1 layers and utilities. 2019-07-17 16:40:52 +00:00
OrcCAPITest.cpp
OrcTestCommon.cpp
OrcTestCommon.h
QueueChannel.cpp
QueueChannel.h Break out OrcError and RPC 2019-10-29 17:31:28 -07:00
RemoteObjectLayerTest.cpp [ORC] Add deprecation warnings to ORCv1 layers and utilities. 2019-07-17 16:40:52 +00:00
RPCUtilsTest.cpp Break out OrcError and RPC 2019-10-29 17:31:28 -07:00
RTDyldObjectLinkingLayerTest.cpp [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
SymbolStringPoolTest.cpp
ThreadSafeModuleTest.cpp [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00