teak-llvm/llvm/lib/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 [cmake] Explicitly mark libraries defined in lib/ as "Component Libraries" 2019-11-21 10:48:08 -08:00
CompileOnDemandLayer.cpp [ORC] Add support for emulated TLS to ORCv2. 2020-01-21 19:55:33 -08:00
CompileUtils.cpp [ORC] Add support for emulated TLS to ORCv2. 2020-01-21 19:55:33 -08:00
Core.cpp [ORC] Add weak symbol support to defineMaterializing, fix for PR40074. 2020-01-19 10:46:07 -08:00
DebugUtils.cpp Fix GCC -Wcast-qual warnings 2019-11-15 09:49:06 +01:00
ExecutionUtils.cpp [ORC] Fix argv handling in runAsMain / lli. 2020-01-11 13:03:38 -08:00
IndirectionUtils.cpp [NFC][ORC] Fix typos and whitespaces in comments 2020-01-03 21:54:03 +01:00
IRCompileLayer.cpp [ORC] Add support for emulated TLS to ORCv2. 2020-01-21 19:55:33 -08:00
IRTransformLayer.cpp [ORC] Add support for emulated TLS to ORCv2. 2020-01-21 19:55:33 -08:00
JITTargetMachineBuilder.cpp [Orc] Add setters for target options and features to JITTargetMachineBuilder. 2019-12-02 01:52:51 -08:00
Layer.cpp [ORC] Add support for emulated TLS to ORCv2. 2020-01-21 19:55:33 -08:00
LazyReexports.cpp [ORC] Update lazyReexports to support aliases with different symbol names. 2020-01-15 08:02:53 -08:00
Legacy.cpp [ORC][JITLink] Add support for weak references, and improve handling of static 2019-11-28 13:30:49 -08:00
LLJIT.cpp [ORC] Add support for emulated TLS to ORCv2. 2020-01-21 19:55:33 -08:00
LLVMBuild.txt Break out OrcError and RPC 2019-10-29 17:31:28 -07:00
NullResolver.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ObjectLinkingLayer.cpp [ORC] Make ObjectLinkingLayer own its jitlink::MemoryManager. 2019-12-15 17:35:52 -08:00
ObjectTransformLayer.cpp [ORC] Add a utility to support dumping JIT'd objects to disk for debugging. 2019-11-14 21:27:19 -08:00
OrcABISupport.cpp [Support] Add error handling to sys::Process::getPageSize(). 2019-05-08 02:11:07 +00:00
OrcCBindings.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
OrcCBindingsStack.h [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
OrcMCJITReplacement.cpp [ORC] Add deprecation warnings to ORCv1 layers and utilities. 2019-07-17 16:40:52 +00:00
OrcMCJITReplacement.h [ORC] Add deprecation warnings to ORCv1 layers and utilities. 2019-07-17 16:40:52 +00:00
RTDyldObjectLinkingLayer.cpp [ORC] Add weak symbol support to defineMaterializing, fix for PR40074. 2020-01-19 10:46:07 -08:00
SpeculateAnalyses.cpp [ORCv2] - New Speculate Query Implementation 2019-08-27 18:23:36 +00:00
Speculation.cpp [Alignment][NFC] Remove dependency on GlobalObject::setAlignment(unsigned) 2019-10-15 11:24:36 +00:00
ThreadSafeModule.cpp [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00