aot_emit_function.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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, const uint8 *frame_ip);
  14. bool
  15. aot_compile_op_call_indirect(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  16. uint32 type_idx, uint32 tbl_idx,
  17. const uint8 *frame_ip);
  18. bool
  19. aot_compile_op_ref_null(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx);
  20. bool
  21. aot_compile_op_ref_is_null(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx);
  22. bool
  23. aot_compile_op_ref_func(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  24. uint32 func_idx);
  25. #if WASM_ENABLE_GC != 0
  26. bool
  27. aot_compile_op_call_ref(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  28. uint32 type_idx, bool tail_call, const uint8 *frame_ip);
  29. #endif
  30. #ifdef __cplusplus
  31. } /* end of extern "C" */
  32. #endif
  33. #endif /* end of _AOT_EMIT_FUNCTION_H_ */