OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [config/] [arm/] [arm-protos.h] - Blame information for rev 750

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 709 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, 2010, 2012  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 enum unwind_info_type arm_except_unwind_info (struct gcc_options *);
27
extern int use_return_insn (int, rtx);
28
extern enum reg_class arm_regno_class (int);
29
extern void arm_load_pic_register (unsigned long);
30
extern int arm_volatile_func (void);
31
extern const char *arm_output_epilogue (rtx);
32
extern void arm_expand_prologue (void);
33
extern const char *arm_strip_name_encoding (const char *);
34
extern void arm_asm_output_labelref (FILE *, const char *);
35
extern void thumb2_asm_output_opcode (FILE *);
36
extern unsigned long arm_current_func_type (void);
37
extern HOST_WIDE_INT arm_compute_initial_elimination_offset (unsigned int,
38
                                                             unsigned int);
39
extern HOST_WIDE_INT thumb_compute_initial_elimination_offset (unsigned int,
40
                                                               unsigned int);
41
extern unsigned int arm_dbx_register_number (unsigned int);
42
extern void arm_output_fn_unwind (FILE *, bool);
43
 
44
 
45
#ifdef RTX_CODE
46
extern bool arm_vector_mode_supported_p (enum machine_mode);
47
extern bool arm_small_register_classes_for_mode_p (enum machine_mode);
48
extern int arm_hard_regno_mode_ok (unsigned int, enum machine_mode);
49
extern bool arm_modes_tieable_p (enum machine_mode, enum machine_mode);
50
extern int const_ok_for_arm (HOST_WIDE_INT);
51
extern int const_ok_for_op (HOST_WIDE_INT, enum rtx_code);
52
extern int arm_split_constant (RTX_CODE, enum machine_mode, rtx,
53
                               HOST_WIDE_INT, rtx, rtx, int);
54
extern RTX_CODE arm_canonicalize_comparison (RTX_CODE, rtx *, rtx *);
55
extern int legitimate_pic_operand_p (rtx);
56
extern rtx legitimize_pic_address (rtx, enum machine_mode, rtx);
57
extern rtx legitimize_tls_address (rtx, rtx);
58
extern int arm_legitimate_address_outer_p (enum machine_mode, rtx, RTX_CODE, int);
59
extern int thumb_legitimate_offset_p (enum machine_mode, HOST_WIDE_INT);
60
extern bool arm_legitimize_reload_address (rtx *, enum machine_mode, int, int,
61
                                           int);
62
extern rtx thumb_legitimize_reload_address (rtx *, enum machine_mode, int, int,
63
                                            int);
64
extern int thumb1_legitimate_address_p (enum machine_mode, rtx, int);
65
extern int arm_const_double_rtx (rtx);
66
extern int neg_const_double_rtx_ok_for_fpa (rtx);
67
extern int vfp3_const_double_rtx (rtx);
68
extern int neon_immediate_valid_for_move (rtx, enum machine_mode, rtx *, int *);
69
extern int neon_immediate_valid_for_logic (rtx, enum machine_mode, int, rtx *,
70
                                           int *);
71
extern int neon_immediate_valid_for_shift (rtx, enum machine_mode, rtx *,
72
                                           int *, bool);
73
extern char *neon_output_logic_immediate (const char *, rtx *,
74
                                          enum machine_mode, int, int);
75
extern char *neon_output_shift_immediate (const char *, char, rtx *,
76
                                          enum machine_mode, int, bool);
77
extern void neon_pairwise_reduce (rtx, rtx, enum machine_mode,
78
                                  rtx (*) (rtx, rtx, rtx));
79
extern rtx neon_make_constant (rtx);
80
extern void neon_expand_vector_init (rtx, rtx);
81
extern void neon_lane_bounds (rtx, HOST_WIDE_INT, HOST_WIDE_INT);
82
extern void neon_const_bounds (rtx, HOST_WIDE_INT, HOST_WIDE_INT);
83
extern HOST_WIDE_INT neon_element_bits (enum machine_mode);
84
extern void neon_reinterpret (rtx, rtx);
85
extern void neon_emit_pair_result_insn (enum machine_mode,
86
                                        rtx (*) (rtx, rtx, rtx, rtx),
87
                                        rtx, rtx, rtx);
88
extern void neon_disambiguate_copy (rtx *, rtx *, rtx *, unsigned int);
89
extern void neon_split_vcombine (rtx op[3]);
90
extern enum reg_class coproc_secondary_reload_class (enum machine_mode, rtx,
91
                                                     bool);
92
extern bool arm_tls_referenced_p (rtx);
93
 
94
extern int cirrus_memory_offset (rtx);
95
extern int arm_coproc_mem_operand (rtx, bool);
96
extern int neon_vector_mem_operand (rtx, int);
97
extern int neon_struct_mem_operand (rtx);
98
extern int arm_no_early_store_addr_dep (rtx, rtx);
99
extern int arm_early_store_addr_dep (rtx, rtx);
100
extern int arm_early_load_addr_dep (rtx, rtx);
101
extern int arm_no_early_alu_shift_dep (rtx, rtx);
102
extern int arm_no_early_alu_shift_value_dep (rtx, rtx);
103
extern int arm_no_early_mul_dep (rtx, rtx);
104
extern int arm_mac_accumulator_is_mul_result (rtx, rtx);
105
 
106
extern int tls_mentioned_p (rtx);
107
extern int symbol_mentioned_p (rtx);
108
extern int label_mentioned_p (rtx);
109
extern RTX_CODE minmax_code (rtx);
110
extern int adjacent_mem_locations (rtx, rtx);
111
extern bool gen_ldm_seq (rtx *, int, bool);
112
extern bool gen_stm_seq (rtx *, int);
113
extern bool gen_const_stm_seq (rtx *, int);
114
extern rtx arm_gen_load_multiple (int *, int, rtx, int, rtx, HOST_WIDE_INT *);
115
extern rtx arm_gen_store_multiple (int *, int, rtx, int, rtx, HOST_WIDE_INT *);
116
extern int arm_gen_movmemqi (rtx *);
117
extern enum machine_mode arm_select_cc_mode (RTX_CODE, rtx, rtx);
118
extern enum machine_mode arm_select_dominance_cc_mode (rtx, rtx,
119
                                                       HOST_WIDE_INT);
120
extern rtx arm_gen_compare_reg (RTX_CODE, rtx, rtx, rtx);
121
extern rtx arm_gen_return_addr_mask (void);
122
extern void arm_reload_in_hi (rtx *);
123
extern void arm_reload_out_hi (rtx *);
124
extern int arm_const_double_inline_cost (rtx);
125
extern bool arm_const_double_by_parts (rtx);
126
extern bool arm_const_double_by_immediates (rtx);
127
extern const char *fp_immediate_constant (rtx);
128
extern void arm_emit_call_insn (rtx, rtx);
129
extern const char *output_call (rtx *);
130
extern const char *output_call_mem (rtx *);
131
void arm_emit_movpair (rtx, rtx);
132
extern const char *output_mov_long_double_fpa_from_arm (rtx *);
133
extern const char *output_mov_long_double_arm_from_fpa (rtx *);
134
extern const char *output_mov_long_double_arm_from_arm (rtx *);
135
extern const char *output_mov_double_fpa_from_arm (rtx *);
136
extern const char *output_mov_double_arm_from_fpa (rtx *);
137
extern const char *output_move_double (rtx *, bool, int *count);
138
extern const char *output_move_quad (rtx *);
139
extern int arm_count_output_move_double_insns (rtx *);
140
extern const char *output_move_vfp (rtx *operands);
141
extern const char *output_move_neon (rtx *operands);
142
extern int arm_attr_length_move_neon (rtx);
143
extern int arm_address_offset_is_imm (rtx);
144
extern const char *output_add_immediate (rtx *);
145
extern const char *arithmetic_instr (rtx, int);
146
extern void output_ascii_pseudo_op (FILE *, const unsigned char *, int);
147
extern const char *output_return_instruction (rtx, int, int);
148
extern void arm_poke_function_name (FILE *, const char *);
149
extern void arm_final_prescan_insn (rtx);
150
extern int arm_debugger_arg_offset (int, rtx);
151
extern bool arm_is_long_call_p (tree);
152
extern int    arm_emit_vector_const (FILE *, rtx);
153
extern void arm_emit_fp16_const (rtx c);
154
extern const char * arm_output_load_gr (rtx *);
155
extern const char *vfp_output_fstmd (rtx *);
156
extern void arm_set_return_address (rtx, rtx);
157
extern int arm_eliminable_register (rtx);
158
extern const char *arm_output_shift(rtx *, int);
159
extern unsigned int arm_sync_loop_insns (rtx , rtx *);
160
extern int arm_attr_length_push_multi(rtx, rtx);
161
extern void arm_expand_compare_and_swap (rtx op[]);
162
extern void arm_split_compare_and_swap (rtx op[]);
163
extern void arm_split_atomic_op (enum rtx_code, rtx, rtx, rtx, rtx, rtx, rtx);
164
 
165
#if defined TREE_CODE
166
extern void arm_init_cumulative_args (CUMULATIVE_ARGS *, tree, rtx, tree);
167
extern bool arm_pad_arg_upward (enum machine_mode, const_tree);
168
extern bool arm_pad_reg_upward (enum machine_mode, tree, int);
169
#endif
170
extern int arm_apply_result_size (void);
171
 
172
#endif /* RTX_CODE */
173
 
174
extern int arm_float_words_big_endian (void);
175
 
176
/* Thumb functions.  */
177
extern void arm_init_expanders (void);
178
extern const char *thumb_unexpanded_epilogue (void);
179
extern void thumb1_expand_prologue (void);
180
extern void thumb1_expand_epilogue (void);
181
extern const char *thumb1_output_interwork (void);
182
#ifdef TREE_CODE
183
extern int is_called_in_ARM_mode (tree);
184
#endif
185
extern int thumb_shiftable_const (unsigned HOST_WIDE_INT);
186
#ifdef RTX_CODE
187
extern enum arm_cond_code maybe_get_arm_condition_code (rtx);
188
extern void thumb1_final_prescan_insn (rtx);
189
extern void thumb2_final_prescan_insn (rtx);
190
extern const char *thumb_load_double_from_address (rtx *);
191
extern const char *thumb_output_move_mem_multiple (int, rtx *);
192
extern const char *thumb_call_via_reg (rtx);
193
extern void thumb_expand_movmemqi (rtx *);
194
extern rtx arm_return_addr (int, rtx);
195
extern void thumb_reload_out_hi (rtx *);
196
extern void thumb_reload_in_hi (rtx *);
197
extern void thumb_set_return_address (rtx, rtx);
198
extern const char *thumb1_output_casesi (rtx *);
199
extern const char *thumb2_output_casesi (rtx *);
200
#endif
201
 
202
/* Defined in pe.c.  */
203
extern int arm_dllexport_name_p (const char *);
204
extern int arm_dllimport_name_p (const char *);
205
 
206
#ifdef TREE_CODE
207
extern void arm_pe_unique_section (tree, int);
208
extern void arm_pe_encode_section_info (tree, rtx, int);
209
extern int arm_dllexport_p (tree);
210
extern int arm_dllimport_p (tree);
211
extern void arm_mark_dllexport (tree);
212
extern void arm_mark_dllimport (tree);
213
#endif
214
 
215
extern void arm_pr_long_calls (struct cpp_reader *);
216
extern void arm_pr_no_long_calls (struct cpp_reader *);
217
extern void arm_pr_long_calls_off (struct cpp_reader *);
218
 
219
extern void arm_lang_object_attributes_init(void);
220
 
221
extern const char *arm_mangle_type (const_tree);
222
 
223
extern void arm_order_regs_for_local_alloc (void);
224
 
225
#ifdef RTX_CODE
226
/* This needs to be here because we need RTX_CODE and similar.  */
227
 
228
struct tune_params
229
{
230
  bool (*rtx_costs) (rtx, RTX_CODE, RTX_CODE, int *, bool);
231
  bool (*sched_adjust_cost) (rtx, rtx, rtx, int *);
232
  int constant_limit;
233
  /* Maximum number of instructions to conditionalise in
234
     arm_final_prescan_insn.  */
235
  int max_insns_skipped;
236
  int num_prefetch_slots;
237
  int l1_cache_size;
238
  int l1_cache_line_size;
239
  bool prefer_constant_pool;
240
  int (*branch_cost) (bool, bool);
241
};
242
 
243
extern const struct tune_params *current_tune;
244
extern int vfp3_const_double_for_fract_bits (rtx);
245
#endif /* RTX_CODE */
246
 
247
extern void arm_expand_vec_perm (rtx target, rtx op0, rtx op1, rtx sel);
248
extern bool arm_expand_vec_perm_const (rtx target, rtx op0, rtx op1, rtx sel);
249
 
250
#endif /* ! GCC_ARM_PROTOS_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.