aot_emit_variable.h 1012 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 _AOT_EMIT_VARIABLE_H_
  6. #define _AOT_EMIT_VARIABLE_H_
  7. #include "aot_compiler.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. bool
  12. aot_compile_op_get_local(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  13. uint32 local_idx);
  14. bool
  15. aot_compile_op_set_local(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  16. uint32 local_idx);
  17. bool
  18. aot_compile_op_tee_local(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  19. uint32 local_idx);
  20. bool
  21. aot_compile_op_get_global(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  22. uint32 global_idx);
  23. bool
  24. aot_compile_op_set_global(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  25. uint32 global_idx, bool is_aux_stack);
  26. #ifdef __cplusplus
  27. } /* end of extern "C" */
  28. #endif
  29. #endif /* end of _AOT_EMIT_VARIABLE_H_ */