]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
genattrtab.c: Don't handle MATCH_INSN.
authorKazu Hirata <kazu@cs.umass.edu>
Tue, 2 Mar 2004 17:16:53 +0000 (17:16 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Tue, 2 Mar 2004 17:16:53 +0000 (17:16 +0000)
* genattrtab.c: Don't handle MATCH_INSN.
* genrecog.c: Likewise.
* gensupport.c: Likewise.
* rtl.def (match_insn): Remove.
* doc/md.texi (match_insn, match_insn2): Remove.

From-SVN: r78768

gcc/ChangeLog
gcc/doc/md.texi
gcc/genattrtab.c
gcc/genrecog.c
gcc/gensupport.c
gcc/rtl.def

index 2df466298fec43a5600119244dba721e8cda5bea..7cd729097c0aa352ba014c12c009208e6c81b909 100644 (file)
@@ -1,3 +1,11 @@
+2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * genattrtab.c: Don't handle MATCH_INSN.
+       * genrecog.c: Likewise.
+       * gensupport.c: Likewise.
+       * rtl.def (match_insn): Remove.
+       * doc/md.texi (match_insn, match_insn2): Remove.
+
 2004-03-02  Mark Mitchell  <mark@codesourcery.com>
 
        * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
index 11848a501727c8a996089e3a3d3ff9a507b0908e..b8809c5502cdf6bc92808d41b234a4356ac18f19 100644 (file)
@@ -489,25 +489,6 @@ An insn that matches this pattern might look like:
 Like @code{match_op_dup}, but for @code{match_parallel} instead of
 @code{match_operator}.
 
-@findex match_insn
-@item (match_insn @var{predicate})
-Match a complete insn.  Unlike the other @code{match_*} recognizers,
-@code{match_insn} does not take an operand number.
-
-The machine mode @var{m} of @code{match_insn} works like that of
-@code{match_operand}: it is passed as the second argument to the
-predicate function, and that function is solely responsible for
-deciding whether the expression to be matched ``has'' that mode.
-
-@findex match_insn2
-@item (match_insn2 @var{n} @var{predicate})
-Match a complete insn.
-
-The machine mode @var{m} of @code{match_insn2} works like that of
-@code{match_operand}: it is passed as the second argument to the
-predicate function, and that function is solely responsible for
-deciding whether the expression to be matched ``has'' that mode.
-
 @end table
 
 @node Output Template
index e1a3e728826bb8adb4f0d69d516000fdb1844bcb..3bfeca3fd9d1873dd5dff87f38175c64503e474e 100644 (file)
@@ -1026,7 +1026,6 @@ check_attr_test (rtx exp, int is_const, int lineno)
       XEXP (exp, 0) = check_attr_test (XEXP (exp, 0), is_const, lineno);
       break;
 
-    case MATCH_INSN:
     case MATCH_OPERAND:
       if (is_const)
        fatal ("RTL operator \"%s\" not valid in constant attribute test",
@@ -4795,10 +4794,6 @@ write_test_expr (rtx exp, int flags)
                XSTR (exp, 1), XINT (exp, 0), GET_MODE_NAME (GET_MODE (exp)));
       break;
 
-    case MATCH_INSN:
-      printf ("%s (insn)", XSTR (exp, 0));
-      break;
-
     /* Constant integer.  */
     case CONST_INT:
       printf (HOST_WIDE_INT_PRINT_DEC, XWINT (exp, 0));
index 7bdc52659cea7ef1cb8ed17f8d7afa2e5ffc8801..2f5028cac8da4f5d6f92336187b71bfa8c22cacf 100644 (file)
@@ -361,7 +361,6 @@ find_operand (rtx pattern, int n, rtx stop)
 
   code = GET_CODE (pattern);
   if ((code == MATCH_SCRATCH
-       || code == MATCH_INSN
        || code == MATCH_OPERAND
        || code == MATCH_OPERATOR
        || code == MATCH_PARALLEL)
@@ -482,7 +481,6 @@ validate_pattern (rtx pattern, rtx insn, rtx set, int set_code)
           error_count++;
        }
       break;
-    case MATCH_INSN:
     case MATCH_OPERAND:
     case MATCH_OPERATOR:
       {
@@ -832,7 +830,6 @@ add_to_sequence (rtx pattern, struct decision_head *last, const char *position,
     case MATCH_OPERAND:
     case MATCH_SCRATCH:
     case MATCH_OPERATOR:
-    case MATCH_INSN:
       {
        const char *pred_name;
        RTX_CODE was_code = code;
index 44e07eb06d52f64dd3666542f8b3e72aa918b749..b8cf5e67a519ae72d2b33737e78c253e4fdd4d19 100644 (file)
@@ -517,7 +517,6 @@ collect_insn_data (rtx pattern, int *palt, int *pmax)
     case MATCH_OPERATOR:
     case MATCH_SCRATCH:
     case MATCH_PARALLEL:
-    case MATCH_INSN:
       i = XINT (pattern, 0);
       if (i > *pmax)
        *pmax = i;
@@ -600,7 +599,6 @@ alter_predicate_for_insn (rtx pattern, int alt, int max_op, int lineno)
     case MATCH_OPERATOR:
     case MATCH_SCRATCH:
     case MATCH_PARALLEL:
-    case MATCH_INSN:
       XINT (pattern, 0) += max_op;
       break;
 
index f9320db0fa82b114b1087002b39d936492ec1191..4e77373bc37d7ef8b993458b21a7dce41f6da42b 100644 (file)
@@ -167,11 +167,6 @@ DEF_RTL_EXPR(MATCH_OP_DUP, "match_op_dup", "iE", 'm')
    at the index specified by the argument.  For MATCH_PARALLEL.  */
 DEF_RTL_EXPR(MATCH_PAR_DUP, "match_par_dup", "iE", 'm')
 
-/* Appears only in machine descriptions.
-   Operand 0 is the operand number, as in match_operand.
-   Operand 1 is the predicate to apply to the insn.  */
-DEF_RTL_EXPR(MATCH_INSN, "match_insn", "is", 'm')
-
 /* Appears only in machine descriptions.
    Defines the pattern for one kind of instruction.
    Operand: