hooks.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /* General-purpose hooks.
  2. Copyright (C) 2002-2019 Free Software Foundation, Inc.
  3. This program is free software; you can redistribute it and/or modify it
  4. under the terms of the GNU General Public License as published by the
  5. Free Software Foundation; either version 3, or (at your option) any
  6. later version.
  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. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; see the file COPYING3. If not see
  13. <http://www.gnu.org/licenses/>.
  14. In other words, you are welcome to use, share and improve this program.
  15. You are forbidden to forbid anyone else to use, share and improve
  16. what you give them. Help stamp out software-hoarding! */
  17. #ifndef GCC_HOOKS_H
  18. #define GCC_HOOKS_H
  19. extern bool hook_bool_void_false (void);
  20. extern bool hook_bool_void_true (void);
  21. extern bool hook_bool_bool_false (bool);
  22. extern bool hook_bool_bool_gcc_optionsp_false (bool, struct gcc_options *);
  23. extern bool hook_bool_const_int_const_int_true (const int, const int);
  24. extern bool hook_bool_mode_false (machine_mode);
  25. extern bool hook_bool_mode_true (machine_mode);
  26. extern bool hook_bool_mode_mode_true (machine_mode, machine_mode);
  27. extern bool hook_bool_mode_const_rtx_false (machine_mode, const_rtx);
  28. extern bool hook_bool_mode_const_rtx_true (machine_mode, const_rtx);
  29. extern bool hook_bool_mode_rtx_false (machine_mode, rtx);
  30. extern bool hook_bool_mode_rtx_true (machine_mode, rtx);
  31. extern bool hook_bool_const_rtx_insn_const_rtx_insn_true (const rtx_insn *,
  32. const rtx_insn *);
  33. extern bool hook_bool_mode_uhwi_false (machine_mode,
  34. unsigned HOST_WIDE_INT);
  35. extern bool hook_bool_puint64_puint64_true (poly_uint64, poly_uint64);
  36. extern bool hook_bool_insn_uint_mode_false (rtx_insn *, unsigned int,
  37. machine_mode);
  38. extern bool hook_bool_uint_mode_true (unsigned int, machine_mode);
  39. extern bool hook_bool_tree_false (tree);
  40. extern bool hook_bool_const_tree_false (const_tree);
  41. extern bool hook_bool_tree_true (tree);
  42. extern bool hook_bool_const_tree_true (const_tree);
  43. extern bool hook_bool_gsiptr_false (gimple_stmt_iterator *);
  44. extern bool hook_bool_const_tree_hwi_hwi_const_tree_false (const_tree,
  45. HOST_WIDE_INT,
  46. HOST_WIDE_INT,
  47. const_tree);
  48. extern bool hook_bool_const_tree_hwi_hwi_const_tree_true (const_tree,
  49. HOST_WIDE_INT,
  50. HOST_WIDE_INT,
  51. const_tree);
  52. extern bool hook_bool_rtx_insn_true (rtx_insn *);
  53. extern bool hook_bool_rtx_false (rtx);
  54. extern bool hook_bool_rtx_insn_int_false (rtx_insn *, int);
  55. extern bool hook_bool_uintp_uintp_false (unsigned int *, unsigned int *);
  56. extern bool hook_bool_reg_class_t_false (reg_class_t regclass);
  57. extern bool hook_bool_mode_mode_reg_class_t_true (machine_mode, machine_mode,
  58. reg_class_t);
  59. extern bool hook_bool_mode_reg_class_t_reg_class_t_false (machine_mode,
  60. reg_class_t,
  61. reg_class_t);
  62. extern bool hook_bool_rtx_mode_int_int_intp_bool_false (rtx, machine_mode,
  63. int, int, int *, bool);
  64. extern bool hook_bool_tree_tree_false (tree, tree);
  65. extern bool hook_bool_tree_tree_true (tree, tree);
  66. extern bool hook_bool_tree_bool_false (tree, bool);
  67. extern bool hook_bool_wint_wint_uint_bool_true (const widest_int &,
  68. const widest_int &,
  69. unsigned int, bool);
  70. extern void hook_void_void (void);
  71. extern void hook_void_constcharptr (const char *);
  72. extern void hook_void_rtx_insn_int (rtx_insn *, int);
  73. extern void hook_void_FILEptr_constcharptr (FILE *, const char *);
  74. extern void hook_void_FILEptr_constcharptr_const_tree (FILE *, const char *,
  75. const_tree);
  76. extern bool hook_bool_FILEptr_rtx_false (FILE *, rtx);
  77. extern void hook_void_rtx_tree (rtx, tree);
  78. extern void hook_void_FILEptr_tree (FILE *, tree);
  79. extern void hook_void_tree (tree);
  80. extern void hook_void_tree_treeptr (tree, tree *);
  81. extern void hook_void_int_int (int, int);
  82. extern void hook_void_gcc_optionsp (struct gcc_options *);
  83. extern bool hook_bool_uint_uintp_false (unsigned int, unsigned int *);
  84. extern int hook_int_uint_mode_1 (unsigned int, machine_mode);
  85. extern int hook_int_const_tree_0 (const_tree);
  86. extern int hook_int_const_tree_const_tree_1 (const_tree, const_tree);
  87. extern int hook_int_rtx_0 (rtx);
  88. extern int hook_int_rtx_1 (rtx);
  89. extern int hook_int_rtx_insn_0 (rtx_insn *);
  90. extern int hook_int_rtx_insn_unreachable (rtx_insn *);
  91. extern int hook_int_rtx_bool_0 (rtx, bool);
  92. extern int hook_int_rtx_mode_as_bool_0 (rtx, machine_mode, addr_space_t,
  93. bool);
  94. extern HOST_WIDE_INT hook_hwi_void_0 (void);
  95. extern tree hook_tree_const_tree_null (const_tree);
  96. extern tree hook_tree_void_null (void);
  97. extern tree hook_tree_tree_tree_null (tree, tree);
  98. extern tree hook_tree_tree_tree_tree_null (tree, tree, tree);
  99. extern tree hook_tree_tree_int_treep_bool_null (tree, int, tree *, bool);
  100. extern unsigned hook_uint_void_0 (void);
  101. extern unsigned int hook_uint_mode_0 (machine_mode);
  102. extern bool default_can_output_mi_thunk_no_vcall (const_tree, HOST_WIDE_INT,
  103. HOST_WIDE_INT, const_tree);
  104. extern rtx hook_rtx_rtx_identity (rtx);
  105. extern rtx hook_rtx_rtx_null (rtx);
  106. extern rtx hook_rtx_tree_int_null (tree, int);
  107. extern char *hook_charptr_void_null (void);
  108. extern const char *hook_constcharptr_void_null (void);
  109. extern const char *hook_constcharptr_const_tree_null (const_tree);
  110. extern const char *hook_constcharptr_const_rtx_insn_null (const rtx_insn *);
  111. extern const char *hook_constcharptr_const_tree_const_tree_null (const_tree, const_tree);
  112. extern const char *hook_constcharptr_int_const_tree_null (int, const_tree);
  113. extern const char *hook_constcharptr_int_const_tree_const_tree_null (int, const_tree, const_tree);
  114. extern opt_machine_mode hook_optmode_mode_uhwi_none (machine_mode,
  115. unsigned HOST_WIDE_INT);
  116. #endif