aot_emit_const.h 851 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 _AOT_EMIT_CONST_H_
  6. #define _AOT_EMIT_CONST_H_
  7. #include "aot_compiler.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. bool
  12. aot_compile_op_i32_const(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  13. int32 i32_const);
  14. bool
  15. aot_compile_op_i64_const(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  16. int64 i64_const);
  17. bool
  18. aot_compile_op_f32_const(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  19. float32 f32_const);
  20. bool
  21. aot_compile_op_f64_const(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  22. float64 f64_const);
  23. #ifdef __cplusplus
  24. } /* end of extern "C" */
  25. #endif
  26. #endif /* end of _AOT_EMIT_CONST_H_ */