aot_emit_memory.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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_MEMORY_H_
  6. #define _AOT_EMIT_MEMORY_H_
  7. #include "aot_compiler.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. bool
  12. aot_compile_op_i32_load(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  13. uint32 align, uint32 offset, uint32 bytes, bool sign);
  14. bool
  15. aot_compile_op_i64_load(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  16. uint32 align, uint32 offset, uint32 bytes, bool sign);
  17. bool
  18. aot_compile_op_f32_load(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  19. uint32 align, uint32 offset);
  20. bool
  21. aot_compile_op_f64_load(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  22. uint32 align, uint32 offset);
  23. bool
  24. aot_compile_op_i32_store(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  25. uint32 align, uint32 offset, uint32 bytes);
  26. bool
  27. aot_compile_op_i64_store(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  28. uint32 align, uint32 offset, uint32 bytes);
  29. bool
  30. aot_compile_op_f32_store(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  31. uint32 align, uint32 offset);
  32. bool
  33. aot_compile_op_f64_store(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  34. uint32 align, uint32 offset);
  35. bool
  36. aot_compile_op_memory_size(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx);
  37. bool
  38. aot_compile_op_memory_grow(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx);
  39. #if WASM_ENABLE_BULK_MEMORY != 0
  40. bool
  41. aot_compile_op_memory_init(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  42. uint32 seg_index);
  43. bool
  44. aot_compile_op_data_drop(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  45. uint32 seg_index);
  46. bool
  47. aot_compile_op_memory_copy(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx);
  48. bool
  49. aot_compile_op_memory_fill(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx);
  50. #endif
  51. #ifdef __cplusplus
  52. } /* end of extern "C" */
  53. #endif
  54. #endif /* end of _AOT_EMIT_MEMORY_H_ */