[all-commits] [llvm/llvm-project] 54397f: [llvm-c] Expose debug support for LLJIT in Orc C-A...

Stefan Gränitz via All-commits all-commits at lists.llvm.org
Mon Dec 11 11:47:34 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 54397f9ac128568838f2ac7bfc8e1f94b3eb264d
      https://github.com/llvm/llvm-project/commit/54397f9ac128568838f2ac7bfc8e1f94b3eb264d
  Author: Stefan Gränitz <stefan.graenitz at gmail.com>
  Date:   2023-12-11 (Mon, 11 Dec 2023)

  Changed paths:
    M llvm/include/llvm-c/LLJIT.h
    A llvm/include/llvm-c/LLJITUtils.h
    M llvm/lib/ExecutionEngine/Orc/Debugging/CMakeLists.txt
    M llvm/lib/ExecutionEngine/Orc/Debugging/DebuggerSupport.cpp
    A llvm/lib/ExecutionEngine/Orc/Debugging/LLJITUtilsCBindings.cpp
    M llvm/unittests/ExecutionEngine/Orc/CMakeLists.txt
    M llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp

  Log Message:
  -----------
  [llvm-c] Expose debug support for LLJIT in Orc C-API bindings (#73257)

Allow C-API users to debug their JITed code via the GDB JIT Interface.

This is currently supported on ELF and MachO based platforms. On
other systems `LLVMOrcLLJITEnableDebugSupport()` returns an error.

This patch adds a new C-API header `LLJITUtils.h`, which can host
further advanced JIT features in the future. Using the header requires
linking against LLVMOrcDebugging.




More information about the All-commits mailing list