oops - omitted from previous delta fixing UNIQUE_SECTION
[official-gcc.git] / gcc / expr.h
blob95c694210ce788057d4e7edfa04c5d236f736191
1 /* Definitions for code generation pass of GNU compiler.
2 Copyright (C) 1987, 91-99, 2000 Free Software Foundation, Inc.
4 This file is part of GNU CC.
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.
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.
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. */
21 /* The default branch cost is 1. */
22 #ifndef BRANCH_COST
23 #define BRANCH_COST 1
24 #endif
26 /* Macros to access the slots of a QUEUED rtx.
27 Here rather than in rtl.h because only the expansion pass
28 should ever encounter a QUEUED. */
30 /* The variable for which an increment is queued. */
31 #define QUEUED_VAR(P) XEXP (P, 0)
32 /* If the increment has been emitted, this is the insn
33 that does the increment. It is zero before the increment is emitted.
34 If more than one insn is emitted, this is the first insn. */
35 #define QUEUED_INSN(P) XEXP (P, 1)
36 /* If a pre-increment copy has been generated, this is the copy
37 (it is a temporary reg). Zero if no copy made yet. */
38 #define QUEUED_COPY(P) XEXP (P, 2)
39 /* This is the body to use for the insn to do the increment.
40 It is used to emit the increment. */
41 #define QUEUED_BODY(P) XEXP (P, 3)
42 /* Next QUEUED in the queue. */
43 #define QUEUED_NEXT(P) XEXP (P, 4)
45 /* This is the 4th arg to `expand_expr'.
46 EXPAND_SUM means it is ok to return a PLUS rtx or MULT rtx.
47 EXPAND_INITIALIZER is similar but also record any labels on forced_labels.
48 EXPAND_CONST_ADDRESS means it is ok to return a MEM whose address
49 is a constant that is not a legitimate address.
50 EXPAND_MEMORY_USE_* are explained below. */
51 enum expand_modifier {EXPAND_NORMAL, EXPAND_SUM,
52 EXPAND_CONST_ADDRESS, EXPAND_INITIALIZER,
53 EXPAND_MEMORY_USE_WO, EXPAND_MEMORY_USE_RW,
54 EXPAND_MEMORY_USE_BAD, EXPAND_MEMORY_USE_DONT};
56 /* Argument for chkr_* functions.
57 MEMORY_USE_RO: the pointer reads memory.
58 MEMORY_USE_WO: the pointer writes to memory.
59 MEMORY_USE_RW: the pointer modifies memory (ie it reads and writes). An
60 example is (*ptr)++
61 MEMORY_USE_BAD: use this if you don't know the behavior of the pointer, or
62 if you know there are no pointers. Using an INDIRECT_REF
63 with MEMORY_USE_BAD will abort.
64 MEMORY_USE_TW: just test for writing, without update. Special.
65 MEMORY_USE_DONT: the memory is neither read nor written. This is used by
66 '->' and '.'. */
67 enum memory_use_mode {MEMORY_USE_BAD = 0, MEMORY_USE_RO = 1,
68 MEMORY_USE_WO = 2, MEMORY_USE_RW = 3,
69 MEMORY_USE_TW = 6, MEMORY_USE_DONT = 99};
71 /* Prevent the compiler from deferring stack pops. See
72 inhibit_defer_pop for more information. */
73 #define NO_DEFER_POP (inhibit_defer_pop += 1)
75 /* Allow the compiler to defer stack pops. See inhibit_defer_pop for
76 more information. */
77 #define OK_DEFER_POP (inhibit_defer_pop -= 1)
79 #ifdef TREE_CODE /* Don't lose if tree.h not included. */
80 /* Structure to record the size of a sequence of arguments
81 as the sum of a tree-expression and a constant. */
83 struct args_size
85 HOST_WIDE_INT constant;
86 tree var;
88 #endif
90 /* Add the value of the tree INC to the `struct args_size' TO. */
92 #define ADD_PARM_SIZE(TO, INC) \
93 { tree inc = (INC); \
94 if (TREE_CODE (inc) == INTEGER_CST) \
95 (TO).constant += TREE_INT_CST_LOW (inc); \
96 else if ((TO).var == 0) \
97 (TO).var = inc; \
98 else \
99 (TO).var = size_binop (PLUS_EXPR, (TO).var, inc); }
101 #define SUB_PARM_SIZE(TO, DEC) \
102 { tree dec = (DEC); \
103 if (TREE_CODE (dec) == INTEGER_CST) \
104 (TO).constant -= TREE_INT_CST_LOW (dec); \
105 else if ((TO).var == 0) \
106 (TO).var = size_binop (MINUS_EXPR, integer_zero_node, dec); \
107 else \
108 (TO).var = size_binop (MINUS_EXPR, (TO).var, dec); }
110 /* Convert the implicit sum in a `struct args_size' into an rtx. */
111 #define ARGS_SIZE_RTX(SIZE) \
112 ((SIZE).var == 0 ? GEN_INT ((SIZE).constant) \
113 : expand_expr (size_binop (PLUS_EXPR, (SIZE).var, \
114 size_int ((SIZE).constant)), \
115 NULL_RTX, VOIDmode, EXPAND_MEMORY_USE_BAD))
117 /* Convert the implicit sum in a `struct args_size' into a tree. */
118 #define ARGS_SIZE_TREE(SIZE) \
119 ((SIZE).var == 0 ? size_int ((SIZE).constant) \
120 : size_binop (PLUS_EXPR, (SIZE).var, size_int ((SIZE).constant)))
122 /* Supply a default definition for FUNCTION_ARG_PADDING:
123 usually pad upward, but pad short args downward on
124 big-endian machines. */
126 enum direction {none, upward, downward}; /* Value has this type. */
128 #ifndef FUNCTION_ARG_PADDING
129 #define FUNCTION_ARG_PADDING(MODE, TYPE) \
130 (! BYTES_BIG_ENDIAN \
131 ? upward \
132 : (((MODE) == BLKmode \
133 ? ((TYPE) && TREE_CODE (TYPE_SIZE (TYPE)) == INTEGER_CST \
134 && int_size_in_bytes (TYPE) < (PARM_BOUNDARY / BITS_PER_UNIT)) \
135 : GET_MODE_BITSIZE (MODE) < PARM_BOUNDARY) \
136 ? downward : upward))
137 #endif
139 /* Supply a default definition for FUNCTION_ARG_BOUNDARY. Normally, we let
140 FUNCTION_ARG_PADDING, which also pads the length, handle any needed
141 alignment. */
143 #ifndef FUNCTION_ARG_BOUNDARY
144 #define FUNCTION_ARG_BOUNDARY(MODE, TYPE) PARM_BOUNDARY
145 #endif
147 /* Provide a default value for STRICT_ARGUMENT_NAMING. */
148 #ifndef STRICT_ARGUMENT_NAMING
149 #define STRICT_ARGUMENT_NAMING 0
150 #endif
152 /* Provide a default value for PRETEND_OUTGOING_VARARGS_NAMED. */
153 #ifdef SETUP_INCOMING_VARARGS
154 #ifndef PRETEND_OUTGOING_VARARGS_NAMED
155 #define PRETEND_OUTGOING_VARARGS_NAMED 1
156 #endif
157 #else
158 /* It is an error to define PRETEND_OUTGOING_VARARGS_NAMED without
159 defining SETUP_INCOMING_VARARGS. */
160 #define PRETEND_OUTGOING_VARARGS_NAMED 0
161 #endif
163 /* Nonzero if we do not know how to pass TYPE solely in registers.
164 We cannot do so in the following cases:
166 - if the type has variable size
167 - if the type is marked as addressable (it is required to be constructed
168 into the stack)
169 - if the padding and mode of the type is such that a copy into a register
170 would put it into the wrong part of the register.
172 Which padding can't be supported depends on the byte endianness.
174 A value in a register is implicitly padded at the most significant end.
175 On a big-endian machine, that is the lower end in memory.
176 So a value padded in memory at the upper end can't go in a register.
177 For a little-endian machine, the reverse is true. */
179 #ifndef MUST_PASS_IN_STACK
180 #define MUST_PASS_IN_STACK(MODE,TYPE) \
181 ((TYPE) != 0 \
182 && (TREE_CODE (TYPE_SIZE (TYPE)) != INTEGER_CST \
183 || TREE_ADDRESSABLE (TYPE) \
184 || ((MODE) == BLKmode \
185 && ! ((TYPE) != 0 && TREE_CODE (TYPE_SIZE (TYPE)) == INTEGER_CST \
186 && 0 == (int_size_in_bytes (TYPE) \
187 % (PARM_BOUNDARY / BITS_PER_UNIT))) \
188 && (FUNCTION_ARG_PADDING (MODE, TYPE) \
189 == (BYTES_BIG_ENDIAN ? upward : downward)))))
190 #endif
192 /* Nonzero if type TYPE should be returned in memory.
193 Most machines can use the following default definition. */
195 #ifndef RETURN_IN_MEMORY
196 #define RETURN_IN_MEMORY(TYPE) (TYPE_MODE (TYPE) == BLKmode)
197 #endif
199 /* Supply a default definition of STACK_SAVEAREA_MODE for emit_stack_save.
200 Normally move_insn, so Pmode stack pointer. */
202 #ifndef STACK_SAVEAREA_MODE
203 #define STACK_SAVEAREA_MODE(LEVEL) Pmode
204 #endif
206 /* Supply a default definition of STACK_SIZE_MODE for
207 allocate_dynamic_stack_space. Normally PLUS/MINUS, so word_mode. */
209 #ifndef STACK_SIZE_MODE
210 #define STACK_SIZE_MODE word_mode
211 #endif
213 /* Provide default values for the macros controlling stack checking. */
215 #ifndef STACK_CHECK_BUILTIN
216 #define STACK_CHECK_BUILTIN 0
217 #endif
219 /* The default interval is one page. */
220 #ifndef STACK_CHECK_PROBE_INTERVAL
221 #define STACK_CHECK_PROBE_INTERVAL 4096
222 #endif
224 /* The default is to do a store into the stack. */
225 #ifndef STACK_CHECK_PROBE_LOAD
226 #define STACK_CHECK_PROBE_LOAD 0
227 #endif
229 /* This value is arbitrary, but should be sufficient for most machines. */
230 #ifndef STACK_CHECK_PROTECT
231 #define STACK_CHECK_PROTECT (75 * UNITS_PER_WORD)
232 #endif
234 /* Make the maximum frame size be the largest we can and still only need
235 one probe per function. */
236 #ifndef STACK_CHECK_MAX_FRAME_SIZE
237 #define STACK_CHECK_MAX_FRAME_SIZE \
238 (STACK_CHECK_PROBE_INTERVAL - UNITS_PER_WORD)
239 #endif
241 /* This is arbitrary, but should be large enough everywhere. */
242 #ifndef STACK_CHECK_FIXED_FRAME_SIZE
243 #define STACK_CHECK_FIXED_FRAME_SIZE (4 * UNITS_PER_WORD)
244 #endif
246 /* Provide a reasonable default for the maximum size of an object to
247 allocate in the fixed frame. We may need to be able to make this
248 controllable by the user at some point. */
249 #ifndef STACK_CHECK_MAX_VAR_SIZE
250 #define STACK_CHECK_MAX_VAR_SIZE (STACK_CHECK_MAX_FRAME_SIZE / 100)
251 #endif
253 /* Optabs are tables saying how to generate insn bodies
254 for various machine modes and numbers of operands.
255 Each optab applies to one operation.
256 For example, add_optab applies to addition.
258 The insn_code slot is the enum insn_code that says how to
259 generate an insn for this operation on a particular machine mode.
260 It is CODE_FOR_nothing if there is no such insn on the target machine.
262 The `lib_call' slot is the name of the library function that
263 can be used to perform the operation.
265 A few optabs, such as move_optab and cmp_optab, are used
266 by special code. */
268 /* Everything that uses expr.h needs to define enum insn_code
269 but we don't list it in the Makefile dependencies just for that. */
270 #include "insn-codes.h"
272 typedef struct optab
274 enum rtx_code code;
275 struct {
276 enum insn_code insn_code;
277 rtx libfunc;
278 } handlers [NUM_MACHINE_MODES];
279 } * optab;
281 /* Given an enum insn_code, access the function to construct
282 the body of that kind of insn. */
283 #ifdef FUNCTION_CONVERSION_BUG
284 /* Some compilers fail to convert a function properly to a
285 pointer-to-function when used as an argument.
286 So produce the pointer-to-function directly.
287 Luckily, these compilers seem to work properly when you
288 call the pointer-to-function. */
289 #define GEN_FCN(CODE) (insn_data[(int) (CODE)].genfun)
290 #else
291 #define GEN_FCN(CODE) (*insn_data[(int) (CODE)].genfun)
292 #endif
294 /* Enumeration of valid indexes into optab_table. */
295 enum optab_index
297 OTI_add,
298 OTI_sub,
300 /* Signed and fp multiply */
301 OTI_smul,
302 /* Signed multiply, return high word */
303 OTI_smul_highpart,
304 OTI_umul_highpart,
305 /* Signed multiply with result one machine mode wider than args */
306 OTI_smul_widen,
307 OTI_umul_widen,
309 /* Signed divide */
310 OTI_sdiv,
311 /* Signed divide-and-remainder in one */
312 OTI_sdivmod,
313 OTI_udiv,
314 OTI_udivmod,
315 /* Signed remainder */
316 OTI_smod,
317 OTI_umod,
318 /* Optab for floating divide. */
319 OTI_flodiv,
320 /* Convert float to integer in float fmt */
321 OTI_ftrunc,
323 /* Logical and */
324 OTI_and,
325 /* Logical or */
326 OTI_ior,
327 /* Logical xor */
328 OTI_xor,
330 /* Arithmetic shift left */
331 OTI_ashl,
332 /* Logical shift right */
333 OTI_lshr,
334 /* Arithmetic shift right */
335 OTI_ashr,
336 /* Rotate left */
337 OTI_rotl,
338 /* Rotate right */
339 OTI_rotr,
340 /* Signed and floating-point minimum value */
341 OTI_smin,
342 /* Signed and floating-point maximum value */
343 OTI_smax,
344 /* Unsigned minimum value */
345 OTI_umin,
346 /* Unsigned maximum value */
347 OTI_umax,
349 /* Move instruction. */
350 OTI_mov,
351 /* Move, preserving high part of register. */
352 OTI_movstrict,
354 /* Unary operations */
355 /* Negation */
356 OTI_neg,
357 /* Abs value */
358 OTI_abs,
359 /* Bitwise not */
360 OTI_one_cmpl,
361 /* Find first bit set */
362 OTI_ffs,
363 /* Square root */
364 OTI_sqrt,
365 /* Sine */
366 OTI_sin,
367 /* Cosine */
368 OTI_cos,
370 /* Compare insn; two operands. */
371 OTI_cmp,
372 /* Used only for libcalls for unsigned comparisons. */
373 OTI_ucmp,
374 /* tst insn; compare one operand against 0 */
375 OTI_tst,
377 /* String length */
378 OTI_strlen,
380 /* Combined compare & jump/store flags/move operations. */
381 OTI_cbranch,
382 OTI_cmov,
383 OTI_cstore,
385 OTI_MAX
388 extern optab optab_table[OTI_MAX];
390 #define add_optab (optab_table[OTI_add])
391 #define sub_optab (optab_table[OTI_sub])
392 #define smul_optab (optab_table[OTI_smul])
393 #define smul_highpart_optab (optab_table[OTI_smul_highpart])
394 #define umul_highpart_optab (optab_table[OTI_umul_highpart])
395 #define smul_widen_optab (optab_table[OTI_smul_widen])
396 #define umul_widen_optab (optab_table[OTI_umul_widen])
397 #define sdiv_optab (optab_table[OTI_sdiv])
398 #define sdivmod_optab (optab_table[OTI_sdivmod])
399 #define udiv_optab (optab_table[OTI_udiv])
400 #define udivmod_optab (optab_table[OTI_udivmod])
401 #define smod_optab (optab_table[OTI_smod])
402 #define umod_optab (optab_table[OTI_umod])
403 #define flodiv_optab (optab_table[OTI_flodiv])
404 #define ftrunc_optab (optab_table[OTI_ftrunc])
405 #define and_optab (optab_table[OTI_and])
406 #define ior_optab (optab_table[OTI_ior])
407 #define xor_optab (optab_table[OTI_xor])
408 #define ashl_optab (optab_table[OTI_ashl])
409 #define lshr_optab (optab_table[OTI_lshr])
410 #define ashr_optab (optab_table[OTI_ashr])
411 #define rotl_optab (optab_table[OTI_rotl])
412 #define rotr_optab (optab_table[OTI_rotr])
413 #define smin_optab (optab_table[OTI_smin])
414 #define smax_optab (optab_table[OTI_smax])
415 #define umin_optab (optab_table[OTI_umin])
416 #define umax_optab (optab_table[OTI_umax])
418 #define mov_optab (optab_table[OTI_mov])
419 #define movstrict_optab (optab_table[OTI_movstrict])
421 #define neg_optab (optab_table[OTI_neg])
422 #define abs_optab (optab_table[OTI_abs])
423 #define one_cmpl_optab (optab_table[OTI_one_cmpl])
424 #define ffs_optab (optab_table[OTI_ffs])
425 #define sqrt_optab (optab_table[OTI_sqrt])
426 #define sin_optab (optab_table[OTI_sin])
427 #define cos_optab (optab_table[OTI_cos])
429 #define cmp_optab (optab_table[OTI_cmp])
430 #define ucmp_optab (optab_table[OTI_ucmp])
431 #define tst_optab (optab_table[OTI_tst])
433 #define strlen_optab (optab_table[OTI_strlen])
435 #define cbranch_optab (optab_table[OTI_cbranch])
436 #define cmov_optab (optab_table[OTI_cmov])
437 #define cstore_optab (optab_table[OTI_cstore])
439 /* Tables of patterns for extending one integer mode to another. */
440 extern enum insn_code extendtab[MAX_MACHINE_MODE][MAX_MACHINE_MODE][2];
442 /* Tables of patterns for converting between fixed and floating point. */
443 extern enum insn_code fixtab[NUM_MACHINE_MODES][NUM_MACHINE_MODES][2];
444 extern enum insn_code fixtrunctab[NUM_MACHINE_MODES][NUM_MACHINE_MODES][2];
445 extern enum insn_code floattab[NUM_MACHINE_MODES][NUM_MACHINE_MODES][2];
447 /* Contains the optab used for each rtx code. */
448 extern optab code_to_optab[NUM_RTX_CODE + 1];
450 /* Passed to expand_binop and expand_unop to say which options to try to use
451 if the requested operation can't be open-coded on the requisite mode.
452 Either OPTAB_LIB or OPTAB_LIB_WIDEN says try using a library call.
453 Either OPTAB_WIDEN or OPTAB_LIB_WIDEN says try using a wider mode.
454 OPTAB_MUST_WIDEN says try widening and don't try anything else. */
456 enum optab_methods
458 OPTAB_DIRECT,
459 OPTAB_LIB,
460 OPTAB_WIDEN,
461 OPTAB_LIB_WIDEN,
462 OPTAB_MUST_WIDEN
465 /* Enumeration of indexes into libfunc_table. */
466 enum libfunc_index
468 LTI_extendsfdf2,
469 LTI_extendsfxf2,
470 LTI_extendsftf2,
471 LTI_extenddfxf2,
472 LTI_extenddftf2,
474 LTI_truncdfsf2,
475 LTI_truncxfsf2,
476 LTI_trunctfsf2,
477 LTI_truncxfdf2,
478 LTI_trunctfdf2,
480 LTI_memcpy,
481 LTI_bcopy,
482 LTI_memcmp,
483 LTI_bcmp,
484 LTI_memset,
485 LTI_bzero,
487 LTI_throw,
488 LTI_rethrow,
489 LTI_sjthrow,
490 LTI_sjpopnthrow,
491 LTI_terminate,
492 LTI_setjmp,
493 LTI_longjmp,
494 LTI_eh_rtime_match,
496 LTI_eqhf2,
497 LTI_nehf2,
498 LTI_gthf2,
499 LTI_gehf2,
500 LTI_lthf2,
501 LTI_lehf2,
502 LTI_unordhf2,
504 LTI_eqsf2,
505 LTI_nesf2,
506 LTI_gtsf2,
507 LTI_gesf2,
508 LTI_ltsf2,
509 LTI_lesf2,
510 LTI_unordsf2,
512 LTI_eqdf2,
513 LTI_nedf2,
514 LTI_gtdf2,
515 LTI_gedf2,
516 LTI_ltdf2,
517 LTI_ledf2,
518 LTI_unorddf2,
520 LTI_eqxf2,
521 LTI_nexf2,
522 LTI_gtxf2,
523 LTI_gexf2,
524 LTI_ltxf2,
525 LTI_lexf2,
526 LTI_unordxf2,
528 LTI_eqtf2,
529 LTI_netf2,
530 LTI_gttf2,
531 LTI_getf2,
532 LTI_lttf2,
533 LTI_letf2,
534 LTI_unordtf2,
536 LTI_floatsisf,
537 LTI_floatdisf,
538 LTI_floattisf,
540 LTI_floatsidf,
541 LTI_floatdidf,
542 LTI_floattidf,
544 LTI_floatsixf,
545 LTI_floatdixf,
546 LTI_floattixf,
548 LTI_floatsitf,
549 LTI_floatditf,
550 LTI_floattitf,
552 LTI_fixsfsi,
553 LTI_fixsfdi,
554 LTI_fixsfti,
556 LTI_fixdfsi,
557 LTI_fixdfdi,
558 LTI_fixdfti,
560 LTI_fixxfsi,
561 LTI_fixxfdi,
562 LTI_fixxfti,
564 LTI_fixtfsi,
565 LTI_fixtfdi,
566 LTI_fixtfti,
568 LTI_fixunssfsi,
569 LTI_fixunssfdi,
570 LTI_fixunssfti,
572 LTI_fixunsdfsi,
573 LTI_fixunsdfdi,
574 LTI_fixunsdfti,
576 LTI_fixunsxfsi,
577 LTI_fixunsxfdi,
578 LTI_fixunsxfti,
580 LTI_fixunstfsi,
581 LTI_fixunstfdi,
582 LTI_fixunstfti,
584 LTI_chkr_check_addr,
585 LTI_chkr_set_right,
586 LTI_chkr_copy_bitmap,
587 LTI_chkr_check_exec,
588 LTI_chkr_check_str,
590 LTI_profile_function_entry,
591 LTI_profile_function_exit,
593 LTI_MAX
596 /* SYMBOL_REF rtx's for the library functions that are called
597 implicitly and not via optabs. */
598 extern rtx libfunc_table[LTI_MAX];
600 /* Accessor macros for libfunc_table. */
601 #define extendsfdf2_libfunc (libfunc_table[LTI_extendsfdf2])
602 #define extendsfxf2_libfunc (libfunc_table[LTI_extendsfxf2])
603 #define extendsftf2_libfunc (libfunc_table[LTI_extendsftf2])
604 #define extenddfxf2_libfunc (libfunc_table[LTI_extenddfxf2])
605 #define extenddftf2_libfunc (libfunc_table[LTI_extenddftf2])
607 #define truncdfsf2_libfunc (libfunc_table[LTI_truncdfsf2])
608 #define truncxfsf2_libfunc (libfunc_table[LTI_truncxfsf2])
609 #define trunctfsf2_libfunc (libfunc_table[LTI_trunctfsf2])
610 #define truncxfdf2_libfunc (libfunc_table[LTI_truncxfdf2])
611 #define trunctfdf2_libfunc (libfunc_table[LTI_trunctfdf2])
613 #define memcpy_libfunc (libfunc_table[LTI_memcpy])
614 #define bcopy_libfunc (libfunc_table[LTI_bcopy])
615 #define memcmp_libfunc (libfunc_table[LTI_memcmp])
616 #define bcmp_libfunc (libfunc_table[LTI_bcmp])
617 #define memset_libfunc (libfunc_table[LTI_memset])
618 #define bzero_libfunc (libfunc_table[LTI_bzero])
620 #define throw_libfunc (libfunc_table[LTI_throw])
621 #define rethrow_libfunc (libfunc_table[LTI_rethrow])
622 #define sjthrow_libfunc (libfunc_table[LTI_sjthrow])
623 #define sjpopnthrow_libfunc (libfunc_table[LTI_sjpopnthrow])
624 #define terminate_libfunc (libfunc_table[LTI_terminate])
625 #define setjmp_libfunc (libfunc_table[LTI_setjmp])
626 #define longjmp_libfunc (libfunc_table[LTI_longjmp])
627 #define eh_rtime_match_libfunc (libfunc_table[LTI_eh_rtime_match])
629 #define eqhf2_libfunc (libfunc_table[LTI_eqhf2])
630 #define nehf2_libfunc (libfunc_table[LTI_nehf2])
631 #define gthf2_libfunc (libfunc_table[LTI_gthf2])
632 #define gehf2_libfunc (libfunc_table[LTI_gehf2])
633 #define lthf2_libfunc (libfunc_table[LTI_lthf2])
634 #define lehf2_libfunc (libfunc_table[LTI_lehf2])
635 #define unordhf2_libfunc (libfunc_table[LTI_unordhf2])
637 #define eqsf2_libfunc (libfunc_table[LTI_eqsf2])
638 #define nesf2_libfunc (libfunc_table[LTI_nesf2])
639 #define gtsf2_libfunc (libfunc_table[LTI_gtsf2])
640 #define gesf2_libfunc (libfunc_table[LTI_gesf2])
641 #define ltsf2_libfunc (libfunc_table[LTI_ltsf2])
642 #define lesf2_libfunc (libfunc_table[LTI_lesf2])
643 #define unordsf2_libfunc (libfunc_table[LTI_unordsf2])
645 #define eqdf2_libfunc (libfunc_table[LTI_eqdf2])
646 #define nedf2_libfunc (libfunc_table[LTI_nedf2])
647 #define gtdf2_libfunc (libfunc_table[LTI_gtdf2])
648 #define gedf2_libfunc (libfunc_table[LTI_gedf2])
649 #define ltdf2_libfunc (libfunc_table[LTI_ltdf2])
650 #define ledf2_libfunc (libfunc_table[LTI_ledf2])
651 #define unorddf2_libfunc (libfunc_table[LTI_unorddf2])
653 #define eqxf2_libfunc (libfunc_table[LTI_eqxf2])
654 #define nexf2_libfunc (libfunc_table[LTI_nexf2])
655 #define gtxf2_libfunc (libfunc_table[LTI_gtxf2])
656 #define gexf2_libfunc (libfunc_table[LTI_gexf2])
657 #define ltxf2_libfunc (libfunc_table[LTI_ltxf2])
658 #define lexf2_libfunc (libfunc_table[LTI_lexf2])
659 #define unordxf2_libfunc (libfunc_table[LTI_unordxf2])
661 #define eqtf2_libfunc (libfunc_table[LTI_eqtf2])
662 #define netf2_libfunc (libfunc_table[LTI_netf2])
663 #define gttf2_libfunc (libfunc_table[LTI_gttf2])
664 #define getf2_libfunc (libfunc_table[LTI_getf2])
665 #define lttf2_libfunc (libfunc_table[LTI_lttf2])
666 #define letf2_libfunc (libfunc_table[LTI_letf2])
667 #define unordtf2_libfunc (libfunc_table[LTI_unordtf2])
669 #define floatsisf_libfunc (libfunc_table[LTI_floatsisf])
670 #define floatdisf_libfunc (libfunc_table[LTI_floatdisf])
671 #define floattisf_libfunc (libfunc_table[LTI_floattisf])
673 #define floatsidf_libfunc (libfunc_table[LTI_floatsidf])
674 #define floatdidf_libfunc (libfunc_table[LTI_floatdidf])
675 #define floattidf_libfunc (libfunc_table[LTI_floattidf])
677 #define floatsixf_libfunc (libfunc_table[LTI_floatsixf])
678 #define floatdixf_libfunc (libfunc_table[LTI_floatdixf])
679 #define floattixf_libfunc (libfunc_table[LTI_floattixf])
681 #define floatsitf_libfunc (libfunc_table[LTI_floatsitf])
682 #define floatditf_libfunc (libfunc_table[LTI_floatditf])
683 #define floattitf_libfunc (libfunc_table[LTI_floattitf])
685 #define fixsfsi_libfunc (libfunc_table[LTI_fixsfsi])
686 #define fixsfdi_libfunc (libfunc_table[LTI_fixsfdi])
687 #define fixsfti_libfunc (libfunc_table[LTI_fixsfti])
689 #define fixdfsi_libfunc (libfunc_table[LTI_fixdfsi])
690 #define fixdfdi_libfunc (libfunc_table[LTI_fixdfdi])
691 #define fixdfti_libfunc (libfunc_table[LTI_fixdfti])
693 #define fixxfsi_libfunc (libfunc_table[LTI_fixxfsi])
694 #define fixxfdi_libfunc (libfunc_table[LTI_fixxfdi])
695 #define fixxfti_libfunc (libfunc_table[LTI_fixxfti])
697 #define fixtfsi_libfunc (libfunc_table[LTI_fixtfsi])
698 #define fixtfdi_libfunc (libfunc_table[LTI_fixtfdi])
699 #define fixtfti_libfunc (libfunc_table[LTI_fixtfti])
701 #define fixunssfsi_libfunc (libfunc_table[LTI_fixunssfsi])
702 #define fixunssfdi_libfunc (libfunc_table[LTI_fixunssfdi])
703 #define fixunssfti_libfunc (libfunc_table[LTI_fixunssfti])
705 #define fixunsdfsi_libfunc (libfunc_table[LTI_fixunsdfsi])
706 #define fixunsdfdi_libfunc (libfunc_table[LTI_fixunsdfdi])
707 #define fixunsdfti_libfunc (libfunc_table[LTI_fixunsdfti])
709 #define fixunsxfsi_libfunc (libfunc_table[LTI_fixunsxfsi])
710 #define fixunsxfdi_libfunc (libfunc_table[LTI_fixunsxfdi])
711 #define fixunsxfti_libfunc (libfunc_table[LTI_fixunsxfti])
713 #define fixunstfsi_libfunc (libfunc_table[LTI_fixunstfsi])
714 #define fixunstfdi_libfunc (libfunc_table[LTI_fixunstfdi])
715 #define fixunstfti_libfunc (libfunc_table[LTI_fixunstfti])
717 #define chkr_check_addr_libfunc (libfunc_table[LTI_chkr_check_addr])
718 #define chkr_set_right_libfunc (libfunc_table[LTI_chkr_set_right])
719 #define chkr_copy_bitmap_libfunc (libfunc_table[LTI_chkr_copy_bitmap])
720 #define chkr_check_exec_libfunc (libfunc_table[LTI_chkr_check_exec])
721 #define chkr_check_str_libfunc (libfunc_table[LTI_chkr_check_str])
723 #define profile_function_entry_libfunc (libfunc_table[LTI_profile_function_entry])
724 #define profile_function_exit_libfunc (libfunc_table[LTI_profile_function_exit])
726 typedef rtx (*rtxfun) PARAMS ((rtx));
728 /* Indexed by the rtx-code for a conditional (eg. EQ, LT,...)
729 gives the gen_function to make a branch to test that condition. */
731 extern rtxfun bcc_gen_fctn[NUM_RTX_CODE];
733 /* Indexed by the rtx-code for a conditional (eg. EQ, LT,...)
734 gives the insn code to make a store-condition insn
735 to test that condition. */
737 extern enum insn_code setcc_gen_code[NUM_RTX_CODE];
739 #ifdef HAVE_conditional_move
740 /* Indexed by the machine mode, gives the insn code to make a conditional
741 move insn. */
743 extern enum insn_code movcc_gen_code[NUM_MACHINE_MODES];
744 #endif
746 /* This array records the insn_code of insns to perform block moves. */
747 extern enum insn_code movstr_optab[NUM_MACHINE_MODES];
749 /* This array records the insn_code of insns to perform block clears. */
750 extern enum insn_code clrstr_optab[NUM_MACHINE_MODES];
752 /* Define functions given in optabs.c. */
754 /* Expand a binary operation given optab and rtx operands. */
755 extern rtx expand_binop PARAMS ((enum machine_mode, optab, rtx, rtx, rtx,
756 int, enum optab_methods));
758 /* Expand a binary operation with both signed and unsigned forms. */
759 extern rtx sign_expand_binop PARAMS ((enum machine_mode, optab, optab, rtx,
760 rtx, rtx, int, enum optab_methods));
762 /* Generate code to perform an operation on two operands with two results. */
763 extern int expand_twoval_binop PARAMS ((optab, rtx, rtx, rtx, rtx, int));
765 /* Expand a unary arithmetic operation given optab rtx operand. */
766 extern rtx expand_unop PARAMS ((enum machine_mode, optab, rtx, rtx, int));
768 /* Expand the absolute value operation. */
769 extern rtx expand_abs PARAMS ((enum machine_mode, rtx, rtx, int));
771 /* Expand the complex absolute value operation. */
772 extern rtx expand_complex_abs PARAMS ((enum machine_mode, rtx, rtx, int));
774 /* Generate an instruction with a given INSN_CODE with an output and
775 an input. */
776 extern void emit_unop_insn PARAMS ((int, rtx, rtx, enum rtx_code));
778 /* Emit code to perform a series of operations on a multi-word quantity, one
779 word at a time. */
780 extern rtx emit_no_conflict_block PARAMS ((rtx, rtx, rtx, rtx, rtx));
782 /* Emit code to make a call to a constant function or a library call. */
783 extern void emit_libcall_block PARAMS ((rtx, rtx, rtx, rtx));
785 /* Emit one rtl instruction to store zero in specified rtx. */
786 extern void emit_clr_insn PARAMS ((rtx));
788 /* Emit one rtl insn to store 1 in specified rtx assuming it contains 0. */
789 extern void emit_0_to_1_insn PARAMS ((rtx));
791 /* Emit one rtl insn to compare two rtx's. */
792 extern void emit_cmp_insn PARAMS ((rtx, rtx, enum rtx_code, rtx,
793 enum machine_mode, int, int));
795 /* Emit a pair of rtl insns to compare two rtx's and to jump
796 to a label if the comparison is true. */
797 extern void emit_cmp_and_jump_insns PARAMS ((rtx, rtx, enum rtx_code, rtx,
798 enum machine_mode, int, int, rtx));
800 /* The various uses that a comparison can have; used by can_compare_p:
801 jumps, conditional moves, store flag operations. */
802 enum can_compare_purpose
804 ccp_jump,
805 ccp_cmov,
806 ccp_store_flag
809 /* Nonzero if a compare of mode MODE can be done straightforwardly
810 (without splitting it into pieces). */
811 extern int can_compare_p PARAMS ((enum rtx_code, enum machine_mode,
812 enum can_compare_purpose));
814 extern void prepare_cmp_insn PARAMS ((rtx *, rtx *, enum rtx_code *, rtx,
815 enum machine_mode *, int *, int,
816 enum can_compare_purpose));
818 extern rtx prepare_operand PARAMS ((int, rtx, int, enum machine_mode,
819 enum machine_mode, int));
821 /* Generate code to indirectly jump to a location given in the rtx LOC. */
822 extern void emit_indirect_jump PARAMS ((rtx));
824 #ifdef HAVE_conditional_move
825 /* Emit a conditional move operation. */
826 rtx emit_conditional_move PARAMS ((rtx, enum rtx_code, rtx, rtx,
827 enum machine_mode, rtx, rtx,
828 enum machine_mode, int));
830 /* Return non-zero if the conditional move is supported. */
831 int can_conditionally_move_p PARAMS ((enum machine_mode mode));
833 #endif
835 /* Create but don't emit one rtl instruction to add one rtx into another.
836 Modes must match; operands must meet the operation's predicates.
837 Likewise for subtraction and for just copying.
838 These do not call protect_from_queue; caller must do so. */
839 extern rtx gen_add2_insn PARAMS ((rtx, rtx));
840 extern rtx gen_sub2_insn PARAMS ((rtx, rtx));
841 extern rtx gen_move_insn PARAMS ((rtx, rtx));
842 extern int have_add2_insn PARAMS ((enum machine_mode));
843 extern int have_sub2_insn PARAMS ((enum machine_mode));
845 /* Return the INSN_CODE to use for an extend operation. */
846 extern enum insn_code can_extend_p PARAMS ((enum machine_mode,
847 enum machine_mode, int));
849 /* Generate the body of an insn to extend Y (with mode MFROM)
850 into X (with mode MTO). Do zero-extension if UNSIGNEDP is nonzero. */
851 extern rtx gen_extend_insn PARAMS ((rtx, rtx, enum machine_mode,
852 enum machine_mode, int));
854 /* Initialize the tables that control conversion between fixed and
855 floating values. */
856 extern void init_fixtab PARAMS ((void));
857 extern void init_floattab PARAMS ((void));
859 /* Generate code for a FLOAT_EXPR. */
860 extern void expand_float PARAMS ((rtx, rtx, int));
862 /* Generate code for a FIX_EXPR. */
863 extern void expand_fix PARAMS ((rtx, rtx, int));
865 /* Call this to initialize an optab function entry. */
866 extern rtx init_one_libfunc PARAMS ((const char *));
868 /* Call this once to initialize the contents of the optabs
869 appropriately for the current target machine. */
870 extern void init_optabs PARAMS ((void));
872 /* Functions from expmed.c: */
874 /* Arguments MODE, RTX: return an rtx for the negation of that value.
875 May emit insns. */
876 extern rtx negate_rtx PARAMS ((enum machine_mode, rtx));
878 /* Expand a logical AND operation. */
879 extern rtx expand_and PARAMS ((rtx, rtx, rtx));
881 /* Emit a store-flag operation. */
882 extern rtx emit_store_flag PARAMS ((rtx, enum rtx_code, rtx, rtx,
883 enum machine_mode, int, int));
885 /* Like emit_store_flag, but always succeeds. */
886 extern rtx emit_store_flag_force PARAMS ((rtx, enum rtx_code, rtx, rtx,
887 enum machine_mode, int, int));
889 /* Functions from loop.c: */
891 /* Given a JUMP_INSN, return a description of the test being made. */
892 extern rtx get_condition PARAMS ((rtx, rtx *));
894 /* Generate a conditional trap instruction. */
895 extern rtx gen_cond_trap PARAMS ((enum rtx_code, rtx, rtx, rtx));
897 /* Functions from builtins.c: */
898 #ifdef TREE_CODE
899 extern rtx expand_builtin PARAMS ((tree, rtx, rtx, enum machine_mode, int));
900 extern tree expand_tree_builtin PARAMS ((tree, tree, tree));
901 extern void std_expand_builtin_va_start PARAMS ((int, tree, rtx));
902 extern rtx std_expand_builtin_va_arg PARAMS ((tree, tree));
903 extern rtx expand_builtin_va_arg PARAMS ((tree, tree));
904 #endif
906 extern rtx expand_builtin_setjmp PARAMS ((rtx, rtx, rtx, rtx));
907 extern void expand_builtin_longjmp PARAMS ((rtx, rtx));
908 extern rtx expand_builtin_saveregs PARAMS ((void));
909 extern int get_varargs_alias_set PARAMS ((void));
911 /* Functions from expr.c: */
913 /* This is run once per compilation to set up which modes can be used
914 directly in memory and to initialize the block move optab. */
915 extern void init_expr_once PARAMS ((void));
917 /* This is run at the start of compiling a function. */
918 extern void init_expr PARAMS ((void));
920 /* This function is run once to initialize stor-layout.c. */
922 extern void init_stor_layout_once PARAMS ((void));
924 /* This is run at the end of compiling a function. */
925 extern void finish_expr_for_function PARAMS ((void));
927 /* Use protect_from_queue to convert a QUEUED expression
928 into something that you can put immediately into an instruction. */
929 extern rtx protect_from_queue PARAMS ((rtx, int));
931 /* Perform all the pending incrementations. */
932 extern void emit_queue PARAMS ((void));
934 /* Tell if something has a queued subexpression. */
935 extern int queued_subexp_p PARAMS ((rtx));
937 /* Emit some rtl insns to move data between rtx's, converting machine modes.
938 Both modes must be floating or both fixed. */
939 extern void convert_move PARAMS ((rtx, rtx, int));
941 /* Convert an rtx to specified machine mode and return the result. */
942 extern rtx convert_to_mode PARAMS ((enum machine_mode, rtx, int));
944 /* Convert an rtx to MODE from OLDMODE and return the result. */
945 extern rtx convert_modes PARAMS ((enum machine_mode, enum machine_mode, rtx, int));
947 /* Emit code to move a block Y to a block X. */
948 extern rtx emit_block_move PARAMS ((rtx, rtx, rtx, int));
950 /* Copy all or part of a value X into registers starting at REGNO.
951 The number of registers to be filled is NREGS. */
952 extern void move_block_to_reg PARAMS ((int, rtx, int, enum machine_mode));
954 /* Copy all or part of a BLKmode value X out of registers starting at REGNO.
955 The number of registers to be filled is NREGS. */
956 extern void move_block_from_reg PARAMS ((int, rtx, int, int));
958 /* Load a BLKmode value into non-consecutive registers represented by a
959 PARALLEL. */
960 extern void emit_group_load PARAMS ((rtx, rtx, int, int));
961 /* Store a BLKmode value from non-consecutive registers represented by a
962 PARALLEL. */
963 extern void emit_group_store PARAMS ((rtx, rtx, int, int));
965 #ifdef TREE_CODE
966 /* Copy BLKmode object from a set of registers. */
967 extern rtx copy_blkmode_from_reg PARAMS ((rtx,rtx,tree));
968 #endif
970 /* Mark REG as holding a parameter for the next CALL_INSN. */
971 extern void use_reg PARAMS ((rtx *, rtx));
972 /* Mark NREGS consecutive regs, starting at REGNO, as holding parameters
973 for the next CALL_INSN. */
974 extern void use_regs PARAMS ((rtx *, int, int));
975 /* Mark a PARALLEL as holding a parameter for the next CALL_INSN. */
976 extern void use_group_regs PARAMS ((rtx *, rtx));
978 /* Write zeros through the storage of OBJECT.
979 If OBJECT has BLKmode, SIZE is its length in bytes and ALIGN is its
980 alignment. */
981 extern rtx clear_storage PARAMS ((rtx, rtx, int));
983 /* Emit insns to set X from Y. */
984 extern rtx emit_move_insn PARAMS ((rtx, rtx));
986 /* Emit insns to set X from Y, with no frills. */
987 extern rtx emit_move_insn_1 PARAMS ((rtx, rtx));
989 /* Push a block of length SIZE (perhaps variable)
990 and return an rtx to address the beginning of the block. */
991 extern rtx push_block PARAMS ((rtx, int, int));
993 /* Make an operand to push something on the stack. */
994 extern rtx gen_push_operand PARAMS ((void));
996 #ifdef TREE_CODE
997 /* Generate code to push something onto the stack, given its mode and type. */
998 extern void emit_push_insn PARAMS ((rtx, enum machine_mode, tree, rtx, int,
999 int, rtx, int, rtx, rtx, int, rtx));
1001 /* Emit library call. */
1002 extern void emit_library_call PARAMS ((rtx orgfun, int no_queue,
1003 enum machine_mode outmode, int nargs, ...));
1004 extern rtx emit_library_call_value PARAMS ((rtx orgfun, rtx value, int no_queue,
1005 enum machine_mode outmode, int nargs, ...));
1007 /* Expand an assignment that stores the value of FROM into TO. */
1008 extern rtx expand_assignment PARAMS ((tree, tree, int, int));
1010 /* Generate code for computing expression EXP,
1011 and storing the value into TARGET.
1012 If SUGGEST_REG is nonzero, copy the value through a register
1013 and return that register, if that is possible. */
1014 extern rtx store_expr PARAMS ((tree, rtx, int));
1015 #endif
1017 /* Given an rtx that may include add and multiply operations,
1018 generate them as insns and return a pseudo-reg containing the value.
1019 Useful after calling expand_expr with 1 as sum_ok. */
1020 extern rtx force_operand PARAMS ((rtx, rtx));
1022 #ifdef TREE_CODE
1023 /* Generate code for computing expression EXP.
1024 An rtx for the computed value is returned. The value is never null.
1025 In the case of a void EXP, const0_rtx is returned. */
1026 extern rtx expand_expr PARAMS ((tree, rtx, enum machine_mode,
1027 enum expand_modifier));
1028 #endif
1030 /* At the start of a function, record that we have no previously-pushed
1031 arguments waiting to be popped. */
1032 extern void init_pending_stack_adjust PARAMS ((void));
1034 /* When exiting from function, if safe, clear out any pending stack adjust
1035 so the adjustment won't get done. */
1036 extern void clear_pending_stack_adjust PARAMS ((void));
1038 /* Pop any previously-pushed arguments that have not been popped yet. */
1039 extern void do_pending_stack_adjust PARAMS ((void));
1041 #ifdef TREE_CODE
1042 /* Return the tree node and offset if a given argument corresponds to
1043 a string constant. */
1044 extern tree string_constant PARAMS ((tree, tree *));
1046 /* Generate code to evaluate EXP and jump to LABEL if the value is zero. */
1047 extern void jumpifnot PARAMS ((tree, rtx));
1049 /* Generate code to evaluate EXP and jump to LABEL if the value is nonzero. */
1050 extern void jumpif PARAMS ((tree, rtx));
1052 /* Generate code to evaluate EXP and jump to IF_FALSE_LABEL if
1053 the result is zero, or IF_TRUE_LABEL if the result is one. */
1054 extern void do_jump PARAMS ((tree, rtx, rtx));
1055 #endif
1057 /* Generate rtl to compare two rtx's, will call emit_cmp_insn. */
1058 extern rtx compare_from_rtx PARAMS ((rtx, rtx, enum rtx_code, int,
1059 enum machine_mode, rtx, int));
1060 extern void do_compare_rtx_and_jump PARAMS ((rtx, rtx, enum rtx_code, int,
1061 enum machine_mode, rtx, int,
1062 rtx, rtx));
1064 /* Generate a tablejump instruction (used for switch statements). */
1065 extern void do_tablejump PARAMS ((rtx, enum machine_mode, rtx, rtx, rtx));
1067 #ifdef TREE_CODE
1068 /* rtl.h and tree.h were included. */
1069 /* Return an rtx for the size in bytes of the value of an expr. */
1070 extern rtx expr_size PARAMS ((tree));
1072 extern rtx lookup_static_chain PARAMS ((tree));
1074 /* Convert a stack slot address ADDR valid in function FNDECL
1075 into an address valid in this function (using a static chain). */
1076 extern rtx fix_lexical_addr PARAMS ((rtx, tree));
1078 /* Return the address of the trampoline for entering nested fn FUNCTION. */
1079 extern rtx trampoline_address PARAMS ((tree));
1081 /* Return an rtx that refers to the value returned by a function
1082 in its original home. This becomes invalid if any more code is emitted. */
1083 extern rtx hard_function_value PARAMS ((tree, tree, int));
1085 extern rtx prepare_call_address PARAMS ((rtx, tree, rtx *, int));
1087 extern rtx expand_call PARAMS ((tree, rtx, int));
1089 extern rtx expand_shift PARAMS ((enum tree_code, enum machine_mode, rtx, tree, rtx, int));
1090 extern rtx expand_divmod PARAMS ((int, enum tree_code, enum machine_mode, rtx, rtx, rtx, int));
1091 extern void locate_and_pad_parm PARAMS ((enum machine_mode, tree, int, tree, struct args_size *, struct args_size *, struct args_size *, struct args_size *));
1092 extern rtx expand_inline_function PARAMS ((tree, tree, rtx, int, tree, rtx));
1093 /* Return the CODE_LABEL rtx for a LABEL_DECL, creating it if necessary. */
1094 extern rtx label_rtx PARAMS ((tree));
1095 #endif
1097 /* Indicate how an input argument register was promoted. */
1098 extern rtx promoted_input_arg PARAMS ((int, enum machine_mode *, int *));
1100 /* Return an rtx like arg but sans any constant terms.
1101 Returns the original rtx if it has no constant terms.
1102 The constant terms are added and stored via a second arg. */
1103 extern rtx eliminate_constant_term PARAMS ((rtx, rtx *));
1105 /* Convert arg to a valid memory address for specified machine mode,
1106 by emitting insns to perform arithmetic if nec. */
1107 extern rtx memory_address PARAMS ((enum machine_mode, rtx));
1109 /* Like `memory_address' but pretent `flag_force_addr' is 0. */
1110 extern rtx memory_address_noforce PARAMS ((enum machine_mode, rtx));
1112 /* Return a memory reference like MEMREF, but with its mode changed
1113 to MODE and its address changed to ADDR.
1114 (VOIDmode means don't change the mode.
1115 NULL for ADDR means don't change the address.) */
1116 extern rtx change_address PARAMS ((rtx, enum machine_mode, rtx));
1118 /* Return a memory reference like MEMREF, but which is known to have a
1119 valid address. */
1121 extern rtx validize_mem PARAMS ((rtx));
1123 /* Assemble the static constant template for function entry trampolines. */
1124 extern rtx assemble_trampoline_template PARAMS ((void));
1126 /* Return 1 if two rtx's are equivalent in structure and elements. */
1127 extern int rtx_equal_p PARAMS ((rtx, rtx));
1129 /* Given rtx, return new rtx whose address won't be affected by
1130 any side effects. It has been copied to a new temporary reg. */
1131 extern rtx stabilize PARAMS ((rtx));
1133 /* Given an rtx, copy all regs it refers to into new temps
1134 and return a modified copy that refers to the new temps. */
1135 extern rtx copy_all_regs PARAMS ((rtx));
1137 /* Copy given rtx to a new temp reg and return that. */
1138 extern rtx copy_to_reg PARAMS ((rtx));
1140 /* Like copy_to_reg but always make the reg Pmode. */
1141 extern rtx copy_addr_to_reg PARAMS ((rtx));
1143 /* Like copy_to_reg but always make the reg the specified mode MODE. */
1144 extern rtx copy_to_mode_reg PARAMS ((enum machine_mode, rtx));
1146 /* Copy given rtx to given temp reg and return that. */
1147 extern rtx copy_to_suggested_reg PARAMS ((rtx, rtx, enum machine_mode));
1149 /* Copy a value to a register if it isn't already a register.
1150 Args are mode (in case value is a constant) and the value. */
1151 extern rtx force_reg PARAMS ((enum machine_mode, rtx));
1153 /* Return given rtx, copied into a new temp reg if it was in memory. */
1154 extern rtx force_not_mem PARAMS ((rtx));
1156 #ifdef TREE_CODE
1157 /* Return mode and signedness to use when object is promoted. */
1158 extern enum machine_mode promote_mode PARAMS ((tree, enum machine_mode,
1159 int *, int));
1160 #endif
1162 /* Remove some bytes from the stack. An rtx says how many. */
1163 extern void adjust_stack PARAMS ((rtx));
1165 /* Add some bytes to the stack. An rtx says how many. */
1166 extern void anti_adjust_stack PARAMS ((rtx));
1168 /* This enum is used for the following two functions. */
1169 enum save_level {SAVE_BLOCK, SAVE_FUNCTION, SAVE_NONLOCAL};
1171 /* Save the stack pointer at the specified level. */
1172 extern void emit_stack_save PARAMS ((enum save_level, rtx *, rtx));
1174 /* Restore the stack pointer from a save area of the specified level. */
1175 extern void emit_stack_restore PARAMS ((enum save_level, rtx, rtx));
1177 /* Allocate some space on the stack dynamically and return its address. An rtx
1178 says how many bytes. */
1179 extern rtx allocate_dynamic_stack_space PARAMS ((rtx, rtx, int));
1181 /* Probe a range of stack addresses from FIRST to FIRST+SIZE, inclusive.
1182 FIRST is a constant and size is a Pmode RTX. These are offsets from the
1183 current stack pointer. STACK_GROWS_DOWNWARD says whether to add or
1184 subtract from the stack. If SIZE is constant, this is done
1185 with a fixed number of probes. Otherwise, we must make a loop. */
1186 extern void probe_stack_range PARAMS ((HOST_WIDE_INT, rtx));
1188 /* Return an rtx that refers to the value returned by a library call
1189 in its original home. This becomes invalid if any more code is emitted. */
1190 extern rtx hard_libcall_value PARAMS ((enum machine_mode));
1192 /* Given an rtx, return an rtx for a value rounded up to a multiple
1193 of STACK_BOUNDARY / BITS_PER_UNIT. */
1194 extern rtx round_push PARAMS ((rtx));
1196 extern rtx store_bit_field PARAMS ((rtx, int, int, enum machine_mode, rtx, int, int));
1197 extern rtx extract_bit_field PARAMS ((rtx, int, int, int, rtx, enum machine_mode, enum machine_mode, int, int));
1198 extern rtx expand_mult PARAMS ((enum machine_mode, rtx, rtx, rtx, int));
1199 extern rtx expand_mult_add PARAMS ((rtx, rtx, rtx, rtx,enum machine_mode, int));
1200 extern rtx expand_mult_highpart_adjust PARAMS ((enum machine_mode, rtx, rtx, rtx, rtx, int));
1202 extern rtx assemble_static_space PARAMS ((int));
1204 /* Hook called by expand_expr for language-specific tree codes.
1205 It is up to the language front end to install a hook
1206 if it has any such codes that expand_expr needs to know about. */
1207 extern rtx (*lang_expand_expr) PARAMS ((union tree_node *, rtx,
1208 enum machine_mode,
1209 enum expand_modifier modifier));
1211 #ifdef TREE_CODE
1212 /* Hook called by output_constant for language-specific tree codes.
1213 It is up to the language front-end to install a hook if it has any
1214 such codes that output_constant needs to know about. Returns a
1215 language-independent constant equivalent to its input. */
1216 extern tree (*lang_expand_constant) PARAMS ((tree));
1217 #endif
1219 extern void init_all_optabs PARAMS ((void));
1220 extern void do_jump_by_parts_equality_rtx PARAMS ((rtx, rtx, rtx));
1221 extern void do_jump_by_parts_greater_rtx PARAMS ((enum machine_mode,
1222 int, rtx, rtx, rtx,
1223 rtx));
1225 #ifdef TREE_CODE /* Don't lose if tree.h not included. */
1226 extern void mark_seen_cases PARAMS ((tree, unsigned char *,
1227 long, int));
1228 #endif