aot_stack_frame_comp.h 843 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (C) 2024 Amazon Inc. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef _AOT_STACK_FRAME_COMP_H_
  6. #define _AOT_STACK_FRAME_COMP_H_
  7. #include "aot_stack_frame.h"
  8. #include "aot_compiler.h"
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. bool
  13. aot_alloc_frame_per_function_frame_for_aot_func(AOTCompContext *comp_ctx,
  14. AOTFuncContext *func_ctx,
  15. LLVMValueRef func_index);
  16. bool
  17. aot_free_frame_per_function_frame_for_aot_func(AOTCompContext *comp_ctx,
  18. AOTFuncContext *func_ctx);
  19. bool
  20. aot_tiny_frame_gen_commit_ip(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  21. LLVMValueRef ip_value);
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif