2 Copyright (C) 1999, 2000 Free Software Foundation, Inc.
3 Contributed by Cygnus Solutions.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
12 GCC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 /* External functions called. */
24 extern void override_options (void);
26 extern int short_memory_operand (rtx
, enum machine_mode
);
27 extern int long_memory_operand (rtx
, enum machine_mode
);
28 extern int d30v_memory_operand (rtx
, enum machine_mode
);
29 extern int single_reg_memory_operand (rtx
, enum machine_mode
);
30 extern int const_addr_memory_operand (rtx
, enum machine_mode
);
31 extern int call_operand (rtx
, enum machine_mode
);
32 extern int gpr_operand (rtx
, enum machine_mode
);
33 extern int accum_operand (rtx
, enum machine_mode
);
34 extern int gpr_or_accum_operand (rtx
, enum machine_mode
);
35 extern int cr_operand (rtx
, enum machine_mode
);
36 extern int repeat_operand (rtx
, enum machine_mode
);
37 extern int flag_operand (rtx
, enum machine_mode
);
38 extern int br_flag_operand (rtx
, enum machine_mode
);
39 extern int br_flag_or_constant_operand (rtx
, enum machine_mode
);
40 extern int gpr_br_flag_operand (rtx
, enum machine_mode
);
41 extern int f0_operand (rtx
, enum machine_mode
);
42 extern int f1_operand (rtx
, enum machine_mode
);
43 extern int carry_operand (rtx
, enum machine_mode
);
44 extern int reg_or_0_operand (rtx
, enum machine_mode
);
45 extern int gpr_or_signed6_operand (rtx
, enum machine_mode
);
46 extern int gpr_or_unsigned5_operand (rtx
, enum machine_mode
);
47 extern int gpr_or_unsigned6_operand (rtx
, enum machine_mode
);
48 extern int gpr_or_constant_operand (rtx
, enum machine_mode
);
49 extern int gpr_or_dbl_const_operand (rtx
, enum machine_mode
);
50 extern int gpr_or_memory_operand (rtx
, enum machine_mode
);
51 extern int move_input_operand (rtx
, enum machine_mode
);
52 extern int move_output_operand (rtx
, enum machine_mode
);
53 extern int signed6_operand (rtx
, enum machine_mode
);
54 extern int unsigned5_operand (rtx
, enum machine_mode
);
55 extern int unsigned6_operand (rtx
, enum machine_mode
);
56 extern int bitset_operand (rtx
, enum machine_mode
);
57 extern int condexec_test_operator (rtx
, enum machine_mode
);
58 extern int condexec_branch_operator (rtx
, enum machine_mode
);
59 extern int condexec_unary_operator (rtx
, enum machine_mode
);
60 extern int condexec_addsub_operator (rtx
, enum machine_mode
);
61 extern int condexec_binary_operator (rtx
, enum machine_mode
);
62 extern int condexec_shiftl_operator (rtx
, enum machine_mode
);
63 extern int condexec_extend_operator (rtx
, enum machine_mode
);
64 extern int branch_zero_operator (rtx
, enum machine_mode
);
65 extern int cond_move_dest_operand (rtx
, enum machine_mode
);
66 extern int cond_move_operand (rtx
, enum machine_mode
);
67 extern int cond_exec_operand (rtx
, enum machine_mode
);
68 extern int srelational_si_operator (rtx
, enum machine_mode
);
69 extern int urelational_si_operator (rtx
, enum machine_mode
);
70 extern int relational_di_operator (rtx
, enum machine_mode
);
72 extern d30v_stack_t
*d30v_stack_info (void);
73 extern int direct_return (void);
77 extern void d30v_init_cumulative_args (CUMULATIVE_ARGS
*, tree
,
80 extern int d30v_function_arg_boundary (enum machine_mode
, tree
);
82 extern rtx
d30v_function_arg (CUMULATIVE_ARGS
*,
83 enum machine_mode
, tree
, int, int);
85 extern int d30v_function_arg_partial_nregs (CUMULATIVE_ARGS
*,
86 enum machine_mode
, tree
, int);
88 extern int d30v_function_arg_pass_by_reference (CUMULATIVE_ARGS
*,
89 enum machine_mode
, tree
, int);
91 extern void d30v_function_arg_advance (CUMULATIVE_ARGS
*,
92 enum machine_mode
, tree
, int);
96 extern rtx
d30v_expand_builtin_saveregs (void);
99 extern void d30v_setup_incoming_varargs (CUMULATIVE_ARGS
*,
100 enum machine_mode
, tree
, int *, int);
102 extern void d30v_expand_builtin_va_start (tree
, rtx
);
103 extern rtx
d30v_expand_builtin_va_arg (tree
, tree
);
104 #endif /* RTX_CODE */
105 #endif /* TREE_CODE */
107 extern void d30v_expand_prologue (void);
108 extern void d30v_expand_epilogue (void);
109 extern void d30v_function_profiler (FILE *, int);
111 extern void d30v_split_double (rtx
, rtx
*, rtx
*);
112 extern void d30v_print_operand (FILE *, rtx
, int);
113 extern void d30v_print_operand_address (FILE *, rtx
);
115 extern int d30v_trampoline_size (void);
117 extern void d30v_initialize_trampoline (rtx
, rtx
, rtx
);
118 extern int d30v_legitimate_address_p (enum machine_mode
, rtx
, int);
119 extern rtx
d30v_legitimize_address (rtx
, rtx
, enum machine_mode
, int);
120 extern int d30v_mode_dependent_address_p (rtx
);
121 extern rtx
d30v_emit_comparison (int, rtx
, rtx
, rtx
);
122 extern const char *d30v_move_2words (rtx
*, rtx
);
123 extern int d30v_emit_cond_move (rtx
, rtx
, rtx
, rtx
);
124 extern rtx
d30v_return_addr (void);
126 extern void d30v_init_expanders (void);
127 extern void debug_stack_info (d30v_stack_t
*);
130 /* External variables referenced */
132 /* Define the information needed to generate branch and scc insns. This is
133 stored from the compare operation. */
135 extern GTY(()) rtx d30v_compare_op0
;
136 extern GTY(()) rtx d30v_compare_op1
;
138 /* Define the information needed to modify the epilogue for EH. */
141 extern rtx d30v_eh_epilogue_sp_ofs
;