jit_emit_table.h 1001 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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_TABLE_H_
  6. #define _JIT_EMIT_TABLE_H_
  7. #include "../jit_compiler.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. #if WASM_ENABLE_REF_TYPES != 0
  12. bool
  13. jit_compile_op_elem_drop(JitCompContext *cc, uint32 tbl_seg_idx);
  14. bool
  15. jit_compile_op_table_get(JitCompContext *cc, uint32 tbl_idx);
  16. bool
  17. jit_compile_op_table_set(JitCompContext *cc, uint32 tbl_idx);
  18. bool
  19. jit_compile_op_table_init(JitCompContext *cc, uint32 tbl_idx,
  20. uint32 tbl_seg_idx);
  21. bool
  22. jit_compile_op_table_copy(JitCompContext *cc, uint32 src_tbl_idx,
  23. uint32 dst_tbl_idx);
  24. bool
  25. jit_compile_op_table_size(JitCompContext *cc, uint32 tbl_idx);
  26. bool
  27. jit_compile_op_table_grow(JitCompContext *cc, uint32 tbl_idx);
  28. bool
  29. jit_compile_op_table_fill(JitCompContext *cc, uint32 tbl_idx);
  30. #endif
  31. #ifdef __cplusplus
  32. } /* end of extern "C" */
  33. #endif
  34. #endif