compinnr.pas 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. {
  2. This file is part of the Free Pascal run time library and compiler.
  3. Copyright (c) 1998-2002 by the Free Pascal development team
  4. Internal Function/Constant Evaluator numbers
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. unit compinnr;
  12. {$i fpcdefs.inc}
  13. {$packenum 4}
  14. interface
  15. const
  16. { this file needs to be kept in sync with rtl/inc/innr.in }
  17. in_cpu_first = 10000;
  18. in_x86_mm_first = 11000;
  19. type
  20. tinlinenumber=(
  21. in_none = -1,
  22. { Internal functions }
  23. in_lo_word = 1,
  24. in_hi_word = 2,
  25. in_lo_long = 3,
  26. in_hi_long = 4,
  27. in_ord_x = 5,
  28. in_length_x = 6,
  29. in_chr_byte = 7,
  30. in_write_x = 14,
  31. in_writeln_x = 15,
  32. in_read_x = 16,
  33. in_readln_x = 17,
  34. in_concat_x = 18,
  35. in_assigned_x = 19,
  36. in_str_x_string = 20,
  37. in_ofs_x = 21,
  38. in_sizeof_x = 22,
  39. in_typeof_x = 23,
  40. in_val_x = 24,
  41. in_reset_x = 25,
  42. in_rewrite_x = 26,
  43. in_low_x = 27,
  44. in_high_x = 28,
  45. in_seg_x = 29,
  46. in_pred_x = 30,
  47. in_succ_x = 31,
  48. in_reset_typedfile = 32,
  49. in_rewrite_typedfile = 33,
  50. in_settextbuf_file_x = 34,
  51. in_inc_x = 35,
  52. in_dec_x = 36,
  53. in_include_x_y = 37,
  54. in_exclude_x_y = 38,
  55. in_break = 39,
  56. in_continue = 40,
  57. in_assert_x_y = 41,
  58. in_addr_x = 42,
  59. in_typeinfo_x = 43,
  60. in_setlength_x = 44,
  61. in_finalize_x = 45,
  62. in_new_x = 46,
  63. in_dispose_x = 47,
  64. in_exit = 48,
  65. in_copy_x = 49,
  66. in_initialize_x = 50,
  67. in_leave = 51, {macpas}
  68. in_cycle = 52, {macpas}
  69. in_slice_x = 53,
  70. in_unaligned_x = 54,
  71. in_get_frame = 56,
  72. in_get_caller_addr = 57,
  73. in_get_caller_frame = 58,
  74. in_pack_x_y_z = 59,
  75. in_unpack_x_y_z = 60,
  76. in_bitsizeof_x = 61,
  77. in_writestr_x = 62,
  78. in_readstr_x = 63,
  79. in_abs_long = 64,
  80. in_ror_x = 65,
  81. in_ror_x_y = 66,
  82. in_rol_x = 67,
  83. in_rol_x_y = 68,
  84. in_objc_selector_x = 69,
  85. in_objc_protocol_x = 70,
  86. in_objc_encode_x = 71,
  87. in_sar_x_y = 72,
  88. in_sar_x = 73,
  89. in_bsf_x = 74,
  90. in_bsr_x = 75,
  91. in_default_x = 76,
  92. in_box_x = 77, { managed platforms: wrap in class instance }
  93. in_unbox_x_y = 78, { manage platforms: extract from class instance }
  94. in_popcnt_x = 79,
  95. in_aligned_x = 80,
  96. in_setstring_x_y_z = 81,
  97. in_insert_x_y_z = 82,
  98. in_delete_x_y_z = 83,
  99. in_reset_typedfile_name = 84,
  100. in_rewrite_typedfile_name = 85,
  101. in_and_assign_x_y = 86,
  102. in_or_assign_x_y = 87,
  103. in_xor_assign_x_y = 88,
  104. in_sar_assign_x_y = 89,
  105. in_shl_assign_x_y = 90,
  106. in_shr_assign_x_y = 91,
  107. in_rol_assign_x_y = 92,
  108. in_ror_assign_x_y = 93,
  109. in_neg_assign_x = 94,
  110. in_not_assign_x = 95,
  111. in_gettypekind_x = 96,
  112. in_faraddr_x = 97,
  113. in_volatile_x = 98,
  114. in_ismanagedtype_x = 99,
  115. { Internal constant functions }
  116. in_const_sqr = 100,
  117. in_const_abs = 101,
  118. in_const_odd = 102,
  119. in_const_ptr = 103,
  120. in_const_swap_word = 104,
  121. in_const_swap_long = 105,
  122. in_lo_qword = 106,
  123. in_hi_qword = 107,
  124. in_const_swap_qword = 108,
  125. in_prefetch_var = 109,
  126. in_const_eh_return_data_regno = 110,
  127. { FPU functions }
  128. in_trunc_real = 120,
  129. in_round_real = 121,
  130. in_frac_real = 122,
  131. in_int_real = 123,
  132. in_exp_real = 124,
  133. in_cos_real = 125,
  134. in_pi_real = 126,
  135. in_abs_real = 127,
  136. in_sqr_real = 128,
  137. in_sqrt_real = 129,
  138. in_arctan_real = 130,
  139. in_ln_real = 131,
  140. in_sin_real = 132,
  141. in_fma_single = 133,
  142. in_fma_double = 134,
  143. in_fma_extended = 135,
  144. in_fma_float128 = 136,
  145. { the min/max intrinsics must follow the x86 sse
  146. behaviour of min/max regarding handling
  147. NaN: in case of a NaN the result is always the second
  148. operand. This allows a simple translation of
  149. if a>b then result:=a else result:=b;
  150. statements into these intrinsics
  151. The min/max intrinsics are not supposed to
  152. be exposed to the user but only
  153. used internally by the compiler/optimizer }
  154. in_max_single = 137,
  155. in_max_double = 138,
  156. in_min_single = 139,
  157. in_min_double = 140,
  158. in_min_dword = 141,
  159. in_min_longint = 142,
  160. in_max_dword = 143,
  161. in_max_longint = 144,
  162. { MMX functions }
  163. { these contants are used by the mmx unit }
  164. { MMX }
  165. in_mmx_pcmpeqb = 200,
  166. in_mmx_pcmpeqw = 201,
  167. in_mmx_pcmpeqd = 202,
  168. in_mmx_pcmpgtb = 203,
  169. in_mmx_pcmpgtw = 204,
  170. in_mmx_pcmpgtd = 205,
  171. { 3DNow }
  172. { SSE }
  173. { More internal functions }
  174. in_isconstvalue_x = 1000
  175. {$if defined(X86)}
  176. ,
  177. {$i x86/cx86innr.inc}
  178. {$endif }
  179. {$if defined(AVR)}
  180. ,
  181. {$i ccpuinnr.inc}
  182. {$endif }
  183. {$if defined(Z80)}
  184. ,
  185. {$i ccpuinnr.inc}
  186. {$endif}
  187. {$if defined(WASM32)}
  188. ,
  189. {$i ccpuinnr.inc}
  190. {$endif}
  191. );
  192. implementation
  193. end.