aot_emit_compare.h 975 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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_COMPARE_H_
  6. #define _AOT_EMIT_COMPARE_H_
  7. #include "aot_compiler.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. bool
  12. aot_compile_op_i32_compare(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  13. IntCond cond);
  14. bool
  15. aot_compile_op_i64_compare(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  16. IntCond cond);
  17. bool
  18. aot_compile_op_f32_compare(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  19. FloatCond cond);
  20. bool
  21. aot_compile_op_f64_compare(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  22. FloatCond cond);
  23. #if WASM_ENABLE_GC != 0
  24. bool
  25. aot_compile_op_ref_eq(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx);
  26. #endif
  27. #ifdef __cplusplus
  28. } /* end of extern "C" */
  29. #endif
  30. #endif /* end of _AOT_EMIT_COMPARE_H_ */