5 #ifndef __MONO_MINI_LLVM_H__
6 #define __MONO_MINI_LLVM_H__
9 #include "aot-runtime.h"
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)
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);