insn-notes.def 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /* Insn note definitions.
  2. Copyright (C) 2004-2019 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 beginning of a statement. */
  53. INSN_NOTE (BEGIN_STMT)
  54. /* The entry point for an inlined function. Its NOTE_BLOCK references
  55. the lexical block whose abstract origin is the inlined function. */
  56. INSN_NOTE (INLINE_ENTRY)
  57. /* Record the struct for the following basic block. Uses
  58. NOTE_BASIC_BLOCK. FIXME: Redundant with the basic block pointer
  59. now included in every insn. NOTE: If there's no CFG anymore, in other words,
  60. if BLOCK_FOR_INSN () == NULL, NOTE_BASIC_BLOCK cannot be considered reliable
  61. anymore. */
  62. INSN_NOTE (BASIC_BLOCK)
  63. /* Mark the inflection point in the instruction stream where we switch
  64. between hot and cold text sections. */
  65. INSN_NOTE (SWITCH_TEXT_SECTIONS)
  66. /* When emitting dwarf2 frame information, contains a directive that
  67. should be emitted. */
  68. INSN_NOTE (CFI)
  69. /* When emitting dwarf2 frame information, contains the number of a debug
  70. label that should be emitted. */
  71. INSN_NOTE (CFI_LABEL)
  72. /* This note indicates that the function context must be updated if
  73. the Setjmp/Longjmp exception mechanism is used. */
  74. INSN_NOTE (UPDATE_SJLJ_CONTEXT)
  75. #undef INSN_NOTE