1 /* Prototypes for exported functions defined in arm.c and pe.c
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3 Contributed by Richard Earnshaw (rearnsha@arm.com)
4 Minor hacks by Nick Clifton (nickc@cygnus.com)
6 This file is part of GNU CC.
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)
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.
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. */
23 #ifndef GCC_ARM_PROTOS_H
24 #define GCC_ARM_PROTOS_H
26 extern void rdata_section
PARAMS ((void));
27 extern void arm_override_options
PARAMS ((void));
28 extern int use_return_insn
PARAMS ((int));
29 extern int arm_regno_class
PARAMS ((int));
30 extern void arm_finalize_pic
PARAMS ((int));
31 extern int arm_volatile_func
PARAMS ((void));
32 extern const char * arm_output_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));
36 extern const char * arm_strip_name_encoding
PARAMS ((const char *));
37 extern void arm_asm_output_labelref
PARAMS ((FILE *, const char *));
38 extern unsigned long arm_current_func_type
PARAMS ((void));
39 extern unsigned int arm_compute_initial_elimination_offset
PARAMS ((unsigned int, unsigned int));
42 extern int arm_return_in_memory
PARAMS ((tree
));
43 extern void arm_encode_call_attribute
PARAMS ((tree
, int));
44 extern int arm_function_ok_for_sibcall
PARAMS ((tree
));
47 extern int arm_hard_regno_mode_ok
PARAMS ((unsigned int, enum machine_mode
));
48 extern int const_ok_for_arm
PARAMS ((HOST_WIDE_INT
));
49 extern int arm_split_constant
PARAMS ((RTX_CODE
, enum machine_mode
,
50 HOST_WIDE_INT
, rtx
, rtx
, int));
51 extern RTX_CODE arm_canonicalize_comparison
PARAMS ((RTX_CODE
, rtx
*));
52 extern int legitimate_pic_operand_p
PARAMS ((rtx
));
53 extern rtx legitimize_pic_address
PARAMS ((rtx
, enum machine_mode
, rtx
));
54 extern int arm_rtx_costs
PARAMS ((rtx
, RTX_CODE
, RTX_CODE
));
55 extern int const_double_rtx_ok_for_fpu
PARAMS ((rtx
));
56 extern int neg_const_double_rtx_ok_for_fpu
PARAMS ((rtx
));
59 extern int s_register_operand
PARAMS ((rtx
, enum machine_mode
));
60 extern int arm_hard_register_operand
PARAMS ((rtx
, enum machine_mode
));
61 extern int f_register_operand
PARAMS ((rtx
, enum machine_mode
));
62 extern int reg_or_int_operand
PARAMS ((rtx
, enum machine_mode
));
63 extern int arm_reload_memory_operand
PARAMS ((rtx
, enum machine_mode
));
64 extern int arm_rhs_operand
PARAMS ((rtx
, enum machine_mode
));
65 extern int arm_rhsm_operand
PARAMS ((rtx
, enum machine_mode
));
66 extern int arm_add_operand
PARAMS ((rtx
, enum machine_mode
));
67 extern int arm_not_operand
PARAMS ((rtx
, enum machine_mode
));
68 extern int offsettable_memory_operand
PARAMS ((rtx
, enum machine_mode
));
69 extern int alignable_memory_operand
PARAMS ((rtx
, enum machine_mode
));
70 extern int bad_signed_byte_operand
PARAMS ((rtx
, enum machine_mode
));
71 extern int fpu_rhs_operand
PARAMS ((rtx
, enum machine_mode
));
72 extern int fpu_add_operand
PARAMS ((rtx
, enum machine_mode
));
73 extern int power_of_two_operand
PARAMS ((rtx
, enum machine_mode
));
74 extern int nonimmediate_di_operand
PARAMS ((rtx
, enum machine_mode
));
75 extern int di_operand
PARAMS ((rtx
, enum machine_mode
));
76 extern int nonimmediate_soft_df_operand
PARAMS ((rtx
, enum machine_mode
));
77 extern int soft_df_operand
PARAMS ((rtx
, enum machine_mode
));
78 extern int index_operand
PARAMS ((rtx
, enum machine_mode
));
79 extern int const_shift_operand
PARAMS ((rtx
, enum machine_mode
));
80 extern int arm_comparison_operator
PARAMS ((rtx
, enum machine_mode
));
81 extern int shiftable_operator
PARAMS ((rtx
, enum machine_mode
));
82 extern int shift_operator
PARAMS ((rtx
, enum machine_mode
));
83 extern int equality_operator
PARAMS ((rtx
, enum machine_mode
));
84 extern int minmax_operator
PARAMS ((rtx
, enum machine_mode
));
85 extern int cc_register
PARAMS ((rtx
, enum machine_mode
));
86 extern int dominant_cc_register
PARAMS ((rtx
, enum machine_mode
));
87 extern int logical_binary_operator
PARAMS ((rtx
, enum machine_mode
));
88 extern int multi_register_push
PARAMS ((rtx
, enum machine_mode
));
89 extern int load_multiple_operation
PARAMS ((rtx
, enum machine_mode
));
90 extern int store_multiple_operation
PARAMS ((rtx
, enum machine_mode
));
92 extern int symbol_mentioned_p
PARAMS ((rtx
));
93 extern int label_mentioned_p
PARAMS ((rtx
));
94 extern RTX_CODE minmax_code
PARAMS ((rtx
));
95 extern int adjacent_mem_locations
PARAMS ((rtx
, rtx
));
96 extern int load_multiple_sequence
PARAMS ((rtx
*, int, int *, int *,
98 extern const char * emit_ldm_seq
PARAMS ((rtx
*, int));
99 extern int store_multiple_sequence
PARAMS ((rtx
*, int, int *, int *,
101 extern const char * emit_stm_seq
PARAMS ((rtx
*, int));
102 extern rtx arm_gen_load_multiple
PARAMS ((int, int, rtx
, int, int, int,
104 extern rtx arm_gen_store_multiple
PARAMS ((int, int, rtx
, int, int, int,
106 extern int arm_gen_movstrqi
PARAMS ((rtx
*));
107 extern rtx arm_gen_rotated_half_load
PARAMS ((rtx
));
108 extern enum machine_mode arm_select_cc_mode
PARAMS ((RTX_CODE
, rtx
, rtx
));
109 extern rtx arm_gen_compare_reg
PARAMS ((RTX_CODE
, rtx
, rtx
));
110 extern void arm_reload_in_hi
PARAMS ((rtx
*));
111 extern void arm_reload_out_hi
PARAMS ((rtx
*));
112 extern void arm_reorg
PARAMS ((rtx
));
113 extern const char * fp_immediate_constant
PARAMS ((rtx
));
114 extern const char * output_call
PARAMS ((rtx
*));
115 extern const char * output_call_mem
PARAMS ((rtx
*));
116 extern const char * output_mov_long_double_fpu_from_arm
PARAMS ((rtx
*));
117 extern const char * output_mov_long_double_arm_from_fpu
PARAMS ((rtx
*));
118 extern const char * output_mov_long_double_arm_from_arm
PARAMS ((rtx
*));
119 extern const char * output_mov_double_fpu_from_arm
PARAMS ((rtx
*));
120 extern const char * output_mov_double_arm_from_fpu
PARAMS ((rtx
*));
121 extern const char * output_move_double
PARAMS ((rtx
*));
122 extern const char * output_mov_immediate
PARAMS ((rtx
*));
123 extern const char * output_add_immediate
PARAMS ((rtx
*));
124 extern const char * arithmetic_instr
PARAMS ((rtx
, int));
125 extern void output_ascii_pseudo_op
PARAMS ((FILE *, const unsigned char *, int));
126 extern const char * output_return_instruction
PARAMS ((rtx
, int, int));
127 extern void arm_poke_function_name
PARAMS ((FILE *, const char *));
128 extern void arm_print_operand
PARAMS ((FILE *, rtx
, int));
129 extern void arm_print_operand_address
PARAMS ((FILE *, rtx
));
130 extern void arm_final_prescan_insn
PARAMS ((rtx
));
131 extern int arm_go_if_legitimate_address
PARAMS ((enum machine_mode
, rtx
));
132 extern int arm_debugger_arg_offset
PARAMS ((int, rtx
));
133 extern int arm_is_longcall_p
PARAMS ((rtx
, int, int));
135 #if defined TREE_CODE
136 extern rtx arm_function_arg
PARAMS ((CUMULATIVE_ARGS
*,
137 enum machine_mode
, tree
, int));
138 extern void arm_init_cumulative_args
PARAMS ((CUMULATIVE_ARGS
*, tree
, rtx
,
142 #if defined AOF_ASSEMBLER
143 extern rtx aof_pic_entry
PARAMS ((rtx
));
144 extern void aof_dump_pic_table
PARAMS ((FILE *));
145 extern char * aof_text_section
PARAMS ((void));
146 extern char * aof_data_section
PARAMS ((void));
147 extern void aof_add_import
PARAMS ((const char *));
148 extern void aof_delete_import
PARAMS ((const char *));
149 extern void aof_dump_imports
PARAMS ((FILE *));
150 extern void zero_init_section
PARAMS ((void));
151 extern void common_section
PARAMS ((void));
152 #endif /* AOF_ASSEMBLER */
154 #endif /* RTX_CODE */
156 extern int arm_float_words_big_endian
PARAMS ((void));
158 /* Thumb functions. */
159 extern void arm_init_expanders
PARAMS ((void));
160 extern int thumb_far_jump_used_p
PARAMS ((int));
161 extern const char * thumb_unexpanded_epilogue
PARAMS ((void));
162 extern void thumb_expand_prologue
PARAMS ((void));
163 extern void thumb_expand_epilogue
PARAMS ((void));
165 extern int is_called_in_ARM_mode
PARAMS ((tree
));
167 extern int thumb_shiftable_const
PARAMS ((unsigned HOST_WIDE_INT
));
169 extern void thumb_final_prescan_insn
PARAMS ((rtx
));
170 extern const char * thumb_load_double_from_address
172 extern const char * thumb_output_move_mem_multiple
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
*));
185 /* Defined in pe.c. */
186 extern int arm_dllexport_name_p
PARAMS ((const char *));
187 extern int arm_dllimport_name_p
PARAMS ((const char *));
190 extern void arm_pe_unique_section
PARAMS ((tree
, int));
191 extern void arm_pe_encode_section_info
PARAMS ((tree
, int));
192 extern int arm_dllexport_p
PARAMS ((tree
));
193 extern int arm_dllimport_p
PARAMS ((tree
));
194 extern void arm_mark_dllexport
PARAMS ((tree
));
195 extern void arm_mark_dllimport
PARAMS ((tree
));
198 extern void arm_init_builtins
PARAMS ((void));
199 #if defined (TREE_CODE) && defined (RTX_CODE)
200 extern rtx arm_expand_builtin
PARAMS ((tree
, rtx
, rtx
,
201 enum machine_mode
, int));
204 #ifdef GCC_C_PRAGMA_H /* included from code that cares about pragmas */
205 extern void arm_pr_long_calls
PARAMS ((cpp_reader
*));
206 extern void arm_pr_no_long_calls
PARAMS ((cpp_reader
*));
207 extern void arm_pr_long_calls_off
PARAMS ((cpp_reader
*));
210 #endif /* ! GCC_ARM_PROTOS_H */