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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [config/] [frv/] [frv-protos.h] - Blame information for rev 20

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

Line No. Rev Author Line
1 12 jlechner
/* Frv prototypes.
2
   Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005 Free Software Foundation,
3
   Inc.
4
   Contributed by Red Hat, Inc.
5
 
6
This file is part of GCC.
7
 
8
GCC 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
GCC 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 GCC; see the file COPYING.  If not, write to
20
the Free Software Foundation, 51 Franklin Street, Fifth Floor,
21
Boston, MA 02110-1301, USA.  */
22
 
23
/* CPU type.  This must be identical to the cpu enumeration in frv.md.  */
24
typedef enum frv_cpu
25
{
26
  FRV_CPU_GENERIC,
27
  FRV_CPU_FR550,
28
  FRV_CPU_FR500,
29
  FRV_CPU_FR450,
30
  FRV_CPU_FR405,
31
  FRV_CPU_FR400,
32
  FRV_CPU_FR300,
33
  FRV_CPU_SIMPLE,
34
  FRV_CPU_TOMCAT
35
} frv_cpu_t;
36
 
37
extern frv_cpu_t frv_cpu_type;                  /* value of -mcpu= */
38
 
39
/* Define functions defined in frv.c */
40
extern void frv_expand_prologue                 (void);
41
extern void frv_expand_epilogue                 (bool);
42
extern void frv_override_options                (void);
43
extern void frv_optimization_options            (int, int);
44
extern void frv_conditional_register_usage      (void);
45
extern frv_stack_t *frv_stack_info              (void);
46
extern void frv_debug_stack                     (frv_stack_t *);
47
extern int frv_frame_pointer_required           (void);
48
extern int frv_initial_elimination_offset       (int, int);
49
 
50
#ifdef RTX_CODE
51
extern int frv_legitimate_address_p             (enum machine_mode, rtx,
52
                                                 int, int, int);
53
extern rtx frv_legitimize_address               (rtx, rtx, enum machine_mode);
54
extern rtx frv_find_base_term                   (rtx);
55
 
56
#ifdef TREE_CODE
57
extern void frv_init_cumulative_args            (CUMULATIVE_ARGS *, tree,
58
                                                 rtx, tree, int);
59
 
60
extern int frv_function_arg_boundary            (enum machine_mode, tree);
61
extern rtx frv_function_arg                     (CUMULATIVE_ARGS *,
62
                                                 enum machine_mode,
63
                                                 tree, int, int);
64
 
65
extern void frv_function_arg_advance            (CUMULATIVE_ARGS *,
66
                                                 enum machine_mode,
67
                                                 tree, int);
68
 
69
extern void frv_expand_builtin_va_start         (tree, rtx);
70
#endif /* TREE_CODE */
71
 
72
extern int frv_expand_block_move                (rtx *);
73
extern int frv_expand_block_clear               (rtx *);
74
extern rtx frv_dynamic_chain_address            (rtx);
75
extern rtx frv_return_addr_rtx                  (int, rtx);
76
extern rtx frv_index_memory                     (rtx, enum machine_mode, int);
77
extern const char *frv_asm_output_opcode
78
                                        (FILE *, const char *);
79
extern void frv_final_prescan_insn      (rtx, rtx *, int);
80
extern void frv_print_operand           (FILE *, rtx, int);
81
extern void frv_print_operand_address   (FILE *, rtx);
82
extern void frv_emit_move               (enum machine_mode, rtx, rtx);
83
extern int frv_emit_movsi               (rtx, rtx);
84
extern const char *output_move_single   (rtx *, rtx);
85
extern const char *output_move_double   (rtx *, rtx);
86
extern const char *output_condmove_single
87
                                        (rtx *, rtx);
88
extern int frv_emit_cond_branch         (enum rtx_code, rtx);
89
extern int frv_emit_scc                 (enum rtx_code, rtx);
90
extern rtx frv_split_scc                (rtx, rtx, rtx, rtx, HOST_WIDE_INT);
91
extern int frv_emit_cond_move           (rtx, rtx, rtx, rtx);
92
extern rtx frv_split_cond_move          (rtx *);
93
extern rtx frv_split_minmax             (rtx *);
94
extern rtx frv_split_abs                (rtx *);
95
extern void frv_split_double_load       (rtx, rtx);
96
extern void frv_split_double_store      (rtx, rtx);
97
#ifdef BB_HEAD
98
extern void frv_ifcvt_init_extra_fields (ce_if_block_t *);
99
extern void frv_ifcvt_modify_tests      (ce_if_block_t *, rtx *, rtx *);
100
extern void frv_ifcvt_modify_multiple_tests
101
                                        (ce_if_block_t *, basic_block,
102
                                         rtx *, rtx *);
103
extern rtx frv_ifcvt_modify_insn        (ce_if_block_t *, rtx, rtx);
104
extern void frv_ifcvt_modify_final      (ce_if_block_t *);
105
extern void frv_ifcvt_modify_cancel     (ce_if_block_t *);
106
#endif
107
extern int frv_trampoline_size          (void);
108
extern void frv_initialize_trampoline   (rtx, rtx, rtx);
109
extern enum reg_class frv_secondary_reload_class
110
                                        (enum reg_class class,
111
                                         enum machine_mode mode,
112
                                         rtx x, int);
113
extern int frv_class_likely_spilled_p   (enum reg_class class);
114
extern int frv_hard_regno_mode_ok       (int, enum machine_mode);
115
extern int frv_hard_regno_nregs         (int, enum machine_mode);
116
extern int frv_class_max_nregs          (enum reg_class class,
117
                                         enum machine_mode mode);
118
extern int frv_legitimate_constant_p    (rtx);
119
extern enum machine_mode frv_select_cc_mode (enum rtx_code, rtx, rtx);
120
#endif  /* RTX_CODE */
121
 
122
extern int direct_return_p              (void);
123
extern int frv_register_move_cost       (enum reg_class, enum reg_class);
124
extern int frv_issue_rate               (void);
125
extern int frv_acc_group                (rtx);
126
 
127
#ifdef TREE_CODE
128
extern int frv_adjust_field_align       (tree, int);
129
#endif
130
 
131
extern void fixup_section               (void);
132
extern void sdata_section               (void);
133
extern void sbss_section                (void);
134
extern void data_section                (void);
135
 
136
#ifdef RTX_CODE
137
extern int integer_register_operand     (rtx, enum machine_mode);
138
extern int frv_load_operand             (rtx, enum machine_mode);
139
extern int gpr_or_fpr_operand           (rtx, enum machine_mode);
140
extern int gpr_no_subreg_operand        (rtx, enum machine_mode);
141
extern int gpr_or_int6_operand          (rtx, enum machine_mode);
142
extern int fpr_or_int6_operand          (rtx, enum machine_mode);
143
extern int gpr_or_int_operand           (rtx, enum machine_mode);
144
extern int gpr_or_int12_operand         (rtx, enum machine_mode);
145
extern int gpr_fpr_or_int12_operand     (rtx, enum machine_mode);
146
extern int gpr_or_int10_operand         (rtx, enum machine_mode);
147
extern int move_source_operand          (rtx, enum machine_mode);
148
extern int move_destination_operand     (rtx, enum machine_mode);
149
extern int condexec_source_operand      (rtx, enum machine_mode);
150
extern int condexec_dest_operand        (rtx, enum machine_mode);
151
extern int lr_operand                   (rtx, enum machine_mode);
152
extern int gpr_or_memory_operand        (rtx, enum machine_mode);
153
extern int fpr_or_memory_operand        (rtx, enum machine_mode);
154
extern int reg_or_0_operand             (rtx, enum machine_mode);
155
extern int fcc_operand                  (rtx, enum machine_mode);
156
extern int icc_operand                  (rtx, enum machine_mode);
157
extern int cc_operand                   (rtx, enum machine_mode);
158
extern int fcr_operand                  (rtx, enum machine_mode);
159
extern int icr_operand                  (rtx, enum machine_mode);
160
extern int cr_operand                   (rtx, enum machine_mode);
161
extern int call_operand                 (rtx, enum machine_mode);
162
extern int fpr_operand                  (rtx, enum machine_mode);
163
extern int even_reg_operand             (rtx, enum machine_mode);
164
extern int odd_reg_operand              (rtx, enum machine_mode);
165
extern int even_gpr_operand             (rtx, enum machine_mode);
166
extern int odd_gpr_operand              (rtx, enum machine_mode);
167
extern int quad_fpr_operand             (rtx, enum machine_mode);
168
extern int even_fpr_operand             (rtx, enum machine_mode);
169
extern int odd_fpr_operand              (rtx, enum machine_mode);
170
extern int dbl_memory_one_insn_operand  (rtx, enum machine_mode);
171
extern int dbl_memory_two_insn_operand  (rtx, enum machine_mode);
172
extern int int12_operand                (rtx, enum machine_mode);
173
extern int int6_operand                 (rtx, enum machine_mode);
174
extern int int5_operand                 (rtx, enum machine_mode);
175
extern int uint5_operand                (rtx, enum machine_mode);
176
extern int uint4_operand                (rtx, enum machine_mode);
177
extern int uint1_operand                (rtx, enum machine_mode);
178
extern int int_2word_operand            (rtx, enum machine_mode);
179
extern int pic_register_operand         (rtx, enum machine_mode);
180
extern int pic_symbolic_operand         (rtx, enum machine_mode);
181
extern int small_data_register_operand  (rtx, enum machine_mode);
182
extern int small_data_symbolic_operand  (rtx, enum machine_mode);
183
extern int upper_int16_operand          (rtx, enum machine_mode);
184
extern int uint16_operand               (rtx, enum machine_mode);
185
extern int symbolic_operand             (rtx, enum machine_mode);
186
extern int relational_operator          (rtx, enum machine_mode);
187
extern int signed_relational_operator   (rtx, enum machine_mode);
188
extern int unsigned_relational_operator (rtx, enum machine_mode);
189
extern int float_relational_operator    (rtx, enum machine_mode);
190
extern int ccr_eqne_operator            (rtx, enum machine_mode);
191
extern int minmax_operator              (rtx, enum machine_mode);
192
extern int condexec_si_binary_operator  (rtx, enum machine_mode);
193
extern int condexec_si_media_operator   (rtx, enum machine_mode);
194
extern int condexec_si_divide_operator  (rtx, enum machine_mode);
195
extern int condexec_si_unary_operator   (rtx, enum machine_mode);
196
extern int condexec_sf_conv_operator    (rtx, enum machine_mode);
197
extern int condexec_sf_add_operator     (rtx, enum machine_mode);
198
extern int condexec_memory_operand      (rtx, enum machine_mode);
199
extern int intop_compare_operator       (rtx, enum machine_mode);
200
extern int acc_operand                  (rtx, enum machine_mode);
201
extern int even_acc_operand             (rtx, enum machine_mode);
202
extern int quad_acc_operand             (rtx, enum machine_mode);
203
extern int accg_operand                 (rtx, enum machine_mode);
204
extern rtx frv_matching_accg_for_acc    (rtx);
205
extern void frv_expand_fdpic_call       (rtx *, bool, bool);
206
extern rtx frv_gen_GPsym2reg            (rtx, rtx);
207
extern int frv_legitimate_memory_operand (rtx, enum machine_mode, int);
208
 
209
/* Information about a relocation unspec.  SYMBOL is the relocation symbol
210
   (a SYMBOL_REF or LABEL_REF), RELOC is the type of relocation and OFFSET
211
   is the constant addend.  */
212
struct frv_unspec {
213
  rtx symbol;
214
  int reloc;
215
  HOST_WIDE_INT offset;
216
};
217
 
218
extern bool frv_const_unspec_p (rtx, struct frv_unspec *);
219
 
220
#endif
221
 

powered by: WebSVN 2.1.0

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