[ORC] Introduce SetUpExecutorNativePlatform utility.
authorLang Hames <lhames@gmail.com>
Sun, 19 Mar 2023 22:27:46 +0000 (15:27 -0700)
committerLang Hames <lhames@gmail.com>
Sun, 19 Mar 2023 22:29:46 +0000 (15:29 -0700)
commitbdf5f9c3228d6ed1d7c6f87b3828a7d573b34c03
treeec5e5eba3e1b98084f60219222c4a3d8139a6af0
parent0aeaec3bee15eb1fa2f99d214a560d35f460cc31
[ORC] Introduce SetUpExecutorNativePlatform utility.

Simplifies the process of building an LLJIT instance that supports the native
platform features (initializers, TLV, etc.).

SetUpExecutorNativePlatform can be passed to LLJITBuilder::setPlatformSetUp
method. It takes a reference to the ORC runtime (as a path or an in-memory
archive) and automatically sets the platform for LLJIT's ExecutionSession based
on the executor process's triple.

Differential Revision: https://reviews.llvm.org/D144276
llvm/include/llvm/ExecutionEngine/Orc/COFFPlatform.h
llvm/include/llvm/ExecutionEngine/Orc/Core.h
llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h
llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp
llvm/lib/ExecutionEngine/Orc/Core.cpp
llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
llvm/test/ExecutionEngine/OrcLazy/emulated-tls.ll
llvm/tools/lli/lli.cpp