From 30f4db0d0ca544491708a54ec8bb771fd697c48c Mon Sep 17 00:00:00 2001
From: zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed, 18 Aug 2004 22:31:03 +0000
Subject: 	* insn-notes.def, reg-notes.def: New files. 	* rtl.h: Use
 them to define enum insn_note and enum reg_note. 	* rtl.c: Use them to
 define note_insn_name and reg_note_name.

	* modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
	renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86212 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/insn-notes.def | 108 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 108 insertions(+)
 create mode 100644 gcc/insn-notes.def

(limited to 'gcc/insn-notes.def')

diff --git a/gcc/insn-notes.def b/gcc/insn-notes.def
new file mode 100644
index 00000000000..3b164e8629e
--- /dev/null
+++ b/gcc/insn-notes.def
@@ -0,0 +1,108 @@
+/* Insn note definitions.
+   Copyright (C) 2004 Free Software Foundation, Inc.
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
+
+GCC is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING.  If not, write to the Free
+Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.  */
+
+/* This file defines all the codes that may appear in the
+   NOTE_LINE_NUMBER field of a NOTE insn for kinds of notes that are
+   not line numbers.  Source files define DEF_INSN_NOTE appropriately
+   before including this file.
+
+   We are slowly removing the concept of insn-chain notes from the
+   compiler.  Adding new codes to this file is STRONGLY DISCOURAGED.
+   If you think you need one, look for other ways to express what you
+   mean, such as register notes or bits in the basic-block structure.  */
+
+/* Shorthand.  */
+#define INSN_NOTE(NAME) DEF_INSN_NOTE (NOTE_INSN_##NAME)
+
+/* This note is used to get rid of an insn when it isn't safe to patch
+   the insn out of the chain.  */
+INSN_NOTE (DELETED)
+
+/* Generated in place of user-declared labels when they are deleted.  */
+INSN_NOTE (DELETED_LABEL)
+
+/* These are used to mark the beginning and end of a lexical block.
+   See NOTE_BLOCK and reorder_blocks.  */
+INSN_NOTE (BLOCK_BEG)
+INSN_NOTE (BLOCK_END)
+
+/* These mark the extremes of a loop.  */
+INSN_NOTE (LOOP_BEG)
+INSN_NOTE (LOOP_END)
+
+/* Generated at the place in a loop that `continue' jumps to.  */
+INSN_NOTE (LOOP_CONT)
+/* Generated at the start of a duplicated exit test.  */
+INSN_NOTE (LOOP_VTOP)
+
+/* This note indicates the start of the real body of the function,
+   i.e. the point just after all of the parms have been moved into
+   their homes, etc.  */
+INSN_NOTE (FUNCTION_BEG)
+
+/* This kind of note is generated at the end of the function body,
+   just before the return insn or return label.  In an optimizing
+   compilation it is deleted by the first jump optimization, after
+   enabling that optimizer to determine whether control can fall
+   off the end of the function body without a return statement.  */
+INSN_NOTE (FUNCTION_END)
+
+/* This marks the point immediately after the last prologue insn.  */
+INSN_NOTE (PROLOGUE_END)
+
+/* This marks the point immediately prior to the first epilogue insn.  */
+INSN_NOTE (EPILOGUE_BEG)
+
+/* These note where exception handling regions begin and end.
+   Uses NOTE_EH_HANDLER to identify the region in question.  */
+INSN_NOTE (EH_REGION_BEG)
+INSN_NOTE (EH_REGION_END)
+
+/* Generated whenever a duplicate line number note is output.
+   For example, one is output after the end of an inline function,
+   in order to prevent the line containing the inline call from
+   being counted twice in gcov.  */
+INSN_NOTE (REPEATED_LINE_NUMBER)
+
+/* The location of a variable.  */
+INSN_NOTE (VAR_LOCATION)
+
+/* Record the expected value of a register at a location.  Uses
+   NOTE_EXPECTED_VALUE; stored as (eq (reg) (const_int)).  */
+INSN_NOTE (EXPECTED_VALUE)
+
+/* Record the struct for the following basic block.  Uses
+   NOTE_BASIC_BLOCK.  FIXME: Redundant with the basic block pointer
+   now included in every insn.  */
+INSN_NOTE (BASIC_BLOCK)
+
+/* Record that the current basic block is unlikely to be executed and
+   should be moved to the UNLIKELY_EXECUTED_TEXT_SECTION.  FIXME: Make
+   this a bit on the basic block structure. */
+INSN_NOTE (UNLIKELY_EXECUTED_CODE)
+
+/* Mark that a block shouldn't be scheduled.  This is currently used
+   in modulo scheduling. Modulo scheduling adds this note to the
+   blocks of the modulo-scheduled loops to disable scheduling them in
+   the later traditional scheduling passes.  FIXME: Make this a bit on
+   the basic block structure.  */
+INSN_NOTE (DISABLE_SCHED_OF_BLOCK)
+
+#undef INSN_NOTE
-- 
cgit v1.2.1

