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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [config/] [frv/] [frv-protos.h] - Blame information for rev 313

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

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

powered by: WebSVN 2.1.0

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