plugin.def 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /* This file contains the definitions for plugin events in GCC.
  2. Copyright (C) 2009-2015 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 3, or (at your option) any later
  7. version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. /* To hook into pass manager. */
  16. DEFEVENT (PLUGIN_PASS_MANAGER_SETUP)
  17. /* After finishing parsing a type. */
  18. DEFEVENT (PLUGIN_FINISH_TYPE)
  19. /* After finishing parsing a declaration. */
  20. DEFEVENT (PLUGIN_FINISH_DECL)
  21. /* Useful for summary processing. */
  22. DEFEVENT (PLUGIN_FINISH_UNIT)
  23. /* Allows to see low level AST in C and C++ frontends. */
  24. DEFEVENT (PLUGIN_PRE_GENERICIZE)
  25. /* Called before GCC exits. */
  26. DEFEVENT (PLUGIN_FINISH)
  27. /* Information about the plugin. */
  28. DEFEVENT (PLUGIN_INFO)
  29. /* Called at start of GCC Garbage Collection. */
  30. DEFEVENT (PLUGIN_GGC_START)
  31. /* Extend the GGC marking. */
  32. DEFEVENT (PLUGIN_GGC_MARKING)
  33. /* Called at end of GGC. */
  34. DEFEVENT (PLUGIN_GGC_END)
  35. /* Register an extra GGC root table. */
  36. DEFEVENT (PLUGIN_REGISTER_GGC_ROOTS)
  37. /* Called during attribute registration. */
  38. DEFEVENT (PLUGIN_ATTRIBUTES)
  39. /* Called before processing a translation unit. */
  40. DEFEVENT (PLUGIN_START_UNIT)
  41. /* Called during pragma registration. */
  42. DEFEVENT (PLUGIN_PRAGMAS)
  43. /* Called before first pass from all_passes. */
  44. DEFEVENT (PLUGIN_ALL_PASSES_START)
  45. /* Called after last pass from all_passes. */
  46. DEFEVENT (PLUGIN_ALL_PASSES_END)
  47. /* Called before first ipa pass. */
  48. DEFEVENT (PLUGIN_ALL_IPA_PASSES_START)
  49. /* Called after last ipa pass. */
  50. DEFEVENT (PLUGIN_ALL_IPA_PASSES_END)
  51. /* Allows to override pass gate decision for current_pass. */
  52. DEFEVENT (PLUGIN_OVERRIDE_GATE)
  53. /* Called before executing a pass. */
  54. DEFEVENT (PLUGIN_PASS_EXECUTION)
  55. /* Called before executing subpasses of a GIMPLE_PASS in
  56. execute_ipa_pass_list. */
  57. DEFEVENT (PLUGIN_EARLY_GIMPLE_PASSES_START)
  58. /* Called after executing subpasses of a GIMPLE_PASS in
  59. execute_ipa_pass_list. */
  60. DEFEVENT (PLUGIN_EARLY_GIMPLE_PASSES_END)
  61. /* Called when a pass is first instantiated. */
  62. DEFEVENT (PLUGIN_NEW_PASS)
  63. /* Called when a file is #include-d or given via the #line directive.
  64. this could happen many times. The event data is the included file path,
  65. as a const char* pointer. */
  66. DEFEVENT (PLUGIN_INCLUDE_FILE)
  67. /* When adding a new hard-coded plugin event, don't forget to edit in
  68. file plugin.c the functions register_callback and
  69. invoke_plugin_callbacks_full accordingly! */
  70. /* After the hard-coded events above, plugins can dynamically allocate events
  71. at run time.
  72. PLUGIN_EVENT_FIRST_DYNAMIC only appears as last enum element. */