aot_emit_function.h 1.3 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_EMIT_FUNCTION_H_
  6. #define _AOT_EMIT_FUNCTION_H_
  7. #include "aot_compiler.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. bool
  12. aot_compile_op_call(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  13. uint32 func_idx, bool tail_call,
  14. const uint8 *frame_ip_call);
  15. bool
  16. aot_compile_op_call_indirect(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  17. uint32 type_idx, uint32 tbl_idx,
  18. const uint8 *frame_ip_call_indirect);
  19. bool
  20. aot_compile_op_ref_null(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx);
  21. bool
  22. aot_compile_op_ref_is_null(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx);
  23. bool
  24. aot_compile_op_ref_func(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  25. uint32 func_idx, const uint8 *frame_ip_ref_func);
  26. #if WASM_ENABLE_GC != 0
  27. bool
  28. aot_compile_op_call_ref(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  29. uint32 type_idx, bool tail_call,
  30. const uint8 *frame_ip_call_ref);
  31. #endif
  32. #ifdef __cplusplus
  33. } /* end of extern "C" */
  34. #endif
  35. #endif /* end of _AOT_EMIT_FUNCTION_H_ */