[all-commits] [llvm/llvm-project] bdf5f9: [ORC] Introduce SetUpExecutorNativePlatform utility.

lhames via All-commits all-commits at lists.llvm.org
Sun Mar 19 15:30:00 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bdf5f9c3228d6ed1d7c6f87b3828a7d573b34c03
      https://github.com/llvm/llvm-project/commit/bdf5f9c3228d6ed1d7c6f87b3828a7d573b34c03
  Author: Lang Hames <lhames at gmail.com>
  Date:   2023-03-19 (Sun, 19 Mar 2023)

  Changed paths:
    M llvm/include/llvm/ExecutionEngine/Orc/COFFPlatform.h
    M llvm/include/llvm/ExecutionEngine/Orc/Core.h
    M llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h
    M llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp
    M llvm/lib/ExecutionEngine/Orc/Core.cpp
    M llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
    M llvm/test/ExecutionEngine/OrcLazy/emulated-tls.ll
    M llvm/tools/lli/lli.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list