simd_conversions.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef _SIMD_CONVERSIONS_H_
  6. #define _SIMD_CONVERSIONS_H_
  7. #include "../aot_compiler.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. bool
  12. aot_compile_simd_i8x16_narrow_i16x8(AOTCompContext *comp_ctx,
  13. AOTFuncContext *func_ctx,
  14. bool is_signed);
  15. bool
  16. aot_compile_simd_i16x8_narrow_i32x4(AOTCompContext *comp_ctx,
  17. AOTFuncContext *func_ctx,
  18. bool is_signed);
  19. bool
  20. aot_compile_simd_i16x8_widen_i8x16(AOTCompContext *comp_ctx,
  21. AOTFuncContext *func_ctx,
  22. bool is_low,
  23. bool is_signed);
  24. bool
  25. aot_compile_simd_i32x4_widen_i16x8(AOTCompContext *comp_ctx,
  26. AOTFuncContext *func_ctx,
  27. bool is_low,
  28. bool is_signed);
  29. bool
  30. aot_compile_simd_i32x4_trunc_sat_f32x4(AOTCompContext *comp_ctx,
  31. AOTFuncContext *func_ctx,
  32. bool is_signed);
  33. bool
  34. aot_compile_simd_f32x4_convert_i32x4(AOTCompContext *comp_ctx,
  35. AOTFuncContext *func_ctx,
  36. bool is_signed);
  37. #ifdef __cplusplus
  38. } /* end of extern "C" */
  39. #endif
  40. #endif /* end of _SIMD_CONVERSIONS_H_ */