jit_emit_function.h 877 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef _JIT_EMIT_FUNCTION_H_
  6. #define _JIT_EMIT_FUNCTION_H_
  7. #include "../jit_compiler.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. bool
  12. jit_compile_op_call(JitCompContext *cc, uint32 func_idx, bool tail_call);
  13. bool
  14. jit_compile_op_call_indirect(JitCompContext *cc, uint32 type_idx,
  15. uint32 tbl_idx);
  16. bool
  17. jit_compile_op_ref_null(JitCompContext *cc, uint32 ref_type);
  18. bool
  19. jit_compile_op_ref_is_null(JitCompContext *cc);
  20. bool
  21. jit_compile_op_ref_func(JitCompContext *cc, uint32 func_idx);
  22. bool
  23. jit_emit_callnative(JitCompContext *cc, void *native_func, JitReg res,
  24. JitReg *params, uint32 param_count);
  25. #ifdef __cplusplus
  26. } /* end of extern "C" */
  27. #endif
  28. #endif /* end of _JIT_EMIT_FUNCTION_H_ */