]>
Commit | Line | Data |
---|---|---|
aa388f29 | 1 | /* Prototypes for alpha.c functions used in the md file & elsewhere. |
f6da8bc3 | 2 | Copyright (C) 1999, 2000 Free Software Foundation, Inc. |
aa388f29 RH |
3 | |
4 | This file is part of GNU CC. | |
5 | ||
6 | GNU CC is free software; you can redistribute it and/or modify | |
7 | it under the terms of the GNU General Public License as published by | |
8 | the Free Software Foundation; either version 2, or (at your option) | |
9 | any later version. | |
10 | ||
11 | GNU CC is distributed in the hope that it will be useful, | |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | GNU General Public License for more details. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
17 | along with GNU CC; see the file COPYING. If not, write to | |
18 | the Free Software Foundation, 59 Temple Place - Suite 330, | |
19 | Boston, MA 02111-1307, USA. */ | |
20 | ||
e2c9fb9b RH |
21 | extern int alpha_next_sequence_number; |
22 | ||
f6da8bc3 KG |
23 | extern void literal_section PARAMS ((void)); |
24 | extern void override_options PARAMS ((void)); | |
25 | extern int zap_mask PARAMS ((HOST_WIDE_INT)); | |
26 | extern int direct_return PARAMS ((void)); | |
aa388f29 | 27 | |
f6da8bc3 KG |
28 | extern int alpha_sa_size PARAMS ((void)); |
29 | extern int alpha_pv_save_size PARAMS ((void)); | |
30 | extern int alpha_using_fp PARAMS ((void)); | |
31 | extern void alpha_write_verstamp PARAMS ((FILE *)); | |
32 | extern void alpha_expand_prologue PARAMS ((void)); | |
f6da8bc3 KG |
33 | extern void alpha_expand_epilogue PARAMS ((void)); |
34 | extern void alpha_output_filename PARAMS ((FILE *, const char *)); | |
35 | extern void alpha_output_lineno PARAMS ((FILE *, int)); | |
aa388f29 RH |
36 | |
37 | #ifdef RTX_CODE | |
f6da8bc3 KG |
38 | extern int reg_or_0_operand PARAMS ((rtx, enum machine_mode)); |
39 | extern int reg_or_6bit_operand PARAMS ((rtx, enum machine_mode)); | |
40 | extern int reg_or_8bit_operand PARAMS ((rtx, enum machine_mode)); | |
41 | extern int cint8_operand PARAMS ((rtx, enum machine_mode)); | |
42 | extern int add_operand PARAMS ((rtx, enum machine_mode)); | |
43 | extern int sext_add_operand PARAMS ((rtx, enum machine_mode)); | |
44 | extern int const48_operand PARAMS ((rtx, enum machine_mode)); | |
45 | extern int and_operand PARAMS ((rtx, enum machine_mode)); | |
46 | extern int or_operand PARAMS ((rtx, enum machine_mode)); | |
47 | extern int mode_width_operand PARAMS ((rtx, enum machine_mode)); | |
48 | extern int mode_mask_operand PARAMS ((rtx, enum machine_mode)); | |
49 | extern int mul8_operand PARAMS ((rtx, enum machine_mode)); | |
50 | extern int fp0_operand PARAMS ((rtx, enum machine_mode)); | |
51 | extern int reg_or_fp0_operand PARAMS ((rtx, enum machine_mode)); | |
52 | extern int hard_fp_register_operand PARAMS ((rtx, enum machine_mode)); | |
d2c6a1b6 | 53 | extern int hard_int_register_operand PARAMS ((rtx, enum machine_mode)); |
f6da8bc3 KG |
54 | extern int reg_or_cint_operand PARAMS ((rtx, enum machine_mode)); |
55 | extern int some_operand PARAMS ((rtx, enum machine_mode)); | |
56 | extern int some_ni_operand PARAMS ((rtx, enum machine_mode)); | |
57 | extern int input_operand PARAMS ((rtx, enum machine_mode)); | |
58 | extern int current_file_function_operand PARAMS ((rtx, enum machine_mode)); | |
1afec8ad | 59 | extern int direct_call_operand PARAMS ((rtx, enum machine_mode)); |
1eb356b9 | 60 | extern int local_symbolic_operand PARAMS ((rtx, enum machine_mode)); |
e2c9fb9b RH |
61 | extern int small_symbolic_operand PARAMS ((rtx, enum machine_mode)); |
62 | extern int global_symbolic_operand PARAMS ((rtx, enum machine_mode)); | |
f6da8bc3 | 63 | extern int call_operand PARAMS ((rtx, enum machine_mode)); |
30102605 | 64 | extern int symbolic_operand PARAMS ((rtx, enum machine_mode)); |
f6da8bc3 | 65 | extern int alpha_comparison_operator PARAMS ((rtx, enum machine_mode)); |
8f4773ea | 66 | extern int alpha_zero_comparison_operator PARAMS ((rtx, enum machine_mode)); |
f6da8bc3 KG |
67 | extern int alpha_swapped_comparison_operator PARAMS ((rtx, enum machine_mode)); |
68 | extern int signed_comparison_operator PARAMS ((rtx, enum machine_mode)); | |
1eb8759b | 69 | extern int alpha_fp_comparison_operator PARAMS ((rtx, enum machine_mode)); |
f6da8bc3 KG |
70 | extern int divmod_operator PARAMS ((rtx, enum machine_mode)); |
71 | extern int aligned_memory_operand PARAMS ((rtx, enum machine_mode)); | |
72 | extern int unaligned_memory_operand PARAMS ((rtx, enum machine_mode)); | |
73 | extern int reg_or_unaligned_mem_operand PARAMS ((rtx, enum machine_mode)); | |
74 | extern int any_memory_operand PARAMS ((rtx, enum machine_mode)); | |
75 | extern int reg_not_elim_operand PARAMS ((rtx, enum machine_mode)); | |
76 | extern int normal_memory_operand PARAMS ((rtx, enum machine_mode)); | |
77 | extern int reg_no_subreg_operand PARAMS ((rtx, enum machine_mode)); | |
78 | extern int addition_operation PARAMS ((rtx, enum machine_mode)); | |
aa388f29 | 79 | |
25e21aed RH |
80 | extern rtx alpha_tablejump_addr_vec PARAMS ((rtx)); |
81 | extern rtx alpha_tablejump_best_label PARAMS ((rtx)); | |
aead1ca3 | 82 | |
a39bdefc | 83 | extern bool alpha_legitimate_address_p PARAMS ((enum machine_mode, rtx, int)); |
aead1ca3 RH |
84 | extern rtx alpha_legitimize_address PARAMS ((rtx, rtx, enum machine_mode)); |
85 | extern rtx alpha_legitimize_reload_address PARAMS ((rtx, enum machine_mode, | |
86 | int, int, int)); | |
87 | ||
f6da8bc3 KG |
88 | extern void get_aligned_mem PARAMS ((rtx, rtx *, rtx *)); |
89 | extern rtx get_unaligned_address PARAMS ((rtx, int)); | |
90 | extern enum reg_class secondary_reload_class PARAMS ((enum reg_class, | |
3611aef0 RH |
91 | enum machine_mode, |
92 | rtx, int)); | |
f6da8bc3 KG |
93 | extern void alpha_set_memflags PARAMS ((rtx, rtx)); |
94 | extern rtx alpha_emit_set_const PARAMS ((rtx, enum machine_mode, | |
aa388f29 | 95 | HOST_WIDE_INT, int)); |
f6da8bc3 | 96 | extern rtx alpha_emit_set_long_const PARAMS ((rtx, HOST_WIDE_INT, |
aa388f29 | 97 | HOST_WIDE_INT)); |
23296a36 RH |
98 | extern bool alpha_expand_mov PARAMS ((enum machine_mode, rtx *)); |
99 | extern bool alpha_expand_mov_nobwx PARAMS ((enum machine_mode, rtx *)); | |
01b9e84e | 100 | extern void alpha_emit_floatuns PARAMS ((rtx[])); |
f6da8bc3 | 101 | extern rtx alpha_emit_conditional_branch PARAMS ((enum rtx_code)); |
9e495700 | 102 | extern rtx alpha_emit_setcc PARAMS ((enum rtx_code)); |
f6da8bc3 | 103 | extern rtx alpha_emit_conditional_move PARAMS ((rtx, enum machine_mode)); |
8f4773ea RH |
104 | extern int alpha_split_conditional_move PARAMS ((enum rtx_code, rtx, rtx, |
105 | rtx, rtx)); | |
5495cc55 RH |
106 | extern void alpha_emit_xfloating_arith PARAMS ((enum rtx_code, rtx[])); |
107 | extern void alpha_emit_xfloating_cvt PARAMS ((enum rtx_code, rtx[])); | |
628d74de | 108 | extern void alpha_split_tfmode_pair PARAMS ((rtx[])); |
f940c352 RH |
109 | extern void alpha_split_tfmode_frobsign PARAMS ((rtx[], |
110 | rtx (*)(rtx, rtx, rtx))); | |
f6da8bc3 | 111 | extern void alpha_expand_unaligned_load PARAMS ((rtx, rtx, HOST_WIDE_INT, |
aa388f29 | 112 | HOST_WIDE_INT, int)); |
f6da8bc3 | 113 | extern void alpha_expand_unaligned_store PARAMS ((rtx, rtx, HOST_WIDE_INT, |
aa388f29 | 114 | HOST_WIDE_INT)); |
f6da8bc3 KG |
115 | extern int alpha_expand_block_move PARAMS ((rtx [])); |
116 | extern int alpha_expand_block_clear PARAMS ((rtx [])); | |
f6da8bc3 | 117 | extern rtx alpha_return_addr PARAMS ((int, rtx)); |
ccb83cbc | 118 | extern rtx alpha_gp_save_rtx PARAMS ((void)); |
f6da8bc3 KG |
119 | extern void print_operand PARAMS ((FILE *, rtx, int)); |
120 | extern void print_operand_address PARAMS ((FILE *, rtx)); | |
121 | extern void alpha_initialize_trampoline PARAMS ((rtx, rtx, rtx, int, int, int)); | |
122 | extern void alpha_reorg PARAMS ((rtx)); | |
aa388f29 RH |
123 | #endif /* RTX_CODE */ |
124 | ||
125 | #ifdef REAL_VALUE_TYPE | |
f6da8bc3 | 126 | extern int check_float_value PARAMS ((enum machine_mode, |
aa388f29 RH |
127 | REAL_VALUE_TYPE *, int)); |
128 | #endif | |
129 | ||
be7b80f4 | 130 | #if TARGET_ABI_OPEN_VMS |
aa388f29 | 131 | #ifdef HAVE_MACHINE_MODES |
f6da8bc3 | 132 | extern enum avms_arg_type alpha_arg_type PARAMS ((enum machine_mode)); |
aa388f29 | 133 | #endif |
a82c7f05 | 134 | #ifdef RTX_CODE |
f6da8bc3 | 135 | extern rtx alpha_arg_info_reg_val PARAMS ((CUMULATIVE_ARGS)); |
a82c7f05 RH |
136 | #endif |
137 | #ifdef BUFSIZ | |
f6da8bc3 | 138 | extern void alpha_write_linkage PARAMS ((FILE *)); |
a82c7f05 | 139 | #endif |
be7b80f4 | 140 | #endif /* TARGET_ABI_OPEN_VMS */ |
aa388f29 | 141 | |
a82c7f05 RH |
142 | #ifdef RTX_CODE |
143 | extern rtx alpha_need_linkage PARAMS ((const char *, int)); | |
144 | #endif | |
aa388f29 RH |
145 | |
146 | #ifdef TREE_CODE | |
f6da8bc3 | 147 | extern tree alpha_build_va_list PARAMS ((void)); |
aa388f29 | 148 | #ifdef RTX_CODE |
f6da8bc3 KG |
149 | extern void alpha_va_start PARAMS ((int, tree, rtx)); |
150 | extern rtx alpha_va_arg PARAMS ((tree, tree)); | |
5495cc55 RH |
151 | extern rtx function_arg PARAMS ((CUMULATIVE_ARGS, enum machine_mode, |
152 | tree, int)); | |
aa388f29 | 153 | #endif |
f6da8bc3 KG |
154 | extern void alpha_start_function PARAMS ((FILE *, const char *, tree)); |
155 | extern void alpha_end_function PARAMS ((FILE *, const char *, tree)); | |
1eb356b9 | 156 | extern void alpha_encode_section_info PARAMS ((tree)); |
aa388f29 | 157 | #endif /* TREE CODE */ |
30102605 RH |
158 | |
159 | #ifdef RTX_CODE | |
160 | extern rtx unicosmk_add_call_info_word PARAMS ((rtx)); | |
161 | #endif | |
162 | ||
163 | #if TARGET_ABI_UNICOSMK | |
164 | #ifdef RTX_CODE | |
165 | extern void unicosmk_defer_case_vector PARAMS ((rtx, rtx)); | |
166 | #endif | |
167 | #ifdef TREE_CODE | |
168 | extern void unicosmk_unique_section PARAMS ((tree, int)); | |
169 | #endif | |
170 | extern void unicosmk_add_extern PARAMS ((const char *)); | |
171 | extern void unicosmk_output_align PARAMS ((FILE *, int)); | |
172 | extern char * unicosmk_text_section PARAMS ((void)); | |
173 | extern char * unicosmk_data_section PARAMS ((void)); | |
174 | extern void unicosmk_asm_file_start PARAMS ((FILE *)); | |
175 | extern void unicosmk_asm_file_end PARAMS ((FILE *)); | |
176 | extern void unicosmk_output_common PARAMS ((FILE *, const char *, int, int)); | |
177 | #endif /* TARGET_ABI_UNICOSMK */ |