teak-llvm/llvm/unittests/ExecutionEngine/Orc
Lang Hames ce2207abaf [ORC] Add support for emulated TLS to ORCv2.
This commit adds a ManglingOptions struct to IRMaterializationUnit, and replaces
IRCompileLayer::CompileFunction with a new IRCompileLayer::IRCompiler class. The
ManglingOptions struct defines the emulated-TLS state (via a bool member,
EmulatedTLS, which is true if emulated-TLS is enabled and false otherwise). The
IRCompileLayer::IRCompiler class wraps an IRCompiler (the same way that the
CompileFunction typedef used to), but adds a method to return the
IRCompileLayer::ManglingOptions that the compiler will use.

These changes allow us to correctly determine the symbols that will be produced
when a thread local global variable defined at the IR level is compiled with or
without emulated TLS. This is required for ORCv2, where MaterializationUnits
must declare their interface up-front.

Most ORCv2 clients should not require any changes. Clients writing custom IR
compilers will need to wrap their compiler in an IRCompileLayer::IRCompiler,
rather than an IRCompileLayer::CompileFunction, however this should be a
straightforward change (see modifications to CompileUtils.* in this patch for an
example).
2020-01-21 19:55:33 -08:00
..
CMakeLists.txt [Orc][test] Fix -DBUILD_SHARED_LIBS=on build 2019-10-29 22:55:17 -07:00
CoreAPIsTest.cpp [ORC][JITLink] Add support for weak references, and improve handling of static 2019-11-28 13:30:49 -08:00
GlobalMappingLayerTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
IndirectionUtilsTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
JITTargetMachineBuilderTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LazyCallThroughAndReexportsTest.cpp [ORC] Update lazyReexports to support aliases with different symbol names. 2020-01-15 08:02:53 -08:00
LazyEmittingLayerTest.cpp [ORC] Add deprecation warnings to ORCv1 layers and utilities. 2019-07-17 16:40:52 +00:00
LegacyAPIInteropTest.cpp [ORC][JITLink] Add support for weak references, and improve handling of static 2019-11-28 13:30:49 -08:00
LegacyCompileOnDemandLayerTest.cpp [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
LegacyRTDyldObjectLinkingLayerTest.cpp [ORC] Add support for emulated TLS to ORCv2. 2020-01-21 19:55:33 -08:00
ObjectTransformLayerTest.cpp [ORC] Add support for emulated TLS to ORCv2. 2020-01-21 19:55:33 -08:00
OrcCAPITest.cpp [ORC] Add support for emulated TLS to ORCv2. 2020-01-21 19:55:33 -08:00
OrcTestCommon.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
OrcTestCommon.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
QueueChannel.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
QueueChannel.h Break out OrcError and RPC 2019-10-29 17:31:28 -07:00
RemoteObjectLayerTest.cpp [ORC] Add support for emulated TLS to ORCv2. 2020-01-21 19:55:33 -08:00
RPCUtilsTest.cpp Break out OrcError and RPC 2019-10-29 17:31:28 -07:00
RTDyldObjectLinkingLayerTest.cpp [ORC] Add support for emulated TLS to ORCv2. 2020-01-21 19:55:33 -08:00
SymbolStringPoolTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ThreadSafeModuleTest.cpp [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00