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

Subversion Repositories openrisc

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

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

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

powered by: WebSVN 2.1.0

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