aot_emit_stringref.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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_STRINGREF_H_
  6. #define _AOT_EMIT_STRINGREF_H_
  7. #include "aot_compiler.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. bool
  12. aot_compile_op_string_new(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  13. uint32 encoding);
  14. bool
  15. aot_compile_op_string_const(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  16. uint32 contents);
  17. bool
  18. aot_compile_op_string_measure(AOTCompContext *comp_ctx,
  19. AOTFuncContext *func_ctx, uint32 encoding);
  20. bool
  21. aot_compile_op_string_encode(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  22. uint32 mem_idx, uint32 encoding);
  23. bool
  24. aot_compile_op_string_concat(AOTCompContext *comp_ctx,
  25. AOTFuncContext *func_ctx);
  26. bool
  27. aot_compile_op_string_eq(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx);
  28. bool
  29. aot_compile_op_string_is_usv_sequence(AOTCompContext *comp_ctx,
  30. AOTFuncContext *func_ctx);
  31. bool
  32. aot_compile_op_string_as_wtf8(AOTCompContext *comp_ctx,
  33. AOTFuncContext *func_ctx);
  34. bool
  35. aot_compile_op_stringview_wtf8_advance(AOTCompContext *comp_ctx,
  36. AOTFuncContext *func_ctx);
  37. bool
  38. aot_compile_op_stringview_wtf8_encode(AOTCompContext *comp_ctx,
  39. AOTFuncContext *func_ctx, uint32 mem_idx,
  40. uint32 encoding);
  41. bool
  42. aot_compile_op_stringview_wtf8_slice(AOTCompContext *comp_ctx,
  43. AOTFuncContext *func_ctx);
  44. bool
  45. aot_compile_op_string_as_wtf16(AOTCompContext *comp_ctx,
  46. AOTFuncContext *func_ctx);
  47. bool
  48. aot_compile_op_stringview_wtf16_length(AOTCompContext *comp_ctx,
  49. AOTFuncContext *func_ctx);
  50. bool
  51. aot_compile_op_stringview_wtf16_get_codeunit(AOTCompContext *comp_ctx,
  52. AOTFuncContext *func_ctx);
  53. bool
  54. aot_compile_op_stringview_wtf16_encode(AOTCompContext *comp_ctx,
  55. AOTFuncContext *func_ctx,
  56. uint32 mem_idx);
  57. bool
  58. aot_compile_op_stringview_wtf16_slice(AOTCompContext *comp_ctx,
  59. AOTFuncContext *func_ctx);
  60. bool
  61. aot_compile_op_string_as_iter(AOTCompContext *comp_ctx,
  62. AOTFuncContext *func_ctx);
  63. bool
  64. aot_compile_op_stringview_iter_next(AOTCompContext *comp_ctx,
  65. AOTFuncContext *func_ctx);
  66. bool
  67. aot_compile_op_stringview_iter_advance(AOTCompContext *comp_ctx,
  68. AOTFuncContext *func_ctx);
  69. bool
  70. aot_compile_op_stringview_iter_rewind(AOTCompContext *comp_ctx,
  71. AOTFuncContext *func_ctx);
  72. bool
  73. aot_compile_op_stringview_iter_slice(AOTCompContext *comp_ctx,
  74. AOTFuncContext *func_ctx);
  75. bool
  76. aot_compile_op_string_new_array(AOTCompContext *comp_ctx,
  77. AOTFuncContext *func_ctx, uint32 encoding);
  78. bool
  79. aot_compile_op_string_encode_array(AOTCompContext *comp_ctx,
  80. AOTFuncContext *func_ctx, uint32 encoding);
  81. #ifdef __cplusplus
  82. } /* end of extern "C" */
  83. #endif
  84. #endif /* end of _AOT_EMIT_STRINGREF_H_ */