1 |
282 |
jeremybenn |
/* Prototypes for exported functions defined in arm.c and pe.c
|
2 |
|
|
Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
|
3 |
|
|
2009 Free Software Foundation, Inc.
|
4 |
|
|
Contributed by Richard Earnshaw (rearnsha@arm.com)
|
5 |
|
|
Minor hacks by Nick Clifton (nickc@cygnus.com)
|
6 |
|
|
|
7 |
|
|
This file is part of GCC.
|
8 |
|
|
|
9 |
|
|
GCC is free software; you can redistribute it and/or modify
|
10 |
|
|
it under the terms of the GNU General Public License as published by
|
11 |
|
|
the Free Software Foundation; either version 3, or (at your option)
|
12 |
|
|
any later version.
|
13 |
|
|
|
14 |
|
|
GCC is distributed in the hope that it will be useful,
|
15 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17 |
|
|
GNU General Public License for more details.
|
18 |
|
|
|
19 |
|
|
You should have received a copy of the GNU General Public License
|
20 |
|
|
along with GCC; see the file COPYING3. If not see
|
21 |
|
|
<http://www.gnu.org/licenses/>. */
|
22 |
|
|
|
23 |
|
|
#ifndef GCC_ARM_PROTOS_H
|
24 |
|
|
#define GCC_ARM_PROTOS_H
|
25 |
|
|
|
26 |
|
|
extern void arm_override_options (void);
|
27 |
|
|
extern void arm_optimization_options (int, int);
|
28 |
|
|
extern int use_return_insn (int, rtx);
|
29 |
|
|
extern enum reg_class arm_regno_class (int);
|
30 |
|
|
extern void arm_load_pic_register (unsigned long);
|
31 |
|
|
extern int arm_volatile_func (void);
|
32 |
|
|
extern const char *arm_output_epilogue (rtx);
|
33 |
|
|
extern void arm_expand_prologue (void);
|
34 |
|
|
extern const char *arm_strip_name_encoding (const char *);
|
35 |
|
|
extern void arm_asm_output_labelref (FILE *, const char *);
|
36 |
|
|
extern void thumb2_asm_output_opcode (FILE *);
|
37 |
|
|
extern unsigned long arm_current_func_type (void);
|
38 |
|
|
extern HOST_WIDE_INT arm_compute_initial_elimination_offset (unsigned int,
|
39 |
|
|
unsigned int);
|
40 |
|
|
extern HOST_WIDE_INT thumb_compute_initial_elimination_offset (unsigned int,
|
41 |
|
|
unsigned int);
|
42 |
|
|
extern unsigned int arm_dbx_register_number (unsigned int);
|
43 |
|
|
extern void arm_output_fn_unwind (FILE *, bool);
|
44 |
|
|
|
45 |
|
|
|
46 |
|
|
#ifdef RTX_CODE
|
47 |
|
|
extern bool arm_vector_mode_supported_p (enum machine_mode);
|
48 |
|
|
extern int arm_hard_regno_mode_ok (unsigned int, enum machine_mode);
|
49 |
|
|
extern int const_ok_for_arm (HOST_WIDE_INT);
|
50 |
|
|
extern int arm_split_constant (RTX_CODE, enum machine_mode, rtx,
|
51 |
|
|
HOST_WIDE_INT, rtx, rtx, int);
|
52 |
|
|
extern RTX_CODE arm_canonicalize_comparison (RTX_CODE, enum machine_mode,
|
53 |
|
|
rtx *);
|
54 |
|
|
extern int legitimate_pic_operand_p (rtx);
|
55 |
|
|
extern rtx legitimize_pic_address (rtx, enum machine_mode, rtx);
|
56 |
|
|
extern rtx legitimize_tls_address (rtx, rtx);
|
57 |
|
|
extern int arm_legitimate_address_outer_p (enum machine_mode, rtx, RTX_CODE, int);
|
58 |
|
|
extern int thumb_legitimate_offset_p (enum machine_mode, HOST_WIDE_INT);
|
59 |
|
|
extern rtx thumb_legitimize_reload_address (rtx *, enum machine_mode, int, int,
|
60 |
|
|
int);
|
61 |
|
|
extern int arm_const_double_rtx (rtx);
|
62 |
|
|
extern int neg_const_double_rtx_ok_for_fpa (rtx);
|
63 |
|
|
extern int vfp3_const_double_rtx (rtx);
|
64 |
|
|
extern int neon_immediate_valid_for_move (rtx, enum machine_mode, rtx *, int *);
|
65 |
|
|
extern int neon_immediate_valid_for_logic (rtx, enum machine_mode, int, rtx *,
|
66 |
|
|
int *);
|
67 |
|
|
extern char *neon_output_logic_immediate (const char *, rtx *,
|
68 |
|
|
enum machine_mode, int, int);
|
69 |
|
|
extern void neon_pairwise_reduce (rtx, rtx, enum machine_mode,
|
70 |
|
|
rtx (*) (rtx, rtx, rtx));
|
71 |
|
|
extern rtx neon_make_constant (rtx);
|
72 |
|
|
extern void neon_expand_vector_init (rtx, rtx);
|
73 |
|
|
extern void neon_lane_bounds (rtx, HOST_WIDE_INT, HOST_WIDE_INT);
|
74 |
|
|
extern void neon_const_bounds (rtx, HOST_WIDE_INT, HOST_WIDE_INT);
|
75 |
|
|
extern HOST_WIDE_INT neon_element_bits (enum machine_mode);
|
76 |
|
|
extern void neon_reinterpret (rtx, rtx);
|
77 |
|
|
extern void neon_emit_pair_result_insn (enum machine_mode,
|
78 |
|
|
rtx (*) (rtx, rtx, rtx, rtx),
|
79 |
|
|
rtx, rtx, rtx);
|
80 |
|
|
extern void neon_disambiguate_copy (rtx *, rtx *, rtx *, unsigned int);
|
81 |
|
|
extern enum reg_class coproc_secondary_reload_class (enum machine_mode, rtx,
|
82 |
|
|
bool);
|
83 |
|
|
extern bool arm_tls_referenced_p (rtx);
|
84 |
|
|
extern bool arm_cannot_force_const_mem (rtx);
|
85 |
|
|
|
86 |
|
|
extern int cirrus_memory_offset (rtx);
|
87 |
|
|
extern int arm_coproc_mem_operand (rtx, bool);
|
88 |
|
|
extern int neon_vector_mem_operand (rtx, int);
|
89 |
|
|
extern int neon_struct_mem_operand (rtx);
|
90 |
|
|
extern int arm_no_early_store_addr_dep (rtx, rtx);
|
91 |
|
|
extern int arm_no_early_alu_shift_dep (rtx, rtx);
|
92 |
|
|
extern int arm_no_early_alu_shift_value_dep (rtx, rtx);
|
93 |
|
|
extern int arm_no_early_mul_dep (rtx, rtx);
|
94 |
|
|
extern int arm_mac_accumulator_is_mul_result (rtx, rtx);
|
95 |
|
|
|
96 |
|
|
extern int tls_mentioned_p (rtx);
|
97 |
|
|
extern int symbol_mentioned_p (rtx);
|
98 |
|
|
extern int label_mentioned_p (rtx);
|
99 |
|
|
extern RTX_CODE minmax_code (rtx);
|
100 |
|
|
extern int adjacent_mem_locations (rtx, rtx);
|
101 |
|
|
extern int load_multiple_sequence (rtx *, int, int *, int *, HOST_WIDE_INT *);
|
102 |
|
|
extern const char *emit_ldm_seq (rtx *, int);
|
103 |
|
|
extern int store_multiple_sequence (rtx *, int, int *, int *, HOST_WIDE_INT *);
|
104 |
|
|
extern const char * emit_stm_seq (rtx *, int);
|
105 |
|
|
extern rtx arm_gen_load_multiple (int, int, rtx, int, int,
|
106 |
|
|
rtx, HOST_WIDE_INT *);
|
107 |
|
|
extern rtx arm_gen_store_multiple (int, int, rtx, int, int,
|
108 |
|
|
rtx, HOST_WIDE_INT *);
|
109 |
|
|
extern int arm_gen_movmemqi (rtx *);
|
110 |
|
|
extern enum machine_mode arm_select_cc_mode (RTX_CODE, rtx, rtx);
|
111 |
|
|
extern enum machine_mode arm_select_dominance_cc_mode (rtx, rtx,
|
112 |
|
|
HOST_WIDE_INT);
|
113 |
|
|
extern rtx arm_gen_compare_reg (RTX_CODE, rtx, rtx);
|
114 |
|
|
extern rtx arm_gen_return_addr_mask (void);
|
115 |
|
|
extern void arm_reload_in_hi (rtx *);
|
116 |
|
|
extern void arm_reload_out_hi (rtx *);
|
117 |
|
|
extern int arm_const_double_inline_cost (rtx);
|
118 |
|
|
extern bool arm_const_double_by_parts (rtx);
|
119 |
|
|
extern const char *fp_immediate_constant (rtx);
|
120 |
|
|
extern void arm_emit_call_insn (rtx, rtx);
|
121 |
|
|
extern const char *output_call (rtx *);
|
122 |
|
|
extern const char *output_call_mem (rtx *);
|
123 |
|
|
void arm_emit_movpair (rtx, rtx);
|
124 |
|
|
extern const char *output_mov_long_double_fpa_from_arm (rtx *);
|
125 |
|
|
extern const char *output_mov_long_double_arm_from_fpa (rtx *);
|
126 |
|
|
extern const char *output_mov_long_double_arm_from_arm (rtx *);
|
127 |
|
|
extern const char *output_mov_double_fpa_from_arm (rtx *);
|
128 |
|
|
extern const char *output_mov_double_arm_from_fpa (rtx *);
|
129 |
|
|
extern const char *output_move_double (rtx *);
|
130 |
|
|
extern const char *output_move_quad (rtx *);
|
131 |
|
|
extern const char *output_move_vfp (rtx *operands);
|
132 |
|
|
extern const char *output_move_neon (rtx *operands);
|
133 |
|
|
extern int arm_attr_length_move_neon (rtx);
|
134 |
|
|
extern const char *output_add_immediate (rtx *);
|
135 |
|
|
extern const char *arithmetic_instr (rtx, int);
|
136 |
|
|
extern void output_ascii_pseudo_op (FILE *, const unsigned char *, int);
|
137 |
|
|
extern const char *output_return_instruction (rtx, int, int);
|
138 |
|
|
extern void arm_poke_function_name (FILE *, const char *);
|
139 |
|
|
extern void arm_print_operand (FILE *, rtx, int);
|
140 |
|
|
extern void arm_print_operand_address (FILE *, rtx);
|
141 |
|
|
extern void arm_final_prescan_insn (rtx);
|
142 |
|
|
extern int arm_debugger_arg_offset (int, rtx);
|
143 |
|
|
extern bool arm_is_long_call_p (tree);
|
144 |
|
|
extern int arm_emit_vector_const (FILE *, rtx);
|
145 |
|
|
extern void arm_emit_fp16_const (rtx c);
|
146 |
|
|
extern const char * arm_output_load_gr (rtx *);
|
147 |
|
|
extern const char *vfp_output_fstmd (rtx *);
|
148 |
|
|
extern void arm_set_return_address (rtx, rtx);
|
149 |
|
|
extern int arm_eliminable_register (rtx);
|
150 |
|
|
extern const char *arm_output_shift(rtx *, int);
|
151 |
|
|
|
152 |
|
|
extern bool arm_output_addr_const_extra (FILE *, rtx);
|
153 |
|
|
|
154 |
|
|
#if defined TREE_CODE
|
155 |
|
|
extern rtx arm_function_arg (CUMULATIVE_ARGS *, enum machine_mode, tree, int);
|
156 |
|
|
extern void arm_function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode,
|
157 |
|
|
tree, bool);
|
158 |
|
|
extern void arm_init_cumulative_args (CUMULATIVE_ARGS *, tree, rtx, tree);
|
159 |
|
|
extern bool arm_pad_arg_upward (enum machine_mode, const_tree);
|
160 |
|
|
extern bool arm_pad_reg_upward (enum machine_mode, tree, int);
|
161 |
|
|
extern bool arm_needs_doubleword_align (enum machine_mode, tree);
|
162 |
|
|
#endif
|
163 |
|
|
extern int arm_apply_result_size (void);
|
164 |
|
|
extern rtx aapcs_libcall_value (enum machine_mode);
|
165 |
|
|
|
166 |
|
|
#endif /* RTX_CODE */
|
167 |
|
|
|
168 |
|
|
extern int arm_float_words_big_endian (void);
|
169 |
|
|
|
170 |
|
|
/* Thumb functions. */
|
171 |
|
|
extern void arm_init_expanders (void);
|
172 |
|
|
extern const char *thumb_unexpanded_epilogue (void);
|
173 |
|
|
extern void thumb1_expand_prologue (void);
|
174 |
|
|
extern void thumb1_expand_epilogue (void);
|
175 |
|
|
#ifdef TREE_CODE
|
176 |
|
|
extern int is_called_in_ARM_mode (tree);
|
177 |
|
|
#endif
|
178 |
|
|
extern int thumb_shiftable_const (unsigned HOST_WIDE_INT);
|
179 |
|
|
#ifdef RTX_CODE
|
180 |
|
|
extern void thumb1_final_prescan_insn (rtx);
|
181 |
|
|
extern void thumb2_final_prescan_insn (rtx);
|
182 |
|
|
extern const char *thumb_load_double_from_address (rtx *);
|
183 |
|
|
extern const char *thumb_output_move_mem_multiple (int, rtx *);
|
184 |
|
|
extern const char *thumb_call_via_reg (rtx);
|
185 |
|
|
extern void thumb_expand_movmemqi (rtx *);
|
186 |
|
|
extern rtx arm_return_addr (int, rtx);
|
187 |
|
|
extern void thumb_reload_out_hi (rtx *);
|
188 |
|
|
extern void thumb_reload_in_hi (rtx *);
|
189 |
|
|
extern void thumb_set_return_address (rtx, rtx);
|
190 |
|
|
extern const char *thumb1_output_casesi (rtx *);
|
191 |
|
|
extern const char *thumb2_output_casesi (rtx *);
|
192 |
|
|
#endif
|
193 |
|
|
|
194 |
|
|
/* Defined in pe.c. */
|
195 |
|
|
extern int arm_dllexport_name_p (const char *);
|
196 |
|
|
extern int arm_dllimport_name_p (const char *);
|
197 |
|
|
|
198 |
|
|
#ifdef TREE_CODE
|
199 |
|
|
extern void arm_pe_unique_section (tree, int);
|
200 |
|
|
extern void arm_pe_encode_section_info (tree, rtx, int);
|
201 |
|
|
extern int arm_dllexport_p (tree);
|
202 |
|
|
extern int arm_dllimport_p (tree);
|
203 |
|
|
extern void arm_mark_dllexport (tree);
|
204 |
|
|
extern void arm_mark_dllimport (tree);
|
205 |
|
|
#endif
|
206 |
|
|
|
207 |
|
|
extern void arm_pr_long_calls (struct cpp_reader *);
|
208 |
|
|
extern void arm_pr_no_long_calls (struct cpp_reader *);
|
209 |
|
|
extern void arm_pr_long_calls_off (struct cpp_reader *);
|
210 |
|
|
|
211 |
|
|
extern void arm_lang_object_attributes_init(void);
|
212 |
|
|
|
213 |
|
|
extern const char *arm_mangle_type (const_tree);
|
214 |
|
|
|
215 |
|
|
extern void arm_order_regs_for_local_alloc (void);
|
216 |
|
|
|
217 |
|
|
#endif /* ! GCC_ARM_PROTOS_H */
|