]> gcc.gnu.org Git - gcc.git/blob - gcc/recog.h
90th Cygnus<->FSF quick merge
[gcc.git] / gcc / recog.h
1 /* Declarations for interface to insn recognizer and insn-output.c.
2 Copyright (C) 1987, 1996 Free Software Foundation, Inc.
3
4 This file is part of GNU CC.
5
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20
21 #include "gansidecl.h"
22
23 /* Recognize an insn and return its insn-code,
24 which is the sequence number of the DEFINE_INSN that it matches.
25 If the insn does not match, return -1. */
26
27 extern int recog_memoized PROTO((rtx));
28
29 /* Determine whether a proposed change to an insn or MEM will make it
30 invalid. Make the change if not. */
31
32 extern int validate_change PROTO((rtx, rtx *, rtx, int));
33
34 /* Apply a group of changes if valid. */
35
36 extern int apply_change_group PROTO((void));
37
38 /* Return the number of changes so far in the current group. */
39
40 extern int num_validated_changes PROTO((void));
41
42 /* Retract some changes. */
43
44 extern void cancel_changes PROTO((int));
45
46 /* Nonzero means volatile operands are recognized. */
47
48 extern int volatile_ok;
49
50 /* Extract the operands from an insn that has been recognized. */
51
52 extern void insn_extract PROTO((rtx));
53
54 /* The following vectors hold the results from insn_extract. */
55
56 /* Indexed by N, gives value of operand N. */
57 extern rtx recog_operand[];
58
59 /* Indexed by N, gives location where operand N was found. */
60 extern rtx *recog_operand_loc[];
61
62 /* Indexed by N, gives location where the Nth duplicate-appearance of
63 an operand was found. This is something that matched MATCH_DUP. */
64 extern rtx *recog_dup_loc[];
65
66 /* Indexed by N, gives the operand number that was duplicated in the
67 Nth duplicate-appearance of an operand. */
68 extern char recog_dup_num[];
69
70 /* Access the output function for CODE. */
71
72 #define OUT_FCN(CODE) (*insn_outfun[(int) (CODE)])
73
74 /* Tables defined in insn-output.c that give information about
75 each insn-code value. */
76
77 /* These are vectors indexed by insn-code. Details in genoutput.c. */
78
79 extern char *const insn_template[];
80
81 extern char *(*const insn_outfun[]) ();
82
83 extern const int insn_n_operands[];
84
85 extern const int insn_n_dups[];
86
87 /* Indexed by insn code number, gives # of constraint alternatives. */
88
89 extern const int insn_n_alternatives[];
90
91 /* These are two-dimensional arrays indexed first by the insn-code
92 and second by the operand number. Details in genoutput.c. */
93
94 #ifdef REGISTER_CONSTRAINTS /* Avoid undef sym in certain broken linkers. */
95 extern char *const insn_operand_constraint[][MAX_RECOG_OPERANDS];
96 #endif
97
98 #ifndef REGISTER_CONSTRAINTS /* Avoid undef sym in certain broken linkers. */
99 extern const char insn_operand_address_p[][MAX_RECOG_OPERANDS];
100 #endif
101
102 extern const enum machine_mode insn_operand_mode[][MAX_RECOG_OPERANDS];
103
104 extern const char insn_operand_strict_low[][MAX_RECOG_OPERANDS];
105
106 extern int (*const insn_operand_predicate[][MAX_RECOG_OPERANDS]) ();
107
108 extern char * insn_name[];
This page took 0.040374 seconds and 5 git commands to generate.