OSDN Git Service

(emit_insns_after): Add declaration.
[pf3gnuchains/gcc-fork.git] / gcc / rtl.h
1 /* Register Transfer Language (RTL) definitions for GNU C-Compiler
2    Copyright (C) 1987, 91, 92, 93, 94, 1995 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, 675 Mass Ave, Cambridge, MA 02139, USA.  */
19
20
21 #include "machmode.h"
22
23 #undef FFS  /* Some systems predefine this symbol; don't let it interfere.  */
24 #undef FLOAT /* Likewise.  */
25 #undef ABS /* Likewise.  */
26 #undef PC /* Likewise.  */
27
28 #ifndef TREE_CODE
29 union tree_node;
30 #endif
31
32 /* Register Transfer Language EXPRESSIONS CODES */
33
34 #define RTX_CODE        enum rtx_code
35 enum rtx_code  {
36
37 #define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS)   ENUM ,
38 #include "rtl.def"              /* rtl expressions are documented here */
39 #undef DEF_RTL_EXPR
40
41   LAST_AND_UNUSED_RTX_CODE};    /* A convenient way to get a value for
42                                    NUM_RTX_CODE.
43                                    Assumes default enum value assignment.  */
44
45 #define NUM_RTX_CODE ((int)LAST_AND_UNUSED_RTX_CODE)
46                                 /* The cast here, saves many elsewhere.  */
47
48 extern int rtx_length[];
49 #define GET_RTX_LENGTH(CODE)            (rtx_length[(int)(CODE)])
50
51 extern char *rtx_name[];
52 #define GET_RTX_NAME(CODE)              (rtx_name[(int)(CODE)])
53
54 extern char *rtx_format[];
55 #define GET_RTX_FORMAT(CODE)            (rtx_format[(int)(CODE)])
56
57 extern char rtx_class[];
58 #define GET_RTX_CLASS(CODE)             (rtx_class[(int)(CODE)])
59 \f
60 /* Common union for an element of an rtx.  */
61
62 typedef union rtunion_def
63 {
64   HOST_WIDE_INT rtwint;
65   int rtint;
66   char *rtstr;
67   struct rtx_def *rtx;
68   struct rtvec_def *rtvec;
69   enum machine_mode rttype;
70 } rtunion;
71
72 /* RTL expression ("rtx").  */
73
74 typedef struct rtx_def
75 {
76 #ifdef ONLY_INT_FIELDS
77 #ifdef CODE_FIELD_BUG
78   unsigned int code : 16;
79 #else
80   unsigned short code;
81 #endif
82 #else
83   /* The kind of expression this is.  */
84   enum rtx_code code : 16;
85 #endif
86   /* The kind of value the expression has.  */
87 #ifdef ONLY_INT_FIELDS
88   int mode : 8;
89 #else
90   enum machine_mode mode : 8;
91 #endif
92   /* 1 in an INSN if it can alter flow of control
93      within this function.  Not yet used!  */
94   unsigned int jump : 1;
95   /* 1 in an INSN if it can call another function.  Not yet used!  */
96   unsigned int call : 1;
97   /* 1 in a MEM or REG if value of this expression will never change
98      during the current function, even though it is not
99      manifestly constant.
100      1 in a SUBREG if it is from a promoted variable that is unsigned.
101      1 in a SYMBOL_REF if it addresses something in the per-function
102      constants pool.
103      1 in a CALL_INSN if it is a const call.
104      1 in a JUMP_INSN if it is a branch that should be annulled.  Valid from
105      reorg until end of compilation; cleared before used.  */
106   unsigned int unchanging : 1;
107   /* 1 in a MEM expression if contents of memory are volatile.
108      1 in an INSN, CALL_INSN, JUMP_INSN, CODE_LABEL or BARRIER
109      if it is deleted.
110      1 in a REG expression if corresponds to a variable declared by the user.
111      0 for an internally generated temporary.
112      In a SYMBOL_REF, this flag is used for machine-specific purposes.
113      In a LABEL_REF or in a REG_LABEL note, this is LABEL_REF_NONLOCAL_P.  */
114   unsigned int volatil : 1;
115   /* 1 in a MEM referring to a field of a structure (not a union!).
116      0 if the MEM was a variable or the result of a * operator in C;
117      1 if it was the result of a . or -> operator (on a struct) in C.
118      1 in a REG if the register is used only in exit code a loop.
119      1 in a SUBREG expression if was generated from a variable with a 
120      promoted mode.
121      1 in a CODE_LABEL if the label is used for nonlocal gotos
122      and must not be deleted even if its count is zero.
123      1 in a LABEL_REF if this is a reference to a label outside the
124      current loop.
125      1 in an INSN, JUMP_INSN, or CALL_INSN if this insn must be scheduled
126      together with the preceding insn.  Valid only within sched.
127      1 in an INSN, JUMP_INSN, or CALL_INSN if insn is in a delay slot and
128      from the target of a branch.  Valid from reorg until end of compilation;
129      cleared before used.  */
130   unsigned int in_struct : 1;
131   /* 1 if this rtx is used.  This is used for copying shared structure.
132      See `unshare_all_rtl'.
133      In a REG, this is not needed for that purpose, and used instead 
134      in `leaf_renumber_regs_insn'.
135      In a SYMBOL_REF, means that emit_library_call
136      has used it as the function.  */
137   unsigned int used : 1;
138   /* Nonzero if this rtx came from procedure integration.
139      In a REG, nonzero means this reg refers to the return value
140      of the current function.  */
141   unsigned integrated : 1;
142   /* The first element of the operands of this rtx.
143      The number of operands and their types are controlled
144      by the `code' field, according to rtl.def.  */
145   rtunion fld[1];
146 } *rtx;
147
148
149 /* Add prototype support.  */
150 #ifndef PROTO
151 #if defined (USE_PROTOTYPES) ? USE_PROTOTYPES : defined (__STDC__)
152 #define PROTO(ARGS) ARGS
153 #else
154 #define PROTO(ARGS) ()
155 #endif
156 #endif
157
158 #ifndef VPROTO
159 #ifdef __STDC__
160 #define PVPROTO(ARGS)           ARGS
161 #define VPROTO(ARGS)            ARGS
162 #define VA_START(va_list,var)   va_start(va_list,var)
163 #else
164 #define PVPROTO(ARGS)           ()
165 #define VPROTO(ARGS)            (va_alist) va_dcl
166 #define VA_START(va_list,var)   va_start(va_list)
167 #endif
168 #endif
169
170 #ifndef STDIO_PROTO
171 #ifdef BUFSIZ
172 #define STDIO_PROTO(ARGS) PROTO(ARGS)
173 #else
174 #define STDIO_PROTO(ARGS) ()
175 #endif
176 #endif
177
178 #define NULL_RTX (rtx) 0
179
180 /* Define a generic NULL if one hasn't already been defined.  */
181
182 #ifndef NULL
183 #define NULL 0
184 #endif
185
186 #ifndef GENERIC_PTR
187 #if defined (USE_PROTOTYPES) ? USE_PROTOTYPES : defined (__STDC__)
188 #define GENERIC_PTR void *
189 #else
190 #define GENERIC_PTR char *
191 #endif
192 #endif
193
194 #ifndef NULL_PTR
195 #define NULL_PTR ((GENERIC_PTR)0)
196 #endif
197
198 /* Define macros to access the `code' field of the rtx.  */
199
200 #ifdef SHORT_ENUM_BUG
201 #define GET_CODE(RTX)           ((enum rtx_code) ((RTX)->code))
202 #define PUT_CODE(RTX, CODE)     ((RTX)->code = ((short) (CODE)))
203 #else
204 #define GET_CODE(RTX)           ((RTX)->code)
205 #define PUT_CODE(RTX, CODE)     ((RTX)->code = (CODE))
206 #endif
207
208 #define GET_MODE(RTX)           ((RTX)->mode)
209 #define PUT_MODE(RTX, MODE)     ((RTX)->mode = (MODE))
210
211 #define RTX_INTEGRATED_P(RTX) ((RTX)->integrated)
212 #define RTX_UNCHANGING_P(RTX) ((RTX)->unchanging)
213
214 /* RTL vector.  These appear inside RTX's when there is a need
215    for a variable number of things.  The principle use is inside
216    PARALLEL expressions.  */
217
218 typedef struct rtvec_def{
219   unsigned num_elem;            /* number of elements */
220   rtunion elem[1];
221 } *rtvec;
222
223 #define NULL_RTVEC (rtvec) 0
224
225 #define GET_NUM_ELEM(RTVEC)             ((RTVEC)->num_elem)
226 #define PUT_NUM_ELEM(RTVEC, NUM)        ((RTVEC)->num_elem = (unsigned) NUM)
227
228 #define RTVEC_ELT(RTVEC, I)  ((RTVEC)->elem[(I)].rtx)
229
230 /* 1 if X is a REG.  */
231
232 #define REG_P(X) (GET_CODE (X) == REG)
233
234 /* 1 if X is a constant value that is an integer.  */
235
236 #define CONSTANT_P(X)   \
237   (GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF              \
238    || GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST_DOUBLE         \
239    || GET_CODE (X) == CONST || GET_CODE (X) == HIGH)
240
241 /* General accessor macros for accessing the fields of an rtx.  */
242
243 #define XEXP(RTX, N)    ((RTX)->fld[N].rtx)
244 #define XINT(RTX, N)    ((RTX)->fld[N].rtint)
245 #define XWINT(RTX, N)   ((RTX)->fld[N].rtwint)
246 #define XSTR(RTX, N)    ((RTX)->fld[N].rtstr)
247 #define XVEC(RTX, N)    ((RTX)->fld[N].rtvec)
248 #define XVECLEN(RTX, N) ((RTX)->fld[N].rtvec->num_elem)
249 #define XVECEXP(RTX,N,M)((RTX)->fld[N].rtvec->elem[M].rtx)
250 \f
251 /* ACCESS MACROS for particular fields of insns.  */
252
253 /* Holds a unique number for each insn.
254    These are not necessarily sequentially increasing.  */
255 #define INSN_UID(INSN)  ((INSN)->fld[0].rtint)
256
257 /* Chain insns together in sequence.  */
258 #define PREV_INSN(INSN) ((INSN)->fld[1].rtx)
259 #define NEXT_INSN(INSN) ((INSN)->fld[2].rtx)
260
261 /* The body of an insn.  */
262 #define PATTERN(INSN)   ((INSN)->fld[3].rtx)
263
264 /* Code number of instruction, from when it was recognized.
265    -1 means this instruction has not been recognized yet.  */
266 #define INSN_CODE(INSN) ((INSN)->fld[4].rtint)
267
268 /* Set up in flow.c; empty before then.
269    Holds a chain of INSN_LIST rtx's whose first operands point at
270    previous insns with direct data-flow connections to this one.
271    That means that those insns set variables whose next use is in this insn.
272    They are always in the same basic block as this insn.  */
273 #define LOG_LINKS(INSN)         ((INSN)->fld[5].rtx)
274
275 /* 1 if insn has been deleted.  */
276 #define INSN_DELETED_P(INSN) ((INSN)->volatil)
277
278 /* 1 if insn is a call to a const function.  */
279 #define CONST_CALL_P(INSN) ((INSN)->unchanging)
280
281 /* 1 if insn is a branch that should not unconditionally execute its
282    delay slots, i.e., it is an annulled branch.   */
283 #define INSN_ANNULLED_BRANCH_P(INSN) ((INSN)->unchanging)
284
285 /* 1 if insn is in a delay slot and is from the target of the branch.  If
286    the branch insn has INSN_ANNULLED_BRANCH_P set, this insn should only be
287    executed if the branch is taken.  For annulled branches with this bit
288    clear, the insn should be executed only if the branch is not taken.  */
289 #define INSN_FROM_TARGET_P(INSN) ((INSN)->in_struct)
290
291 /* Holds a list of notes on what this insn does to various REGs.
292    It is a chain of EXPR_LIST rtx's, where the second operand
293    is the chain pointer and the first operand is the REG being described.
294    The mode field of the EXPR_LIST contains not a real machine mode
295    but a value that says what this note says about the REG:
296      REG_DEAD means that the value in REG dies in this insn (i.e., it is
297    not needed past this insn).  If REG is set in this insn, the REG_DEAD
298    note may, but need not, be omitted.
299      REG_INC means that the REG is autoincremented or autodecremented.
300      REG_EQUIV describes the insn as a whole; it says that the
301    insn sets a register to a constant value or to be equivalent to
302    a memory address.  If the
303    register is spilled to the stack then the constant value
304    should be substituted for it.  The contents of the REG_EQUIV
305    is the constant value or memory address, which may be different
306    from the source of the SET although it has the same value. 
307      REG_EQUAL is like REG_EQUIV except that the destination
308    is only momentarily equal to the specified rtx.  Therefore, it
309    cannot be used for substitution; but it can be used for cse.
310      REG_RETVAL means that this insn copies the return-value of
311    a library call out of the hard reg for return values.  This note
312    is actually an INSN_LIST and it points to the first insn involved
313    in setting up arguments for the call.  flow.c uses this to delete
314    the entire library call when its result is dead.
315      REG_LIBCALL is the inverse of REG_RETVAL: it goes on the first insn
316    of the library call and points at the one that has the REG_RETVAL.
317      REG_WAS_0 says that the register set in this insn held 0 before the insn.
318    The contents of the note is the insn that stored the 0.
319    If that insn is deleted or patched to a NOTE, the REG_WAS_0 is inoperative.
320    The REG_WAS_0 note is actually an INSN_LIST, not an EXPR_LIST.
321      REG_NONNEG means that the register is always nonnegative during
322    the containing loop.  This is used in branches so that decrement and
323    branch instructions terminating on zero can be matched.  There must be
324    an insn pattern in the md file named `decrement_and_branch_until_zero'
325    or else this will never be added to any instructions.
326      REG_NO_CONFLICT means there is no conflict *after this insn*
327    between the register in the note and the destination of this insn.
328      REG_UNUSED identifies a register set in this insn and never used.
329      REG_CC_SETTER and REG_CC_USER link a pair of insns that set and use
330    CC0, respectively.  Normally, these are required to be consecutive insns,
331    but we permit putting a cc0-setting insn in the delay slot of a branch
332    as long as only one copy of the insn exists.  In that case, these notes
333    point from one to the other to allow code generation to determine what
334    any require information and to properly update CC_STATUS.
335      REG_LABEL points to a CODE_LABEL.  Used by non-JUMP_INSNs to
336    say that the CODE_LABEL contained in the REG_LABEL note is used
337    by the insn.
338      REG_DEP_ANTI is used in LOG_LINKS which represent anti (write after read)
339    dependencies.  REG_DEP_OUTPUT is used in LOG_LINKS which represent output
340    (write after write) dependencies.  Data dependencies, which are the only
341    type of LOG_LINK created by flow, are represented by a 0 reg note kind.  */
342
343 #define REG_NOTES(INSN) ((INSN)->fld[6].rtx)
344
345 /* Don't forget to change reg_note_name in rtl.c.  */
346 enum reg_note { REG_DEAD = 1, REG_INC = 2, REG_EQUIV = 3, REG_WAS_0 = 4,
347                 REG_EQUAL = 5, REG_RETVAL = 6, REG_LIBCALL = 7,
348                 REG_NONNEG = 8, REG_NO_CONFLICT = 9, REG_UNUSED = 10,
349                 REG_CC_SETTER = 11, REG_CC_USER = 12, REG_LABEL = 13,
350                 REG_DEP_ANTI = 14, REG_DEP_OUTPUT = 15 };
351
352 /* Define macros to extract and insert the reg-note kind in an EXPR_LIST.  */
353 #define REG_NOTE_KIND(LINK) ((enum reg_note) GET_MODE (LINK))
354 #define PUT_REG_NOTE_KIND(LINK,KIND) PUT_MODE(LINK, (enum machine_mode) (KIND))
355
356 /* Names for REG_NOTE's in EXPR_LIST insn's.  */
357
358 extern char *reg_note_name[];
359 #define GET_REG_NOTE_NAME(MODE) (reg_note_name[(int)(MODE)])
360
361 /* This field is only present on CALL_INSNs.  It holds a chain of EXPR_LIST of
362    USE and CLOBBER expressions.
363      USE expressions list the registers filled with arguments that
364    are passed to the function.
365      CLOBBER expressions document the registers explicitly clobbered
366    by this CALL_INSN.
367      Pseudo registers can not be mentioned in this list.  */
368 #define CALL_INSN_FUNCTION_USAGE(INSN)  ((INSN)->fld[7].rtx)
369
370 /* The label-number of a code-label.  The assembler label
371    is made from `L' and the label-number printed in decimal.
372    Label numbers are unique in a compilation.  */
373 #define CODE_LABEL_NUMBER(INSN) ((INSN)->fld[3].rtint)
374
375 #define LINE_NUMBER NOTE
376
377 /* In a NOTE that is a line number, this is a string for the file name
378    that the line is in.  We use the same field to record block numbers
379    temporarily in NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes.
380    (We avoid lots of casts between ints and pointers if we use a
381    different macro for the bock number.)  */
382
383 #define NOTE_SOURCE_FILE(INSN)  ((INSN)->fld[3].rtstr)
384 #define NOTE_BLOCK_NUMBER(INSN) ((INSN)->fld[3].rtint)
385
386 /* In a NOTE that is a line number, this is the line number.
387    Other kinds of NOTEs are identified by negative numbers here.  */
388 #define NOTE_LINE_NUMBER(INSN) ((INSN)->fld[4].rtint)
389
390 /* Codes that appear in the NOTE_LINE_NUMBER field
391    for kinds of notes that are not line numbers.
392
393    Notice that we do not try to use zero here for any of
394    the special note codes because sometimes the source line
395    actually can be zero!  This happens (for example) when we
396    are generating code for the per-translation-unit constructor
397    and destructor routines for some C++ translation unit.
398
399    If you should change any of the following values, or if you
400    should add a new value here, don't forget to change the
401    note_insn_name array in rtl.c.  */
402
403 /* This note is used to get rid of an insn
404    when it isn't safe to patch the insn out of the chain.  */
405 #define NOTE_INSN_DELETED -1
406 #define NOTE_INSN_BLOCK_BEG -2
407 #define NOTE_INSN_BLOCK_END -3
408 #define NOTE_INSN_LOOP_BEG -4
409 #define NOTE_INSN_LOOP_END -5
410 /* This kind of note is generated at the end of the function body,
411    just before the return insn or return label.
412    In an optimizing compilation it is deleted by the first jump optimization,
413    after enabling that optimizer to determine whether control can fall
414    off the end of the function body without a return statement.  */
415 #define NOTE_INSN_FUNCTION_END -6
416 /* This kind of note is generated just after each call to `setjmp', et al.  */
417 #define NOTE_INSN_SETJMP -7
418 /* Generated at the place in a loop that `continue' jumps to.  */
419 #define NOTE_INSN_LOOP_CONT -8
420 /* Generated at the start of a duplicated exit test.  */
421 #define NOTE_INSN_LOOP_VTOP -9
422 /* This marks the point immediately after the last prologue insn.  */
423 #define NOTE_INSN_PROLOGUE_END -10
424 /* This marks the point immediately prior to the first epilogue insn.  */
425 #define NOTE_INSN_EPILOGUE_BEG -11
426 /* Generated in place of user-declared labels when they are deleted.  */
427 #define NOTE_INSN_DELETED_LABEL -12
428 /* This note indicates the start of the real body of the function,
429    i.e. the point just after all of the parms have been moved into
430    their homes, etc.  */
431 #define NOTE_INSN_FUNCTION_BEG -13
432
433
434 #if 0 /* These are not used, and I don't know what they were for. --rms.  */
435 #define NOTE_DECL_NAME(INSN) ((INSN)->fld[3].rtstr)
436 #define NOTE_DECL_CODE(INSN) ((INSN)->fld[4].rtint)
437 #define NOTE_DECL_RTL(INSN) ((INSN)->fld[5].rtx)
438 #define NOTE_DECL_IDENTIFIER(INSN) ((INSN)->fld[6].rtint)
439 #define NOTE_DECL_TYPE(INSN) ((INSN)->fld[7].rtint)
440 #endif /* 0 */
441
442 /* Names for NOTE insn's other than line numbers.  */
443
444 extern char *note_insn_name[];
445 #define GET_NOTE_INSN_NAME(NOTE_CODE) (note_insn_name[-(NOTE_CODE)])
446
447 /* The name of a label, in case it corresponds to an explicit label
448    in the input source code.  */
449 #define LABEL_NAME(LABEL) ((LABEL)->fld[4].rtstr)
450
451 /* In jump.c, each label contains a count of the number
452    of LABEL_REFs that point at it, so unused labels can be deleted.  */
453 #define LABEL_NUSES(LABEL) ((LABEL)->fld[5].rtint)
454
455 /* The rest is used instead of the above, in a CODE_LABEL,
456    if bytecode is being output.
457    We make the slightly klugy assumption that a LABEL has enough slots
458    to hold these things.  That happens to be true.  */
459
460 /* For static or external objects.  */
461 #define BYTECODE_LABEL(X) (XEXP ((X), 0))
462
463 /* For goto labels inside bytecode functions.  */
464 #define BYTECODE_BC_LABEL(X) (*(struct bc_label **) &XEXP ((X), 1))
465
466 /* In jump.c, each JUMP_INSN can point to a label that it can jump to,
467    so that if the JUMP_INSN is deleted, the label's LABEL_NUSES can
468    be decremented and possibly the label can be deleted.  */
469 #define JUMP_LABEL(INSN)   ((INSN)->fld[7].rtx)
470
471 /* Once basic blocks are found in flow.c,
472    each CODE_LABEL starts a chain that goes through
473    all the LABEL_REFs that jump to that label.
474    The chain eventually winds up at the CODE_LABEL; it is circular.  */
475 #define LABEL_REFS(LABEL) ((LABEL)->fld[5].rtx)
476 \f
477 /* This is the field in the LABEL_REF through which the circular chain
478    of references to a particular label is linked.
479    This chain is set up in flow.c.  */
480
481 #define LABEL_NEXTREF(REF) ((REF)->fld[1].rtx)
482
483 /* Once basic blocks are found in flow.c,
484    Each LABEL_REF points to its containing instruction with this field.  */
485
486 #define CONTAINING_INSN(RTX) ((RTX)->fld[2].rtx)
487
488 /* For a REG rtx, REGNO extracts the register number.  */
489
490 #define REGNO(RTX) ((RTX)->fld[0].rtint)
491
492 /* For a REG rtx, REG_FUNCTION_VALUE_P is nonzero if the reg
493    is the current function's return value.  */
494
495 #define REG_FUNCTION_VALUE_P(RTX) ((RTX)->integrated)
496
497 /* 1 in a REG rtx if it corresponds to a variable declared by the user.  */
498 #define REG_USERVAR_P(RTX) ((RTX)->volatil)
499
500 /* For a CONST_INT rtx, INTVAL extracts the integer.  */
501
502 #define INTVAL(RTX) ((RTX)->fld[0].rtwint)
503
504 /* For a SUBREG rtx, SUBREG_REG extracts the value we want a subreg of.
505    SUBREG_WORD extracts the word-number.  */
506
507 #define SUBREG_REG(RTX) ((RTX)->fld[0].rtx)
508 #define SUBREG_WORD(RTX) ((RTX)->fld[1].rtint)
509
510 /* 1 if the REG contained in SUBREG_REG is already known to be
511    sign- or zero-extended from the mode of the SUBREG to the mode of
512    the reg.  SUBREG_PROMOTED_UNSIGNED_P gives the signedness of the
513    extension.  
514
515    When used as a LHS, is means that this extension must be done
516    when assigning to SUBREG_REG.  */
517
518 #define SUBREG_PROMOTED_VAR_P(RTX) ((RTX)->in_struct)
519 #define SUBREG_PROMOTED_UNSIGNED_P(RTX) ((RTX)->unchanging)
520
521 /* Access various components of an ASM_OPERANDS rtx.  */
522
523 #define ASM_OPERANDS_TEMPLATE(RTX) XSTR ((RTX), 0)
524 #define ASM_OPERANDS_OUTPUT_CONSTRAINT(RTX) XSTR ((RTX), 1)
525 #define ASM_OPERANDS_OUTPUT_IDX(RTX) XINT ((RTX), 2)
526 #define ASM_OPERANDS_INPUT_VEC(RTX) XVEC ((RTX), 3)
527 #define ASM_OPERANDS_INPUT_CONSTRAINT_VEC(RTX) XVEC ((RTX), 4)
528 #define ASM_OPERANDS_INPUT(RTX, N) XVECEXP ((RTX), 3, (N))
529 #define ASM_OPERANDS_INPUT_LENGTH(RTX) XVECLEN ((RTX), 3)
530 #define ASM_OPERANDS_INPUT_CONSTRAINT(RTX, N) XSTR (XVECEXP ((RTX), 4, (N)), 0)
531 #define ASM_OPERANDS_INPUT_MODE(RTX, N) GET_MODE (XVECEXP ((RTX), 4, (N)))
532 #define ASM_OPERANDS_SOURCE_FILE(RTX) XSTR ((RTX), 5)
533 #define ASM_OPERANDS_SOURCE_LINE(RTX) XINT ((RTX), 6)
534
535 /* For a MEM rtx, 1 if it's a volatile reference.
536    Also in an ASM_OPERANDS rtx.  */
537 #define MEM_VOLATILE_P(RTX) ((RTX)->volatil)
538
539 /* For a MEM rtx, 1 if it refers to a structure or union component.  */
540 #define MEM_IN_STRUCT_P(RTX) ((RTX)->in_struct)
541
542 /* For a LABEL_REF, 1 means that this reference is to a label outside the
543    loop containing the reference.  */
544 #define LABEL_OUTSIDE_LOOP_P(RTX) ((RTX)->in_struct)
545
546 /* For a LABEL_REF, 1 means it is for a nonlocal label.  */
547 /* Likewise in an EXPR_LIST for a REG_LABEL note.  */
548 #define LABEL_REF_NONLOCAL_P(RTX) ((RTX)->volatil)
549
550 /* For a CODE_LABEL, 1 means always consider this label to be needed.  */
551 #define LABEL_PRESERVE_P(RTX) ((RTX)->in_struct)
552
553 /* For a REG, 1 means the register is used only in an exit test of a loop.  */
554 #define REG_LOOP_TEST_P(RTX) ((RTX)->in_struct)
555
556 /* During sched, for an insn, 1 means that the insn must be scheduled together
557    with the preceding insn.  */
558 #define SCHED_GROUP_P(INSN) ((INSN)->in_struct)
559
560 /* During sched, for the LOG_LINKS of an insn, these cache the adjusted
561    cost of the dependence link.  The cost of executing an instruction
562    may vary based on how the results are used.  LINK_COST_ZERO is 1 when
563    the cost through the link varies and is unchanged (i.e., the link has
564    zero additional cost).  LINK_COST_FREE is 1 when the cost through the
565    link is zero (i.e., the link makes the cost free).  In other cases,
566    the adjustment to the cost is recomputed each time it is needed.  */
567 #define LINK_COST_ZERO(X) ((X)->jump)
568 #define LINK_COST_FREE(X) ((X)->call)
569
570 /* For a SET rtx, SET_DEST is the place that is set
571    and SET_SRC is the value it is set to.  */
572 #define SET_DEST(RTX) ((RTX)->fld[0].rtx)
573 #define SET_SRC(RTX) ((RTX)->fld[1].rtx)
574
575 /* For a TRAP_IF rtx, TRAP_CONDITION is an expression.  */
576 #define TRAP_CONDITION(RTX) ((RTX)->fld[0].rtx)
577
578 /* 1 in a SYMBOL_REF if it addresses this function's constants pool.  */
579 #define CONSTANT_POOL_ADDRESS_P(RTX) ((RTX)->unchanging)
580
581 /* Flag in a SYMBOL_REF for machine-specific purposes.  */
582 #define SYMBOL_REF_FLAG(RTX) ((RTX)->volatil)
583
584 /* 1 means a SYMBOL_REF has been the library function in emit_library_call.  */
585 #define SYMBOL_REF_USED(RTX) ((RTX)->used)
586
587 /* For an INLINE_HEADER rtx, FIRST_FUNCTION_INSN is the first insn
588    of the function that is not involved in copying parameters to
589    pseudo-registers.  FIRST_PARM_INSN is the very first insn of
590    the function, including the parameter copying.
591    We keep this around in case we must splice
592    this function into the assembly code at the end of the file.
593    FIRST_LABELNO is the first label number used by the function (inclusive).
594    LAST_LABELNO is the last label used by the function (exclusive).
595    MAX_REGNUM is the largest pseudo-register used by that function.
596    FUNCTION_ARGS_SIZE is the size of the argument block in the stack.
597    POPS_ARGS is the number of bytes of input arguments popped by the function
598    STACK_SLOT_LIST is the list of stack slots.
599    FORCED_LABELS is the list of labels whose address was taken.
600    FUNCTION_FLAGS are where single-bit flags are saved.
601    OUTGOING_ARGS_SIZE is the size of the largest outgoing stack parameter list.
602    ORIGINAL_ARG_VECTOR is a vector of the original DECL_RTX values
603     for the function arguments.
604    ORIGINAL_DECL_INITIAL is a pointer to the original DECL_INITIAL for the
605     function.
606
607    We want this to lay down like an INSN.  The PREV_INSN field
608    is always NULL.  The NEXT_INSN field always points to the
609    first function insn of the function being squirreled away.  */
610
611 #define FIRST_FUNCTION_INSN(RTX) ((RTX)->fld[2].rtx)
612 #define FIRST_PARM_INSN(RTX) ((RTX)->fld[3].rtx)
613 #define FIRST_LABELNO(RTX) ((RTX)->fld[4].rtint)
614 #define LAST_LABELNO(RTX) ((RTX)->fld[5].rtint)
615 #define MAX_PARMREG(RTX) ((RTX)->fld[6].rtint)
616 #define MAX_REGNUM(RTX) ((RTX)->fld[7].rtint)
617 #define FUNCTION_ARGS_SIZE(RTX) ((RTX)->fld[8].rtint)
618 #define POPS_ARGS(RTX) ((RTX)->fld[9].rtint)
619 #define STACK_SLOT_LIST(RTX) ((RTX)->fld[10].rtx)
620 #define FORCED_LABELS(RTX) ((RTX)->fld[11].rtx)
621 #define FUNCTION_FLAGS(RTX) ((RTX)->fld[12].rtint)
622 #define OUTGOING_ARGS_SIZE(RTX) ((RTX)->fld[13].rtint)
623 #define ORIGINAL_ARG_VECTOR(RTX) ((RTX)->fld[14].rtvec)
624 #define ORIGINAL_DECL_INITIAL(RTX) ((RTX)->fld[15].rtx)
625
626 /* In FUNCTION_FLAGS we save some variables computed when emitting the code
627    for the function and which must be `or'ed into the current flag values when
628    insns from that function are being inlined.  */
629
630 /* These ought to be an enum, but non-ANSI compilers don't like that.  */
631 #define FUNCTION_FLAGS_CALLS_ALLOCA 01
632 #define FUNCTION_FLAGS_CALLS_SETJMP 02
633 #define FUNCTION_FLAGS_RETURNS_STRUCT 04
634 #define FUNCTION_FLAGS_RETURNS_PCC_STRUCT 010
635 #define FUNCTION_FLAGS_NEEDS_CONTEXT 020
636 #define FUNCTION_FLAGS_HAS_NONLOCAL_LABEL 040
637 #define FUNCTION_FLAGS_RETURNS_POINTER 0100
638 #define FUNCTION_FLAGS_USES_CONST_POOL 0200
639 #define FUNCTION_FLAGS_CALLS_LONGJMP 0400
640 #define FUNCTION_FLAGS_USES_PIC_OFFSET_TABLE 01000
641
642 /* Define a macro to look for REG_INC notes,
643    but save time on machines where they never exist.  */
644
645 /* Don't continue this line--convex cc version 4.1 would lose.  */
646 #if (defined (HAVE_PRE_INCREMENT) || defined (HAVE_PRE_DECREMENT) || defined (HAVE_POST_INCREMENT) || defined (HAVE_POST_DECREMENT))
647 #define FIND_REG_INC_NOTE(insn, reg) (find_reg_note ((insn), REG_INC, (reg)))
648 #else
649 #define FIND_REG_INC_NOTE(insn, reg) 0
650 #endif
651
652 /* Indicate whether the machine has any sort of auto increment addressing.
653    If not, we can avoid checking for REG_INC notes.  */
654
655 /* Don't continue this line--convex cc version 4.1 would lose.  */
656 #if (defined (HAVE_PRE_INCREMENT) || defined (HAVE_PRE_DECREMENT) || defined (HAVE_POST_INCREMENT) || defined (HAVE_POST_DECREMENT))
657 #define AUTO_INC_DEC
658 #endif
659 \f
660 /* Generally useful functions.  */
661
662 /* The following functions accept a wide integer argument.  Rather than
663    having to cast on every function call, we use a macro instead, that is
664    defined here and in tree.h.  */
665
666 #ifndef exact_log2
667 #define exact_log2(N) exact_log2_wide ((HOST_WIDE_INT) (N))
668 #define floor_log2(N) floor_log2_wide ((HOST_WIDE_INT) (N))
669 #endif
670
671 #define plus_constant(X,C) plus_constant_wide (X, (HOST_WIDE_INT) (C))
672
673 #define plus_constant_for_output(X,C)  \
674   plus_constant_for_output_wide (X, (HOST_WIDE_INT) (C))
675
676 extern rtx plus_constant_wide            PROTO((rtx, HOST_WIDE_INT));
677 extern rtx plus_constant_for_output_wide PROTO((rtx, HOST_WIDE_INT));
678
679 #define GEN_INT(N) gen_rtx (CONST_INT, VOIDmode, (HOST_WIDE_INT) (N))
680
681 extern rtx bc_gen_rtx ();
682
683 extern rtx gen_rtx                      PVPROTO((enum rtx_code,
684                                                  enum machine_mode, ...));
685 extern rtvec gen_rtvec                  PVPROTO((int, ...));
686
687 extern rtx read_rtx                     STDIO_PROTO((FILE *));
688
689 #if 0
690 /* At present, don't prototype xrealloc, since all of the callers don't
691    cast their pointers to char *, and all of the xrealloc's don't use
692    void * yet.  */
693 extern char *xmalloc                    PROTO((size_t));
694 extern char *xrealloc                   PROTO((void *, size_t));
695 #else
696 extern char *xmalloc ();
697 extern char *xrealloc ();
698 #endif
699
700 extern char *oballoc                    PROTO((int));
701 extern char *permalloc                  PROTO((int));
702 extern void free                        PROTO((void *));
703 extern rtx rtx_alloc                    PROTO((RTX_CODE));
704 extern rtvec rtvec_alloc                PROTO((int));
705 extern rtx find_reg_note                PROTO((rtx, enum reg_note, rtx));
706 extern rtx find_regno_note              PROTO((rtx, enum reg_note, int));
707 extern int find_reg_fusage              PROTO((rtx, enum rtx_code, rtx));
708 extern int find_regno_fusage            PROTO((rtx, enum rtx_code, int));
709 extern HOST_WIDE_INT get_integer_term   PROTO((rtx));
710 extern rtx get_related_value            PROTO((rtx));
711 extern rtx single_set                   PROTO((rtx));
712 extern rtx find_last_value              PROTO((rtx, rtx *, rtx));
713 extern rtx copy_rtx                     PROTO((rtx));
714 extern rtx copy_rtx_if_shared           PROTO((rtx));
715 extern rtx copy_most_rtx                PROTO((rtx, rtx));
716 extern rtx replace_rtx                  PROTO((rtx, rtx, rtx));
717 extern rtvec gen_rtvec_v                PROTO((int, rtx *));
718 extern rtx gen_reg_rtx                  PROTO((enum machine_mode));
719 extern rtx gen_label_rtx                PROTO((void));
720 extern rtx gen_inline_header_rtx        PROTO((rtx, rtx, int, int, int, int,
721                                                int, int, rtx, rtx, int, int,
722                                                rtvec, rtx));
723 extern rtx gen_lowpart_common           PROTO((enum machine_mode, rtx));
724 extern rtx gen_lowpart                  PROTO((enum machine_mode, rtx));
725 extern rtx gen_lowpart_if_possible      PROTO((enum machine_mode, rtx));
726 extern rtx gen_highpart                 PROTO((enum machine_mode, rtx));
727 extern rtx gen_realpart                 PROTO((enum machine_mode, rtx));
728 extern rtx gen_imagpart                 PROTO((enum machine_mode, rtx));
729 extern rtx operand_subword              PROTO((rtx, int, int, enum machine_mode));
730 extern rtx operand_subword_force        PROTO((rtx, int, enum machine_mode));
731 extern int subreg_lowpart_p             PROTO((rtx));
732 extern rtx make_safe_from               PROTO((rtx, rtx));
733 extern rtx memory_address               PROTO((enum machine_mode, rtx));
734 extern rtx get_insns                    PROTO((void));
735 extern rtx get_last_insn                PROTO((void));
736 extern rtx get_last_insn_anywhere       PROTO((void));
737 extern void start_sequence              PROTO((void));
738 extern void push_to_sequence            PROTO((rtx));
739 extern void end_sequence                PROTO((void));
740 extern rtx gen_sequence                 PROTO((void));
741 extern rtx immed_double_const           PROTO((HOST_WIDE_INT, HOST_WIDE_INT, enum machine_mode));
742 extern rtx force_const_mem              PROTO((enum machine_mode, rtx));
743 extern rtx force_reg                    PROTO((enum machine_mode, rtx));
744 extern rtx get_pool_constant            PROTO((rtx));
745 extern enum machine_mode get_pool_mode  PROTO((rtx));
746 extern int get_pool_offset              PROTO((rtx));
747 extern rtx simplify_subtraction         PROTO((rtx));
748 extern rtx assign_stack_local           PROTO((enum machine_mode, int, int));
749 extern rtx assign_stack_temp            PROTO((enum machine_mode, int, int));
750 extern rtx protect_from_queue           PROTO((rtx, int));
751 extern void emit_queue                  PROTO((void));
752 extern rtx emit_move_insn               PROTO((rtx, rtx));
753 extern rtx emit_insn_before             PROTO((rtx, rtx));
754 extern rtx emit_jump_insn_before        PROTO((rtx, rtx));
755 extern rtx emit_call_insn_before        PROTO((rtx, rtx));
756 extern rtx emit_barrier_before          PROTO((rtx));
757 extern rtx emit_note_before             PROTO((int, rtx));
758 extern rtx emit_insn_after              PROTO((rtx, rtx));
759 extern rtx emit_jump_insn_after         PROTO((rtx, rtx));
760 extern rtx emit_barrier_after           PROTO((rtx));
761 extern rtx emit_label_after             PROTO((rtx, rtx));
762 extern rtx emit_note_after              PROTO((int, rtx));
763 extern rtx emit_line_note_after         PROTO((char *, int, rtx));
764 extern rtx emit_insn                    PROTO((rtx));
765 extern rtx emit_insns                   PROTO((rtx));
766 extern rtx emit_insns_before            PROTO((rtx, rtx));
767 extern rtx emit_insns_after             PROTO((rtx, rtx));
768 extern rtx emit_jump_insn               PROTO((rtx));
769 extern rtx emit_call_insn               PROTO((rtx));
770 extern rtx emit_label                   PROTO((rtx));
771 extern rtx emit_barrier                 PROTO((void));
772 extern rtx emit_line_note               PROTO((char *, int));
773 extern rtx emit_note                    PROTO((char *, int));
774 extern rtx emit_line_note_force         PROTO((char *, int));
775 extern rtx make_insn_raw                PROTO((rtx));
776 extern rtx previous_insn                PROTO((rtx));
777 extern rtx next_insn                    PROTO((rtx));
778 extern rtx prev_nonnote_insn            PROTO((rtx));
779 extern rtx next_nonnote_insn            PROTO((rtx));
780 extern rtx prev_real_insn               PROTO((rtx));
781 extern rtx next_real_insn               PROTO((rtx));
782 extern rtx prev_active_insn             PROTO((rtx));
783 extern rtx next_active_insn             PROTO((rtx));
784 extern rtx prev_label                   PROTO((rtx));
785 extern rtx next_label                   PROTO((rtx));
786 extern rtx next_cc0_user                PROTO((rtx));
787 extern rtx prev_cc0_setter              PROTO((rtx));
788 extern rtx reg_set_last                 PROTO((rtx, rtx));
789 extern rtx next_nondeleted_insn         PROTO((rtx));
790 extern enum rtx_code reverse_condition  PROTO((enum rtx_code));
791 extern enum rtx_code swap_condition     PROTO((enum rtx_code));
792 extern enum rtx_code unsigned_condition PROTO((enum rtx_code));
793 extern enum rtx_code signed_condition   PROTO((enum rtx_code));
794 extern rtx find_equiv_reg               PROTO((rtx, rtx, enum reg_class, int, short *, int, enum machine_mode));
795 extern rtx squeeze_notes                PROTO((rtx, rtx));
796 extern rtx delete_insn                  PROTO((rtx));
797 extern void delete_jump                 PROTO((rtx));
798 extern rtx get_label_before             PROTO((rtx));
799 extern rtx get_label_after              PROTO((rtx));
800 extern rtx follow_jumps                 PROTO((rtx));
801 extern rtx adj_offsettable_operand      PROTO((rtx, int));
802 extern rtx try_split                    PROTO((rtx, rtx, int));
803 extern rtx split_insns                  PROTO((rtx, rtx));
804 extern rtx simplify_unary_operation     PROTO((enum rtx_code, enum machine_mode, rtx, enum machine_mode));
805 extern rtx simplify_binary_operation    PROTO((enum rtx_code, enum machine_mode, rtx, rtx));
806 extern rtx simplify_ternary_operation   PROTO((enum rtx_code, enum machine_mode, enum machine_mode, rtx, rtx, rtx));
807 extern rtx simplify_relational_operation PROTO((enum rtx_code, enum machine_mode, rtx, rtx));
808 extern rtx nonlocal_label_rtx_list      PROTO((void));
809 extern rtx gen_move_insn                PROTO((rtx, rtx));
810 extern rtx gen_jump                     PROTO((rtx));
811 extern rtx gen_beq                      PROTO((rtx));
812 extern rtx gen_bge                      PROTO((rtx));
813 extern rtx gen_ble                      PROTO((rtx));
814 extern rtx eliminate_constant_term      PROTO((rtx, rtx *));
815 extern rtx expand_complex_abs           PROTO((enum machine_mode, rtx, rtx, int));
816 extern enum machine_mode choose_hard_reg_mode PROTO((int, int));
817
818 /* Maximum number of parallel sets and clobbers in any insn in this fn.
819    Always at least 3, since the combiner could put that many togetherm
820    and we want this to remain correct for all the remaining passes.  */
821
822 extern int max_parallel;
823
824 extern int asm_noperands                PROTO((rtx));
825 extern char *decode_asm_operands        PROTO((rtx, rtx *, rtx **, char **, enum machine_mode *));
826
827 extern enum reg_class reg_preferred_class PROTO((int));
828 extern enum reg_class reg_alternate_class PROTO((int));
829
830 extern rtx get_first_nonparm_insn       PROTO((void));
831
832 /* Standard pieces of rtx, to be substituted directly into things.  */
833 extern rtx pc_rtx;
834 extern rtx cc0_rtx;
835 extern rtx const0_rtx;
836 extern rtx const1_rtx;
837 extern rtx const2_rtx;
838 extern rtx constm1_rtx;
839 extern rtx const_true_rtx;
840
841 extern rtx const_tiny_rtx[3][(int) MAX_MACHINE_MODE];
842
843 /* Returns a constant 0 rtx in mode MODE.  Integer modes are treated the 
844    same as VOIDmode.  */
845
846 #define CONST0_RTX(MODE) (const_tiny_rtx[0][(int) (MODE)])
847
848 /* Likewise, for the constants 1 and 2.  */
849
850 #define CONST1_RTX(MODE) (const_tiny_rtx[1][(int) (MODE)])
851 #define CONST2_RTX(MODE) (const_tiny_rtx[2][(int) (MODE)])
852
853 /* All references to certain hard regs, except those created
854    by allocating pseudo regs into them (when that's possible),
855    go through these unique rtx objects.  */
856 extern rtx stack_pointer_rtx;
857 extern rtx frame_pointer_rtx;
858 extern rtx hard_frame_pointer_rtx;
859 extern rtx arg_pointer_rtx;
860 extern rtx pic_offset_table_rtx;
861 extern rtx struct_value_rtx;
862 extern rtx struct_value_incoming_rtx;
863 extern rtx static_chain_rtx;
864 extern rtx static_chain_incoming_rtx;
865
866 /* If HARD_FRAME_POINTER_REGNUM is defined, then a special dummy reg
867    is used to represent the frame pointer.  This is because the
868    hard frame pointer and the automatic variables are separated by an amount
869    that cannot be determined until after register allocation.  We can assume
870    that in this case ELIMINABLE_REGS will be defined, one action of which
871    will be to eliminate FRAME_POINTER_REGNUM into HARD_FRAME_POINTER_REGNUM. */
872 #ifndef HARD_FRAME_POINTER_REGNUM
873 #define HARD_FRAME_POINTER_REGNUM FRAME_POINTER_REGNUM
874 #endif
875
876 /* Virtual registers are used during RTL generation to refer to locations into
877    the stack frame when the actual location isn't known until RTL generation
878    is complete.  The routine instantiate_virtual_regs replaces these with
879    the proper value, which is normally {frame,arg,stack}_pointer_rtx plus
880    a constant.  */
881
882 #define FIRST_VIRTUAL_REGISTER  (FIRST_PSEUDO_REGISTER)
883
884 /* This points to the first word of the incoming arguments passed on the stack,
885    either by the caller or by the callee when pretending it was passed by the
886    caller.  */
887
888 extern rtx virtual_incoming_args_rtx;
889
890 #define VIRTUAL_INCOMING_ARGS_REGNUM    (FIRST_VIRTUAL_REGISTER)
891
892 /* If FRAME_GROWS_DOWNWARD, this points to immediately above the first
893    variable on the stack.  Otherwise, it points to the first variable on
894    the stack.  */
895
896 extern rtx virtual_stack_vars_rtx;
897
898 #define VIRTUAL_STACK_VARS_REGNUM       ((FIRST_VIRTUAL_REGISTER) + 1)
899
900 /* This points to the location of dynamically-allocated memory on the stack
901    immediately after the stack pointer has been adjusted by the amount
902    desired.  */
903
904 extern rtx virtual_stack_dynamic_rtx;
905
906 #define VIRTUAL_STACK_DYNAMIC_REGNUM    ((FIRST_VIRTUAL_REGISTER) + 2)
907
908 /* This points to the location in the stack at which outgoing arguments should
909    be written when the stack is pre-pushed (arguments pushed using push
910    insns always use sp).  */
911
912 extern rtx virtual_outgoing_args_rtx;
913
914 #define VIRTUAL_OUTGOING_ARGS_REGNUM    ((FIRST_VIRTUAL_REGISTER) + 3)
915
916 #define LAST_VIRTUAL_REGISTER   ((FIRST_VIRTUAL_REGISTER) + 3)
917
918 extern rtx find_next_ref                PROTO((rtx, rtx));
919 extern rtx *find_single_use             PROTO((rtx, rtx, rtx *));
920
921 /* It is hard to write the prototype for expand_expr, since it needs
922    expr.h to be included for the enumeration.  */
923
924 extern rtx expand_expr ();
925
926 extern rtx output_constant_def          PROTO((union tree_node *));
927 extern rtx immed_real_const             PROTO((union tree_node *));
928 extern union tree_node *make_tree       PROTO((union tree_node *, rtx));
929
930 /* Abort routines */
931 extern void fatal_insn_not_found        PROTO((rtx));
932 extern void fatal_insn                  PROTO((char *, rtx));
933
934 /* Define a default value for STORE_FLAG_VALUE.  */
935
936 #ifndef STORE_FLAG_VALUE
937 #define STORE_FLAG_VALUE 1
938 #endif
939
940 /* Nonzero after end of reload pass.
941    Set to 1 or 0 by toplev.c.  */
942
943 extern int reload_completed;
944
945 /* Set to 1 while reload_as_needed is operating.
946    Required by some machines to handle any generated moves differently.  */
947
948 extern int reload_in_progress;
949
950 /* If this is nonzero, we do not bother generating VOLATILE
951    around volatile memory references, and we are willing to
952    output indirect addresses.  If cse is to follow, we reject
953    indirect addresses so a useful potential cse is generated;
954    if it is used only once, instruction combination will produce
955    the same indirect address eventually.  */
956 extern int cse_not_expected;
957
958 /* Indexed by pseudo register number, gives the rtx for that pseudo.
959    Allocated in parallel with regno_pointer_flag.  */
960 extern rtx *regno_reg_rtx;
961
962 /* Translates rtx code to tree code, for those codes needed by
963    REAL_ARITHMETIC.  The function returns an int because the caller may not
964    know what `enum tree_code' means.  */
965
966 extern int rtx_to_tree_code     PROTO((enum rtx_code));