Add "--enable-llvm-passes=<passes>" option to wamrc (#2335)

Add "--enable-llvm-passes=<passes>" option to wamrc for customizing LLVM passes
This commit is contained in:
Huang Qi
2023-07-04 12:20:52 +08:00
committed by GitHub
parent df98d9fb4a
commit 44f4b4f062
5 changed files with 17 additions and 0 deletions

View File

@ -417,6 +417,7 @@ typedef struct AOTCompContext {
const char *stack_usage_file;
char stack_usage_temp_file[64];
const char *llvm_passes;
} AOTCompContext;
enum {
@ -455,6 +456,7 @@ typedef struct AOTCompOption {
char **custom_sections;
uint32 custom_sections_count;
const char *stack_usage_file;
const char *llvm_passes;
} AOTCompOption, *aot_comp_option_t;
bool