jit_emit_variable.h 754 B

1234567891011121314151617181920212223242526272829303132333435
  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_VARIABLE_H_
  6. #define _JIT_EMIT_VARIABLE_H_
  7. #include "../jit_compiler.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. bool
  12. jit_compile_op_get_local(JitCompContext *cc, uint32 local_idx);
  13. bool
  14. jit_compile_op_set_local(JitCompContext *cc, uint32 local_idx);
  15. bool
  16. jit_compile_op_tee_local(JitCompContext *cc, uint32 local_idx);
  17. bool
  18. jit_compile_op_get_global(JitCompContext *cc, uint32 global_idx);
  19. bool
  20. jit_compile_op_set_global(JitCompContext *cc, uint32 global_idx,
  21. bool is_aux_stack);
  22. #ifdef __cplusplus
  23. } /* end of extern "C" */
  24. #endif
  25. #endif /* end of _JIT_EMIT_VARIABLE_H_ */