insn-notes.def 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /* Insn note definitions.
  2. Copyright (C) 2004-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. /* This file defines all the codes that may appear in the
  16. NOTE_LINE_NUMBER field of a NOTE insn for kinds of notes that are
  17. not line numbers. Source files define DEF_INSN_NOTE appropriately
  18. before including this file.
  19. We are slowly removing the concept of insn-chain notes from the
  20. compiler. Adding new codes to this file is STRONGLY DISCOURAGED.
  21. If you think you need one, look for other ways to express what you
  22. mean, such as register notes or bits in the basic-block structure. */
  23. /* Shorthand. */
  24. #define INSN_NOTE(NAME) DEF_INSN_NOTE (NOTE_INSN_##NAME)
  25. /* This note is used to get rid of an insn when it isn't safe to patch
  26. the insn out of the chain. */
  27. INSN_NOTE (DELETED)
  28. /* Generated in place of user-declared labels when they are deleted. */
  29. INSN_NOTE (DELETED_LABEL)
  30. /* Similarly, but for labels that have been present in debug stmts
  31. earlier and thus will only appear with -g. These must use different
  32. label namespace. */
  33. INSN_NOTE (DELETED_DEBUG_LABEL)
  34. /* These are used to mark the beginning and end of a lexical block.
  35. See NOTE_BLOCK and reorder_blocks. */
  36. INSN_NOTE (BLOCK_BEG)
  37. INSN_NOTE (BLOCK_END)
  38. /* This note indicates the start of the real body of the function,
  39. i.e. the point just after all of the parms have been moved into
  40. their homes, etc. */
  41. INSN_NOTE (FUNCTION_BEG)
  42. /* This marks the point immediately after the last prologue insn. */
  43. INSN_NOTE (PROLOGUE_END)
  44. /* This marks the point immediately prior to the first epilogue insn. */
  45. INSN_NOTE (EPILOGUE_BEG)
  46. /* These note where exception handling regions begin and end.
  47. Uses NOTE_EH_HANDLER to identify the region in question. */
  48. INSN_NOTE (EH_REGION_BEG)
  49. INSN_NOTE (EH_REGION_END)
  50. /* The location of a variable. */
  51. INSN_NOTE (VAR_LOCATION)
  52. /* The values passed to callee. */
  53. INSN_NOTE (CALL_ARG_LOCATION)
  54. /* Record the struct for the following basic block. Uses
  55. NOTE_BASIC_BLOCK. FIXME: Redundant with the basic block pointer
  56. now included in every insn. NOTE: If there's no CFG anymore, in other words,
  57. if BLOCK_FOR_INSN () == NULL, NOTE_BASIC_BLOCK cannot be considered reliable
  58. anymore. */
  59. INSN_NOTE (BASIC_BLOCK)
  60. /* Mark the inflection point in the instruction stream where we switch
  61. between hot and cold text sections. */
  62. INSN_NOTE (SWITCH_TEXT_SECTIONS)
  63. /* When emitting dwarf2 frame information, contains a directive that
  64. should be emitted. */
  65. INSN_NOTE (CFI)
  66. /* When emitting dwarf2 frame information, contains the number of a debug
  67. label that should be emitted. */
  68. INSN_NOTE (CFI_LABEL)
  69. #undef INSN_NOTE