OSDN Git Service

2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git] / gcc / recog.h
index f591da6..86af35f 100644 (file)
@@ -1,23 +1,23 @@
 /* Declarations for interface to insn recognizer and insn-output.c.
-   Copyright (C) 1987, 1996, 1997, 1998,
-   1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1987, 1996, 1997, 1998, 1999, 2000, 2001
+   Free Software Foundation, Inc.
 
-This file is part of GNU CC.
+This file is part of GCC.
 
-GNU CC 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 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.
 
-GNU CC 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.
+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 GNU CC; see the file COPYING.  If not, write to
-the Free Software Foundation, 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA.  */
+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.  */
 
 /* Random number that should be large enough for all purposes.  */
 #define MAX_RECOG_ALTERNATIVES 30
@@ -77,6 +77,7 @@ extern int recog_memoized_1           PARAMS ((rtx));
 extern int check_asm_operands          PARAMS ((rtx));
 extern int asm_operand_ok              PARAMS ((rtx, const char *));
 extern int validate_change             PARAMS ((rtx, rtx *, rtx, int));
+extern int insn_invalid_p              PARAMS ((rtx));
 extern int apply_change_group          PARAMS ((void));
 extern int num_validated_changes       PARAMS ((void));
 extern void cancel_changes             PARAMS ((int));
@@ -88,6 +89,8 @@ extern int validate_replace_rtx_subexp        PARAMS ((rtx, rtx, rtx, rtx *));
 extern int validate_replace_rtx                PARAMS ((rtx, rtx, rtx));
 extern void validate_replace_rtx_group PARAMS ((rtx, rtx, rtx));
 extern int validate_replace_src                PARAMS ((rtx, rtx, rtx));
+extern void validate_replace_src_group PARAMS ((rtx, rtx, rtx));
+extern int num_changes_pending         PARAMS ((void));
 #ifdef HAVE_cc0
 extern int next_insn_tests_no_inequality PARAMS ((rtx));
 #endif
@@ -119,6 +122,7 @@ extern int mode_dependent_address_p PARAMS ((rtx));
 
 extern int recog                       PARAMS ((rtx, rtx, int *));
 extern void add_clobbers               PARAMS ((rtx, int));
+extern int added_clobbers_hard_reg_p   PARAMS ((int));
 extern void insn_extract               PARAMS ((rtx));
 extern void extract_insn               PARAMS ((rtx));
 extern void extract_constrain_insn_cached PARAMS ((rtx));
@@ -135,6 +139,9 @@ extern rtx peep2_find_free_register PARAMS ((int, int, const char *,
 extern void peephole2_optimize         PARAMS ((FILE *));
 extern rtx peephole2_insns             PARAMS ((rtx, rtx, int *));
 
+extern int store_data_bypass_p         PARAMS ((rtx, rtx));
+extern int if_test_bypass_p            PARAMS ((rtx, rtx));
+
 /* Nonzero means volatile operands are recognized.  */
 extern int volatile_ok;
 
@@ -213,15 +220,15 @@ typedef rtx (*insn_gen_fn) PARAMS ((rtx, ...));
 
 struct insn_operand_data
 {
-  insn_operand_predicate_fn predicate;
+  const insn_operand_predicate_fn predicate;
 
-  const char *constraint;
+  const char *const constraint;
 
-  enum machine_mode mode;
+  const ENUM_BITFIELD(machine_mode) mode : 16;
 
-  char strict_low;
+  const char strict_low;
 
-  char eliminable;
+  const char eliminable;
 };
 
 /* Legal values for insn_data.output_format.  Indicate what type of data
@@ -233,15 +240,15 @@ struct insn_operand_data
 
 struct insn_data
 {
-  const char *name;
+  const char *const name;
   const PTR output;
-  insn_gen_fn genfun;
-  const struct insn_operand_data *operand;
+  const insn_gen_fn genfun;
+  const struct insn_operand_data *const operand;
 
-  char n_operands;
-  char n_dups;
-  char n_alternatives;
-  char output_format;
+  const char n_operands;
+  const char n_dups;
+  const char n_alternatives;
+  const char output_format;
 };
 
 extern const struct insn_data insn_data[];