]>
Commit | Line | Data |
---|---|---|
eb3921e8 | 1 | /* Prototypes for exported functions defined in arm.c and pe.c |
b0888988 | 2 | Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. |
eb3921e8 NC |
3 | Contributed by Richard Earnshaw (rearnsha@arm.com) |
4 | Minor hacks by Nick Clifton (nickc@cygnus.com) | |
5 | ||
6 | This file is part of GNU CC. | |
7 | ||
8 | GNU CC is free software; you can redistribute it and/or modify | |
9 | it under the terms of the GNU General Public License as published by | |
10 | the Free Software Foundation; either version 2, or (at your option) | |
11 | any later version. | |
12 | ||
13 | GNU CC is distributed in the hope that it will be useful, | |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | GNU General Public License for more details. | |
17 | ||
18 | You should have received a copy of the GNU General Public License | |
19 | along with GNU CC; see the file COPYING. If not, write to | |
20 | the Free Software Foundation, 59 Temple Place - Suite 330, | |
21 | Boston, MA 02111-1307, USA. */ | |
22 | ||
8b97c5f8 ZW |
23 | #ifndef GCC_ARM_PROTOS_H |
24 | #define GCC_ARM_PROTOS_H | |
25 | ||
d5b7b3ae RE |
26 | extern void arm_override_options PARAMS ((void)); |
27 | extern int use_return_insn PARAMS ((int)); | |
28 | extern int arm_regno_class PARAMS ((int)); | |
c1163e75 | 29 | extern void arm_finalize_pic PARAMS ((int)); |
d5b7b3ae | 30 | extern int arm_volatile_func PARAMS ((void)); |
cd2b33d0 | 31 | extern const char * arm_output_epilogue PARAMS ((int)); |
d5b7b3ae RE |
32 | extern void output_func_epilogue PARAMS ((int)); |
33 | extern void arm_expand_prologue PARAMS ((void)); | |
34 | /* Used in arm.md, but defined in output.c. */ | |
35 | extern void assemble_align PARAMS ((int)); | |
c27ba912 | 36 | extern const char * arm_strip_name_encoding PARAMS ((const char *)); |
6d3d9133 | 37 | extern unsigned long arm_current_func_type PARAMS ((void)); |
eb3921e8 NC |
38 | |
39 | #ifdef TREE_CODE | |
d5b7b3ae | 40 | extern int arm_return_in_memory PARAMS ((tree)); |
299d06ad | 41 | extern int arm_valid_machine_decl_attribute PARAMS ((tree, tree, tree)); |
d5b7b3ae RE |
42 | extern int arm_comp_type_attributes PARAMS ((tree, tree)); |
43 | extern int arm_valid_type_attribute_p PARAMS ((tree, tree, tree, tree)); | |
c27ba912 | 44 | extern void arm_set_default_type_attributes PARAMS ((tree)); |
cd2b33d0 | 45 | extern void arm_encode_call_attribute PARAMS ((tree, int)); |
254bb256 | 46 | extern int arm_function_ok_for_sibcall PARAMS ((tree)); |
eb3921e8 | 47 | #endif |
eb3921e8 | 48 | #ifdef RTX_CODE |
d5b7b3ae RE |
49 | extern int const_ok_for_arm PARAMS ((HOST_WIDE_INT)); |
50 | extern int arm_split_constant PARAMS ((RTX_CODE, enum machine_mode, | |
51 | HOST_WIDE_INT, rtx, rtx, int)); | |
52 | extern RTX_CODE arm_canonicalize_comparison PARAMS ((RTX_CODE, rtx *)); | |
53 | extern int legitimate_pic_operand_p PARAMS ((rtx)); | |
54 | extern rtx legitimize_pic_address PARAMS ((rtx, enum machine_mode, rtx)); | |
d5b7b3ae RE |
55 | extern int arm_rtx_costs PARAMS ((rtx, RTX_CODE, RTX_CODE)); |
56 | extern int arm_adjust_cost PARAMS ((rtx, rtx, rtx, int)); | |
299d06ad | 57 | extern int const_double_rtx_ok_for_fpu PARAMS ((rtx)); |
299d06ad | 58 | extern int neg_const_double_rtx_ok_for_fpu PARAMS ((rtx)); |
d5b7b3ae RE |
59 | |
60 | /* Predicates. */ | |
61 | extern int s_register_operand PARAMS ((rtx, enum machine_mode)); | |
b0888988 | 62 | extern int arm_hard_register_operand PARAMS ((rtx, enum machine_mode)); |
d5b7b3ae RE |
63 | extern int f_register_operand PARAMS ((rtx, enum machine_mode)); |
64 | extern int reg_or_int_operand PARAMS ((rtx, enum machine_mode)); | |
65 | extern int arm_reload_memory_operand PARAMS ((rtx, enum machine_mode)); | |
66 | extern int arm_rhs_operand PARAMS ((rtx, enum machine_mode)); | |
67 | extern int arm_rhsm_operand PARAMS ((rtx, enum machine_mode)); | |
68 | extern int arm_add_operand PARAMS ((rtx, enum machine_mode)); | |
69 | extern int arm_not_operand PARAMS ((rtx, enum machine_mode)); | |
70 | extern int offsettable_memory_operand PARAMS ((rtx, enum machine_mode)); | |
71 | extern int alignable_memory_operand PARAMS ((rtx, enum machine_mode)); | |
72 | extern int bad_signed_byte_operand PARAMS ((rtx, enum machine_mode)); | |
73 | extern int fpu_rhs_operand PARAMS ((rtx, enum machine_mode)); | |
74 | extern int fpu_add_operand PARAMS ((rtx, enum machine_mode)); | |
75 | extern int power_of_two_operand PARAMS ((rtx, enum machine_mode)); | |
76 | extern int nonimmediate_di_operand PARAMS ((rtx, enum machine_mode)); | |
77 | extern int di_operand PARAMS ((rtx, enum machine_mode)); | |
78 | extern int nonimmediate_soft_df_operand PARAMS ((rtx, enum machine_mode)); | |
79 | extern int soft_df_operand PARAMS ((rtx, enum machine_mode)); | |
80 | extern int index_operand PARAMS ((rtx, enum machine_mode)); | |
81 | extern int const_shift_operand PARAMS ((rtx, enum machine_mode)); | |
05ed98a1 | 82 | extern int arm_comparison_operator PARAMS ((rtx, enum machine_mode)); |
d5b7b3ae RE |
83 | extern int shiftable_operator PARAMS ((rtx, enum machine_mode)); |
84 | extern int shift_operator PARAMS ((rtx, enum machine_mode)); | |
85 | extern int equality_operator PARAMS ((rtx, enum machine_mode)); | |
86 | extern int minmax_operator PARAMS ((rtx, enum machine_mode)); | |
87 | extern int cc_register PARAMS ((rtx, enum machine_mode)); | |
88 | extern int dominant_cc_register PARAMS ((rtx, enum machine_mode)); | |
89 | extern int logical_binary_operator PARAMS ((rtx, enum machine_mode)); | |
90 | extern int multi_register_push PARAMS ((rtx, enum machine_mode)); | |
91 | extern int load_multiple_operation PARAMS ((rtx, enum machine_mode)); | |
92 | extern int store_multiple_operation PARAMS ((rtx, enum machine_mode)); | |
93 | ||
94 | extern int symbol_mentioned_p PARAMS ((rtx)); | |
95 | extern int label_mentioned_p PARAMS ((rtx)); | |
96 | extern RTX_CODE minmax_code PARAMS ((rtx)); | |
97 | extern int adjacent_mem_locations PARAMS ((rtx, rtx)); | |
98 | extern int load_multiple_sequence PARAMS ((rtx *, int, int *, int *, | |
99 | HOST_WIDE_INT *)); | |
cd2b33d0 | 100 | extern const char * emit_ldm_seq PARAMS ((rtx *, int)); |
d5b7b3ae RE |
101 | extern int store_multiple_sequence PARAMS ((rtx *, int, int *, int *, |
102 | HOST_WIDE_INT *)); | |
cd2b33d0 | 103 | extern const char * emit_stm_seq PARAMS ((rtx *, int)); |
d5b7b3ae RE |
104 | extern rtx arm_gen_load_multiple PARAMS ((int, int, rtx, int, int, int, |
105 | int, int)); | |
106 | extern rtx arm_gen_store_multiple PARAMS ((int, int, rtx, int, int, int, | |
107 | int, int)); | |
108 | extern int arm_gen_movstrqi PARAMS ((rtx *)); | |
109 | extern rtx arm_gen_rotated_half_load PARAMS ((rtx)); | |
110 | extern enum machine_mode arm_select_cc_mode PARAMS ((RTX_CODE, rtx, rtx)); | |
111 | extern rtx arm_gen_compare_reg PARAMS ((RTX_CODE, rtx, rtx)); | |
112 | extern void arm_reload_in_hi PARAMS ((rtx *)); | |
113 | extern void arm_reload_out_hi PARAMS ((rtx *)); | |
114 | extern void arm_reorg PARAMS ((rtx)); | |
cd2b33d0 NC |
115 | extern const char * fp_immediate_constant PARAMS ((rtx)); |
116 | extern const char * output_call PARAMS ((rtx *)); | |
117 | extern const char * output_call_mem PARAMS ((rtx *)); | |
118 | extern const char * output_mov_long_double_fpu_from_arm PARAMS ((rtx *)); | |
119 | extern const char * output_mov_long_double_arm_from_fpu PARAMS ((rtx *)); | |
120 | extern const char * output_mov_long_double_arm_from_arm PARAMS ((rtx *)); | |
121 | extern const char * output_mov_double_fpu_from_arm PARAMS ((rtx *)); | |
122 | extern const char * output_mov_double_arm_from_fpu PARAMS ((rtx *)); | |
123 | extern const char * output_move_double PARAMS ((rtx *)); | |
124 | extern const char * output_mov_immediate PARAMS ((rtx *)); | |
125 | extern const char * output_add_immediate PARAMS ((rtx *)); | |
126 | extern const char * arithmetic_instr PARAMS ((rtx, int)); | |
d5b7b3ae | 127 | extern void output_ascii_pseudo_op PARAMS ((FILE *, const unsigned char *, int)); |
cd2b33d0 | 128 | extern const char * output_return_instruction PARAMS ((rtx, int, int)); |
d5b7b3ae RE |
129 | extern void arm_poke_function_name PARAMS ((FILE *, char *)); |
130 | extern void output_arm_prologue PARAMS ((FILE *, int)); | |
131 | extern void arm_print_operand PARAMS ((FILE *, rtx, int)); | |
b0888988 | 132 | extern void arm_print_operand_address PARAMS ((FILE *, rtx)); |
d5b7b3ae RE |
133 | extern void arm_final_prescan_insn PARAMS ((rtx)); |
134 | extern int arm_go_if_legitimate_address PARAMS ((enum machine_mode, rtx)); | |
135 | extern int arm_debugger_arg_offset PARAMS ((int, rtx)); | |
136 | extern int arm_is_longcall_p PARAMS ((rtx, int, int)); | |
137 | ||
138 | #if defined TREE_CODE | |
139 | extern rtx arm_function_arg PARAMS ((CUMULATIVE_ARGS *, | |
140 | enum machine_mode, tree, int)); | |
141 | extern void arm_init_cumulative_args PARAMS ((CUMULATIVE_ARGS *, tree, rtx, | |
142 | int)); | |
143 | #endif | |
144 | ||
eb3921e8 | 145 | #if defined AOF_ASSEMBLER |
d5b7b3ae RE |
146 | extern rtx aof_pic_entry PARAMS ((rtx)); |
147 | extern void aof_dump_pic_table PARAMS ((FILE *)); | |
148 | extern char * aof_text_section PARAMS ((void)); | |
149 | extern char * aof_data_section PARAMS ((void)); | |
150 | extern void aof_add_import PARAMS ((char *)); | |
151 | extern void aof_delete_import PARAMS ((char *)); | |
152 | extern void aof_dump_imports PARAMS ((FILE *)); | |
eb3921e8 NC |
153 | #endif /* AOF_ASSEMBLER */ |
154 | ||
eb3921e8 NC |
155 | #endif /* RTX_CODE */ |
156 | ||
d5b7b3ae RE |
157 | /* Thumb functions. */ |
158 | extern void arm_init_expanders PARAMS ((void)); | |
159 | extern int thumb_far_jump_used_p PARAMS ((int)); | |
cd2b33d0 | 160 | extern const char * thumb_unexpanded_epilogue PARAMS ((void)); |
d5b7b3ae RE |
161 | extern void thumb_expand_prologue PARAMS ((void)); |
162 | extern void thumb_expand_epilogue PARAMS ((void)); | |
163 | #ifdef TREE_CODE | |
164 | extern int is_called_in_ARM_mode PARAMS ((tree)); | |
165 | #endif | |
d5b7b3ae | 166 | extern int thumb_shiftable_const PARAMS ((unsigned HOST_WIDE_INT)); |
cd2b33d0 NC |
167 | extern void output_thumb_prologue PARAMS ((FILE *)); |
168 | #ifdef RTX_CODE | |
d5b7b3ae | 169 | extern void thumb_final_prescan_insn PARAMS ((rtx)); |
cd2b33d0 | 170 | extern const char * thumb_load_double_from_address |
d5b7b3ae | 171 | PARAMS ((rtx *)); |
cd2b33d0 | 172 | extern const char * thumb_output_move_mem_multiple |
d5b7b3ae RE |
173 | PARAMS ((int, rtx *)); |
174 | extern void thumb_expand_movstrqi PARAMS ((rtx *)); | |
175 | extern int thumb_cmp_operand PARAMS ((rtx, enum machine_mode)); | |
176 | extern rtx * thumb_legitimize_pic_address | |
177 | PARAMS ((rtx, enum machine_mode, rtx)); | |
178 | extern int thumb_go_if_legitimate_address | |
179 | PARAMS ((enum machine_mode, rtx)); | |
180 | extern rtx arm_return_addr PARAMS ((int, rtx)); | |
181 | extern void thumb_reload_out_hi PARAMS ((rtx *)); | |
182 | extern void thumb_reload_in_hi PARAMS ((rtx *)); | |
183 | #endif | |
184 | ||
185 | /* Defined in pe.c. */ | |
ac670723 RE |
186 | extern int arm_dllexport_name_p PARAMS ((const char *)); |
187 | extern int arm_dllimport_name_p PARAMS ((const char *)); | |
d5b7b3ae RE |
188 | |
189 | #ifdef TREE_CODE | |
190 | extern int arm_pe_valid_machine_decl_attribute | |
191 | PARAMS ((tree, tree, tree, tree)); | |
192 | extern tree arm_pe_merge_machine_decl_attributes | |
193 | PARAMS ((tree, tree)); | |
194 | extern void arm_pe_unique_section PARAMS ((tree, int)); | |
195 | extern void arm_pe_encode_section_info PARAMS ((tree)); | |
196 | extern int arm_dllexport_p PARAMS ((tree)); | |
197 | extern int arm_dllimport_p PARAMS ((tree)); | |
198 | extern void arm_mark_dllexport PARAMS ((tree)); | |
199 | extern void arm_mark_dllimport PARAMS ((tree)); | |
200 | #endif | |
8b97c5f8 | 201 | |
d19fb8e3 NC |
202 | extern void arm_init_builtins PARAMS ((void)); |
203 | #if defined (TREE_CODE) && defined (RTX_CODE) | |
204 | extern rtx arm_expand_builtin PARAMS ((tree, rtx, rtx, | |
205 | enum machine_mode, int)); | |
206 | #endif | |
207 | ||
8b97c5f8 ZW |
208 | #ifdef _C_PRAGMA_H /* included from code that cares about pragmas */ |
209 | extern void arm_pr_long_calls PARAMS ((cpp_reader *)); | |
210 | extern void arm_pr_no_long_calls PARAMS ((cpp_reader *)); | |
211 | extern void arm_pr_long_calls_off PARAMS ((cpp_reader *)); | |
212 | #endif | |
213 | ||
214 | #endif /* GCC_ARM_PROTOS_H */ |