WAMR User APIs
Typedefs | Enumerations | Functions
aot_export.h File Reference

This file defines the exported AOT compilation APIs. More...

#include <stdint.h>
#include <stdbool.h>
#include "aot_comp_option.h"
Include dependency graph for aot_export.h:

Go to the source code of this file.

Typedefs

typedef struct AOTCompData * aot_comp_data_t
 
typedef struct AOTCompContext * aot_comp_context_t
 

Enumerations

enum  { AOT_FORMAT_FILE, AOT_OBJECT_FILE, AOT_LLVMIR_UNOPT_FILE, AOT_LLVMIR_OPT_FILE }
 

Functions

aot_comp_data_t aot_create_comp_data (void *wasm_module, const char *target_arch, bool gc_enabled)
 
void aot_destroy_comp_data (aot_comp_data_t comp_data)
 
bool aot_compiler_init (void)
 
void aot_compiler_destroy (void)
 
aot_comp_context_t aot_create_comp_context (aot_comp_data_t comp_data, aot_comp_option_t option)
 
void aot_destroy_comp_context (aot_comp_context_t comp_ctx)
 
bool aot_compile_wasm (aot_comp_context_t comp_ctx)
 
bool aot_emit_llvm_file (aot_comp_context_t comp_ctx, const char *file_name)
 
bool aot_emit_object_file (aot_comp_context_t comp_ctx, const char *file_name)
 
bool aot_emit_aot_file (aot_comp_context_t comp_ctx, aot_comp_data_t comp_data, const char *file_name)
 
void aot_destroy_aot_file (uint8_t *aot_file)
 
char * aot_get_last_error ()
 
uint32_t aot_get_plt_table_size ()
 

Detailed Description

This file defines the exported AOT compilation APIs.

Date
Wed Mar 20 10:46:38 2024