19 #include "aot_comp_option.h"
26 typedef struct AOTCompData *aot_comp_data_t;
28 struct AOTCompContext;
29 typedef struct AOTCompContext *aot_comp_context_t;
32 aot_create_comp_data(
void *wasm_module,
const char *target_arch,
36 aot_destroy_comp_data(aot_comp_data_t comp_data);
38 #if WASM_ENABLE_DEBUG_AOT != 0
39 typedef void *dwarf_extractor_handle_t;
40 dwarf_extractor_handle_t
41 create_dwarf_extractor(aot_comp_data_t comp_data,
char *file_name);
47 AOT_LLVMIR_UNOPT_FILE,
52 aot_compiler_init(
void);
55 aot_compiler_destroy(
void);
58 aot_create_comp_context(aot_comp_data_t comp_data, aot_comp_option_t option);
61 aot_destroy_comp_context(aot_comp_context_t comp_ctx);
64 aot_compile_wasm(aot_comp_context_t comp_ctx);
67 aot_emit_llvm_file(aot_comp_context_t comp_ctx,
const char *file_name);
70 aot_emit_object_file(aot_comp_context_t comp_ctx,
const char *file_name);
73 aot_emit_aot_file(aot_comp_context_t comp_ctx, aot_comp_data_t comp_data,
74 const char *file_name);
77 aot_destroy_aot_file(uint8_t *aot_file);
83 aot_get_plt_table_size();