annotate gcc/config/frv/frv-protos.h @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 /* Frv prototypes.
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 Copyright (C) 1999-2020 Free Software Foundation, Inc.
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 Contributed by Red Hat, Inc.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 This file is part of GCC.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 GCC is free software; you can redistribute it and/or modify
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 it under the terms of the GNU General Public License as published by
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 the Free Software Foundation; either version 3, or (at your option)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 any later version.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 GCC is distributed in the hope that it will be useful,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 GNU General Public License for more details.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 along with GCC; see the file COPYING3. If not see
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 <http://www.gnu.org/licenses/>. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 /* Define functions defined in frv.c */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 extern void frv_expand_prologue (void);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 extern void frv_expand_epilogue (bool);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 extern frv_stack_t *frv_stack_info (void);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 extern void frv_debug_stack (frv_stack_t *);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 extern int frv_initial_elimination_offset (int, int);
111
kono
parents: 67
diff changeset
27 extern void frv_ifcvt_machdep_init (void *);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 #ifdef RTX_CODE
111
kono
parents: 67
diff changeset
30 extern int frv_legitimate_address_p_1 (machine_mode, rtx,
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 int, int, int);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 extern rtx frv_find_base_term (rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 #ifdef TREE_CODE
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 extern void frv_init_cumulative_args (CUMULATIVE_ARGS *, tree,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36 rtx, tree, int);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
37
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
38 extern bool frv_function_value_regno_p (const unsigned int);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 #endif /* TREE_CODE */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
40
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
41 extern int frv_expand_block_move (rtx *);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 extern int frv_expand_block_clear (rtx *);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
43 extern rtx frv_dynamic_chain_address (rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
44 extern rtx frv_return_addr_rtx (int, rtx);
111
kono
parents: 67
diff changeset
45 extern rtx frv_index_memory (rtx, machine_mode, int);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
46 extern const char *frv_asm_output_opcode
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
47 (FILE *, const char *);
111
kono
parents: 67
diff changeset
48 extern void frv_final_prescan_insn (rtx_insn *, rtx *, int);
kono
parents: 67
diff changeset
49 extern void frv_emit_move (machine_mode, rtx, rtx);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
50 extern int frv_emit_movsi (rtx, rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
51 extern const char *output_move_single (rtx *, rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
52 extern const char *output_move_double (rtx *, rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
53 extern const char *output_condmove_single
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
54 (rtx *, rtx);
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
55 extern int frv_emit_cond_branch (rtx *);
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
56 extern int frv_emit_scc (rtx *);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
57 extern rtx frv_split_scc (rtx, rtx, rtx, rtx, HOST_WIDE_INT);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
58 extern int frv_emit_cond_move (rtx, rtx, rtx, rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
59 extern rtx frv_split_cond_move (rtx *);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
60 extern rtx frv_split_minmax (rtx *);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
61 extern rtx frv_split_abs (rtx *);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
62 extern void frv_split_double_load (rtx, rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
63 extern void frv_split_double_store (rtx, rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
64 #ifdef BB_HEAD
111
kono
parents: 67
diff changeset
65 extern void frv_ifcvt_init_extra_fields (struct ce_if_block *);
kono
parents: 67
diff changeset
66 extern void frv_ifcvt_modify_tests (struct ce_if_block *, rtx *, rtx *);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
67 extern void frv_ifcvt_modify_multiple_tests
111
kono
parents: 67
diff changeset
68 (struct ce_if_block *, basic_block,
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
69 rtx *, rtx *);
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
70 extern rtx frv_ifcvt_modify_insn (struct ce_if_block *, rtx, rtx_insn *);
111
kono
parents: 67
diff changeset
71 extern void frv_ifcvt_modify_final (struct ce_if_block *);
kono
parents: 67
diff changeset
72 extern void frv_ifcvt_modify_cancel (struct ce_if_block *);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
73 #endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
74 extern enum reg_class frv_secondary_reload_class
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
75 (enum reg_class,
111
kono
parents: 67
diff changeset
76 machine_mode, rtx);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
77 extern int frv_class_max_nregs (enum reg_class rclass,
111
kono
parents: 67
diff changeset
78 machine_mode mode);
kono
parents: 67
diff changeset
79 extern machine_mode frv_select_cc_mode (enum rtx_code, rtx, rtx);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
80 #endif /* RTX_CODE */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
81
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
82 extern int frv_trampoline_size (void);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
83 extern int direct_return_p (void);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
84 extern int frv_issue_rate (void);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
85 extern int frv_acc_group (rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
86
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
87 #ifdef TREE_CODE
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
88 extern int frv_adjust_field_align (tree, int);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
89 #endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
90
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
91 #ifdef RTX_CODE
111
kono
parents: 67
diff changeset
92 extern int integer_register_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
93 extern int frv_load_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
94 extern int gpr_or_fpr_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
95 extern int gpr_no_subreg_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
96 extern int gpr_or_int6_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
97 extern int fpr_or_int6_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
98 extern int gpr_or_int_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
99 extern int gpr_or_int12_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
100 extern int gpr_fpr_or_int12_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
101 extern int gpr_or_int10_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
102 extern int move_source_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
103 extern int move_destination_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
104 extern int condexec_source_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
105 extern int condexec_dest_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
106 extern int lr_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
107 extern int gpr_or_memory_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
108 extern int fpr_or_memory_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
109 extern int reg_or_0_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
110 extern int fcc_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
111 extern int icc_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
112 extern int cc_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
113 extern int fcr_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
114 extern int icr_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
115 extern int cr_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
116 extern int call_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
117 extern int fpr_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
118 extern int even_reg_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
119 extern int odd_reg_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
120 extern int even_gpr_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
121 extern int odd_gpr_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
122 extern int quad_fpr_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
123 extern int even_fpr_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
124 extern int odd_fpr_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
125 extern int dbl_memory_one_insn_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
126 extern int dbl_memory_two_insn_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
127 extern int int12_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
128 extern int int6_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
129 extern int int5_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
130 extern int uint5_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
131 extern int uint4_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
132 extern int uint1_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
133 extern int int_2word_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
134 extern int pic_register_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
135 extern int pic_symbolic_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
136 extern int small_data_register_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
137 extern int small_data_symbolic_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
138 extern int upper_int16_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
139 extern int uint16_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
140 extern int symbolic_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
141 extern int relational_operator (rtx, machine_mode);
kono
parents: 67
diff changeset
142 extern int signed_relational_operator (rtx, machine_mode);
kono
parents: 67
diff changeset
143 extern int unsigned_relational_operator (rtx, machine_mode);
kono
parents: 67
diff changeset
144 extern int float_relational_operator (rtx, machine_mode);
kono
parents: 67
diff changeset
145 extern int ccr_eqne_operator (rtx, machine_mode);
kono
parents: 67
diff changeset
146 extern int minmax_operator (rtx, machine_mode);
kono
parents: 67
diff changeset
147 extern int condexec_si_binary_operator (rtx, machine_mode);
kono
parents: 67
diff changeset
148 extern int condexec_si_media_operator (rtx, machine_mode);
kono
parents: 67
diff changeset
149 extern int condexec_si_divide_operator (rtx, machine_mode);
kono
parents: 67
diff changeset
150 extern int condexec_si_unary_operator (rtx, machine_mode);
kono
parents: 67
diff changeset
151 extern int condexec_sf_conv_operator (rtx, machine_mode);
kono
parents: 67
diff changeset
152 extern int condexec_sf_add_operator (rtx, machine_mode);
kono
parents: 67
diff changeset
153 extern int condexec_memory_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
154 extern int intop_compare_operator (rtx, machine_mode);
kono
parents: 67
diff changeset
155 extern int acc_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
156 extern int even_acc_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
157 extern int quad_acc_operand (rtx, machine_mode);
kono
parents: 67
diff changeset
158 extern int accg_operand (rtx, machine_mode);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
159 extern rtx frv_matching_accg_for_acc (rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
160 extern void frv_expand_fdpic_call (rtx *, bool, bool);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
161 extern rtx frv_gen_GPsym2reg (rtx, rtx);
111
kono
parents: 67
diff changeset
162 extern int frv_legitimate_memory_operand (rtx, machine_mode, int);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
163
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
164 /* Information about a relocation unspec. SYMBOL is the relocation symbol
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
165 (a SYMBOL_REF or LABEL_REF), RELOC is the type of relocation and OFFSET
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
166 is the constant addend. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
167 struct frv_unspec {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
168 rtx symbol;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
169 int reloc;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
170 HOST_WIDE_INT offset;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
171 };
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
172
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
173 extern bool frv_const_unspec_p (rtx, struct frv_unspec *);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
174
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
175 #endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
176