update readme (#21797)
[mono-project.git] / mono / mini / mini-llvm.h
blobad2319288c415133bb23360b7d292c6abfbb4209
1 /**
2 * \file
3 */
5 #ifndef __MONO_MINI_LLVM_H__
6 #define __MONO_MINI_LLVM_H__
8 #include "mini.h"
9 #include "aot-runtime.h"
11 /* LLVM backend */
13 typedef enum {
14 LLVM_MODULE_FLAG_STATIC = (1 << 0),
15 LLVM_MODULE_FLAG_LLVM_ONLY = (1 << 1),
16 LLVM_MODULE_FLAG_DWARF = (1 << 2),
17 LLVM_MODULE_FLAG_CODEVIEW = (1 << 3),
18 LLVM_MODULE_FLAG_INTERP = (1 << 4)
19 } LLVMModuleFlags;
21 void mono_llvm_init (gboolean enable_jit);
22 void mono_llvm_cleanup (void);
23 void mono_llvm_emit_method (MonoCompile *cfg);
24 void mono_llvm_emit_call (MonoCompile *cfg, MonoCallInst *call);
25 void mono_llvm_create_aot_module (MonoAssembly *assembly, const char *global_prefix, int initial_got_size, LLVMModuleFlags flags);
26 void mono_llvm_emit_aot_module (const char *filename, const char *cu_name);
27 void mono_llvm_emit_aot_file_info (MonoAotFileInfo *info, gboolean has_jitted_code);
28 gpointer mono_llvm_emit_aot_data (const char *symbol, guint8 *data, int data_len);
29 gpointer mono_llvm_emit_aot_data_aligned (const char *symbol, guint8 *data, int data_len, int align);
30 void mono_llvm_check_method_supported (MonoCompile *cfg);
31 void mono_llvm_free_domain_info (MonoDomain *domain);
32 MONO_API void mono_personality (void);
33 void mono_llvm_create_vars (MonoCompile *cfg);
34 void mono_llvm_fixup_aot_module (void);
36 gboolean mini_llvm_init (void);
37 MonoCPUFeatures mono_llvm_get_cpu_features (void);
39 #endif