LLVM 22.0.0git
LLJITUtils.h
Go to the documentation of this file.
1/*===------- llvm-c/LLJITUtils.h - Advanced LLJIT features --------*- C -*-===*\
2|* *|
3|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|
4|* Exceptions. *|
5|* See https://llvm.org/LICENSE.txt for license information. *|
6|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|
7|* *|
8|*===----------------------------------------------------------------------===*|
9|* *|
10|* This header declares the C interface for extra utilities to be used with *|
11|* the LLJIT class from the llvm-c/LLJIT.h header. It requires to following *|
12|* link libraries in addition to libLLVMOrcJIT.a: *|
13|* - libLLVMOrcDebugging.a *|
14|* *|
15|* Many exotic languages can interoperate with C code but have a harder time *|
16|* with C++ due to name mangling. So in addition to C, this interface enables *|
17|* tools written in such languages. *|
18|* *|
19|* Note: This interface is experimental. It is *NOT* stable, and may be *|
20|* changed without warning. Only C API usage documentation is *|
21|* provided. See the C++ documentation for all higher level ORC API *|
22|* details. *|
23|* *|
24\*===----------------------------------------------------------------------===*/
25
26#ifndef LLVM_C_LLJITUTILS_H
27#define LLVM_C_LLJITUTILS_H
28
29#include "llvm-c/LLJIT.h"
30#include "llvm-c/Visibility.h"
31
33
34/**
35 * @defgroup LLVMCExecutionEngineLLJITUtils LLJIT Utilities
36 * @ingroup LLVMCExecutionEngineLLJIT
37 *
38 * @{
39 */
40
41/**
42 * Install the plugin that submits debug objects to the executor. Executors must
43 * expose the llvm_orc_registerJITLoaderGDBWrapper symbol.
44 */
46
47/**
48 * @}
49 */
50
52
53#endif /* LLVM_C_LLJITUTILS_H */
#define LLVM_C_EXTERN_C_BEGIN
Definition: ExternC.h:35
#define LLVM_C_EXTERN_C_END
Definition: ExternC.h:36
#define LLVM_C_ABI
LLVM_C_ABI is the export/visibility macro used to mark symbols declared in llvm-c as exported when bu...
Definition: Visibility.h:40
struct LLVMOpaqueError * LLVMErrorRef
Opaque reference to an error instance.
Definition: Error.h:34
LLVM_C_ABI LLVMErrorRef LLVMOrcLLJITEnableDebugSupport(LLVMOrcLLJITRef J)
Install the plugin that submits debug objects to the executor.
struct LLVMOrcOpaqueLLJIT * LLVMOrcLLJITRef
A reference to an orc::LLJIT instance.
Definition: LLJIT.h:67