llvm-project/llvm/test/ExecutionEngine/OrcLazy
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
..
Inputs [ORC] Re-apply r345077 with fixes to remove ambiguity in lookup calls. 2018-10-23 23:01:39 +00:00
anonymous_globals.ll
bad-object-file.ll [ORC] Add a testcase for r338975. 2018-08-28 22:50:59 +00:00
basic-object-file-loading.ll
basic-whole-module-partitions.ll [ORC] Add partitioning support to CompileOnDemandLayer2. 2018-09-29 23:49:57 +00:00
common-symbols.ll
emulated-tls.ll [ORC] Add support for emulated TLS to ORCv2. 2020-01-21 19:55:33 -08:00
global-ctors-and-dtors.ll [ORC] Add some more basic sanity tests for the LLJIT. 2018-10-20 20:39:53 +00:00
global_aliases.ll
hidden-visibility.ll [ORC] Re-apply r345077 with fixes to remove ambiguity in lookup calls. 2018-10-23 23:01:39 +00:00
lit.local.cfg [MIPS] ORC JIT support 2018-09-11 13:10:04 +00:00
minimal.ll [ORC] Add some more basic sanity tests for the LLJIT. 2018-10-20 20:39:53 +00:00
module-flags.ll [ORC] Add partitioning support to CompileOnDemandLayer2. 2018-09-29 23:49:57 +00:00
multiple-compile-threads-basic.ll Reapply r343058 with a fix for -DLLVM_ENABLE_THREADS=OFF. 2018-09-26 16:26:59 +00:00
printargv.ll [ORC] Fix argv handling in runAsMain / lli. 2020-01-11 13:03:38 -08:00
private_linkage.ll
single-function-call.ll [ORC] Add some more basic sanity tests for the LLJIT. 2018-10-20 20:39:53 +00:00
static-library-support.ll [ORC] Refactor definition-generation, add a generator for static libraries. 2019-08-13 16:05:18 +00:00
weak-function.ll
weak-non-materialization.ll