1 /* Prototypes for exported functions defined in arm.c and pe.c
2 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
3 Free Software Foundation, Inc.
4 Contributed by Richard Earnshaw (rearnsha@arm.com)
5 Minor hacks by Nick Clifton (nickc@cygnus.com)
7 This file is part of GCC.
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 2, or (at your option)
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.
19 You should have received a copy of the GNU General Public License
20 along with GCC; see the file COPYING. If not, write to
21 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
22 Boston, MA 02110-1301, USA. */
24 #ifndef GCC_ARM_PROTOS_H
25 #define GCC_ARM_PROTOS_H
27 extern void arm_override_options (void);
28 extern int use_return_insn (int, rtx
);
29 extern int 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 unsigned long arm_current_func_type (void);
37 extern HOST_WIDE_INT
arm_compute_initial_elimination_offset (unsigned int,
39 extern HOST_WIDE_INT
thumb_compute_initial_elimination_offset (unsigned int,
41 extern unsigned int arm_dbx_register_number (unsigned int);
42 extern void arm_output_fn_unwind (FILE *, bool);
46 extern int arm_return_in_memory (tree
);
47 extern void arm_encode_call_attribute (tree
, int);
50 extern bool arm_vector_mode_supported_p (enum machine_mode
);
51 extern int arm_hard_regno_mode_ok (unsigned int, enum machine_mode
);
52 extern int const_ok_for_arm (HOST_WIDE_INT
);
53 extern int arm_split_constant (RTX_CODE
, enum machine_mode
, rtx
,
54 HOST_WIDE_INT
, rtx
, rtx
, int);
55 extern RTX_CODE
arm_canonicalize_comparison (RTX_CODE
, enum machine_mode
,
57 extern int legitimate_pic_operand_p (rtx
);
58 extern rtx
legitimize_pic_address (rtx
, enum machine_mode
, rtx
);
59 extern rtx
legitimize_tls_address (rtx
, rtx
);
60 extern int arm_legitimate_address_p (enum machine_mode
, rtx
, RTX_CODE
, int);
61 extern int thumb_legitimate_address_p (enum machine_mode
, rtx
, int);
62 extern int thumb_legitimate_offset_p (enum machine_mode
, HOST_WIDE_INT
);
63 extern rtx
arm_legitimize_address (rtx
, rtx
, enum machine_mode
);
64 extern rtx
thumb_legitimize_address (rtx
, rtx
, enum machine_mode
);
65 extern rtx
thumb_legitimize_reload_address (rtx
*, enum machine_mode
, int, int,
67 extern int arm_const_double_rtx (rtx
);
68 extern int neg_const_double_rtx_ok_for_fpa (rtx
);
69 extern enum reg_class
vfp_secondary_reload_class (enum machine_mode
, rtx
);
70 extern bool arm_tls_referenced_p (rtx
);
72 extern int cirrus_memory_offset (rtx
);
73 extern int arm_coproc_mem_operand (rtx
, bool);
74 extern int arm_no_early_store_addr_dep (rtx
, rtx
);
75 extern int arm_no_early_alu_shift_dep (rtx
, rtx
);
76 extern int arm_no_early_alu_shift_value_dep (rtx
, rtx
);
77 extern int arm_no_early_mul_dep (rtx
, rtx
);
79 extern int tls_mentioned_p (rtx
);
80 extern int symbol_mentioned_p (rtx
);
81 extern int label_mentioned_p (rtx
);
82 extern RTX_CODE
minmax_code (rtx
);
83 extern int adjacent_mem_locations (rtx
, rtx
);
84 extern int load_multiple_sequence (rtx
*, int, int *, int *, HOST_WIDE_INT
*);
85 extern const char *emit_ldm_seq (rtx
*, int);
86 extern int store_multiple_sequence (rtx
*, int, int *, int *, HOST_WIDE_INT
*);
87 extern const char * emit_stm_seq (rtx
*, int);
88 extern rtx
arm_gen_load_multiple (int, int, rtx
, int, int,
89 rtx
, HOST_WIDE_INT
*);
90 extern rtx
arm_gen_store_multiple (int, int, rtx
, int, int,
91 rtx
, HOST_WIDE_INT
*);
92 extern int arm_gen_movmemqi (rtx
*);
93 extern enum machine_mode
arm_select_cc_mode (RTX_CODE
, rtx
, rtx
);
94 extern enum machine_mode
arm_select_dominance_cc_mode (rtx
, rtx
,
96 extern rtx
arm_gen_compare_reg (RTX_CODE
, rtx
, rtx
);
97 extern rtx
arm_gen_return_addr_mask (void);
98 extern void arm_reload_in_hi (rtx
*);
99 extern void arm_reload_out_hi (rtx
*);
100 extern int arm_const_double_inline_cost (rtx
);
101 extern bool arm_const_double_by_parts (rtx
);
102 extern const char *fp_immediate_constant (rtx
);
103 extern const char *output_call (rtx
*);
104 extern const char *output_call_mem (rtx
*);
105 extern const char *output_mov_long_double_fpa_from_arm (rtx
*);
106 extern const char *output_mov_long_double_arm_from_fpa (rtx
*);
107 extern const char *output_mov_long_double_arm_from_arm (rtx
*);
108 extern const char *output_mov_double_fpa_from_arm (rtx
*);
109 extern const char *output_mov_double_arm_from_fpa (rtx
*);
110 extern const char *output_move_double (rtx
*);
111 extern const char *output_add_immediate (rtx
*);
112 extern const char *arithmetic_instr (rtx
, int);
113 extern void output_ascii_pseudo_op (FILE *, const unsigned char *, int);
114 extern const char *output_return_instruction (rtx
, int, int);
115 extern void arm_poke_function_name (FILE *, const char *);
116 extern void arm_print_operand (FILE *, rtx
, int);
117 extern void arm_print_operand_address (FILE *, rtx
);
118 extern void arm_final_prescan_insn (rtx
);
119 extern int arm_go_if_legitimate_address (enum machine_mode
, rtx
);
120 extern int arm_debugger_arg_offset (int, rtx
);
121 extern int arm_is_longcall_p (rtx
, int, int);
122 extern int arm_emit_vector_const (FILE *, rtx
);
123 extern const char * arm_output_load_gr (rtx
*);
124 extern const char *vfp_output_fstmx (rtx
*);
125 extern void arm_set_return_address (rtx
, rtx
);
126 extern int arm_eliminable_register (rtx
);
128 extern bool arm_output_addr_const_extra (FILE *, rtx
);
130 #if defined TREE_CODE
131 extern rtx
arm_function_arg (CUMULATIVE_ARGS
*, enum machine_mode
, tree
, int);
132 extern void arm_init_cumulative_args (CUMULATIVE_ARGS
*, tree
, rtx
, tree
);
133 extern bool arm_pad_arg_upward (enum machine_mode
, tree
);
134 extern bool arm_pad_reg_upward (enum machine_mode
, tree
, int);
135 extern bool arm_needs_doubleword_align (enum machine_mode
, tree
);
136 extern rtx
arm_function_value(tree
, tree
);
138 extern int arm_apply_result_size (void);
140 #if defined AOF_ASSEMBLER
141 extern rtx
aof_pic_entry (rtx
);
142 extern char *aof_text_section (void);
143 extern char *aof_data_section (void);
144 extern void aof_add_import (const char *);
145 extern void aof_delete_import (const char *);
146 extern void zero_init_section (void);
147 extern void common_section (void);
148 #endif /* AOF_ASSEMBLER */
150 #endif /* RTX_CODE */
152 extern int arm_float_words_big_endian (void);
154 /* Thumb functions. */
155 extern void arm_init_expanders (void);
156 extern const char *thumb_unexpanded_epilogue (void);
157 extern void thumb_expand_prologue (void);
158 extern void thumb_expand_epilogue (void);
160 extern int is_called_in_ARM_mode (tree
);
162 extern int thumb_shiftable_const (unsigned HOST_WIDE_INT
);
164 extern void thumb_final_prescan_insn (rtx
);
165 extern const char *thumb_load_double_from_address (rtx
*);
166 extern const char *thumb_output_move_mem_multiple (int, rtx
*);
167 extern const char *thumb_call_via_reg (rtx
);
168 extern void thumb_expand_movmemqi (rtx
*);
169 extern int thumb_go_if_legitimate_address (enum machine_mode
, rtx
);
170 extern rtx
arm_return_addr (int, rtx
);
171 extern void thumb_reload_out_hi (rtx
*);
172 extern void thumb_reload_in_hi (rtx
*);
173 extern void thumb_set_return_address (rtx
, rtx
);
176 /* Defined in pe.c. */
177 extern int arm_dllexport_name_p (const char *);
178 extern int arm_dllimport_name_p (const char *);
181 extern void arm_pe_unique_section (tree
, int);
182 extern void arm_pe_encode_section_info (tree
, rtx
, int);
183 extern int arm_dllexport_p (tree
);
184 extern int arm_dllimport_p (tree
);
185 extern void arm_mark_dllexport (tree
);
186 extern void arm_mark_dllimport (tree
);
189 extern void arm_pr_long_calls (struct cpp_reader
*);
190 extern void arm_pr_no_long_calls (struct cpp_reader
*);
191 extern void arm_pr_long_calls_off (struct cpp_reader
*);
193 #endif /* ! GCC_ARM_PROTOS_H */