aot_comp_option.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef __AOT_COMP_OPTION_H__
  6. #define __AOT_COMP_OPTION_H__
  7. typedef struct AOTCompOption {
  8. bool is_jit_mode;
  9. bool is_indirect_mode;
  10. char *target_arch;
  11. char *target_abi;
  12. char *target_cpu;
  13. char *cpu_features;
  14. bool is_sgx_platform;
  15. bool enable_bulk_memory;
  16. bool enable_thread_mgr;
  17. bool enable_tail_call;
  18. bool enable_simd;
  19. bool enable_ref_types;
  20. bool enable_gc;
  21. bool enable_aux_stack_check;
  22. bool enable_aux_stack_frame;
  23. bool enable_perf_profiling;
  24. bool enable_memory_profiling;
  25. bool disable_llvm_intrinsics;
  26. bool disable_llvm_lto;
  27. bool enable_llvm_pgo;
  28. bool enable_stack_estimation;
  29. bool quick_invoke_c_api_import;
  30. char *use_prof_file;
  31. uint32_t opt_level;
  32. uint32_t size_level;
  33. uint32_t output_format;
  34. uint32_t bounds_checks;
  35. uint32_t stack_bounds_checks;
  36. uint32_t segue_flags;
  37. char **custom_sections;
  38. uint32_t custom_sections_count;
  39. const char *stack_usage_file;
  40. const char *llvm_passes;
  41. const char *builtin_intrinsics;
  42. } AOTCompOption, *aot_comp_option_t;
  43. #endif