Mercurial > hg > CbC > CbC_gcc
annotate gcc/config/avr/avr-protos.h @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
rev | line source |
---|---|
0 | 1 /* Prototypes for exported functions defined in avr.c |
2 | |
131 | 3 Copyright (C) 2000-2018 Free Software Foundation, Inc. |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
4 Contributed by Denis Chertykov (chertykov@gmail.com) |
0 | 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 | |
111 | 23 extern int avr_function_arg_regno_p (int r); |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
24 extern void avr_cpu_cpp_builtins (struct cpp_reader * pfile); |
0 | 25 extern enum reg_class avr_regno_reg_class (int r); |
26 extern void asm_globalize_label (FILE *file, const char *name); | |
111 | 27 extern void avr_adjust_reg_alloc_order (void); |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
28 extern int avr_initial_elimination_offset (int from, int to); |
0 | 29 extern int avr_simple_epilogue (void); |
30 extern int avr_hard_regno_rename_ok (unsigned int, unsigned int); | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
63
diff
changeset
|
31 extern rtx avr_return_addr_rtx (int count, rtx tem); |
111 | 32 extern void avr_register_target_pragmas (void); |
33 extern void avr_init_expanders (void); | |
0 | 34 |
35 #ifdef TREE_CODE | |
111 | 36 extern void avr_asm_output_aligned_decl_common (FILE*, tree, const char*, unsigned HOST_WIDE_INT, unsigned int, bool); |
37 extern void avr_asm_asm_output_aligned_bss (FILE *, tree, const char *, unsigned HOST_WIDE_INT, int, void (*) (FILE *, tree, const char *, unsigned HOST_WIDE_INT, int)); | |
0 | 38 extern void asm_output_external (FILE *file, tree decl, char *name); |
39 extern int avr_progmem_p (tree decl, tree attributes); | |
111 | 40 extern bool avr_addr_space_supported_p (addr_space_t, location_t loc = UNKNOWN_LOCATION); |
0 | 41 |
42 #ifdef RTX_CODE /* inside TREE_CODE */ | |
111 | 43 extern void avr_init_cumulative_args (CUMULATIVE_ARGS*, tree, rtx, tree); |
0 | 44 #endif /* RTX_CODE inside TREE_CODE */ |
45 | |
46 #endif /* TREE_CODE */ | |
47 | |
48 #ifdef RTX_CODE | |
111 | 49 extern const char *output_movqi (rtx_insn *insn, rtx operands[], int *l); |
50 extern const char *output_movhi (rtx_insn *insn, rtx operands[], int *l); | |
51 extern const char *output_movsisf (rtx_insn *insn, rtx operands[], int *l); | |
52 extern const char *avr_out_tstsi (rtx_insn *, rtx*, int*); | |
53 extern const char *avr_out_tsthi (rtx_insn *, rtx*, int*); | |
54 extern const char *avr_out_tstpsi (rtx_insn *, rtx*, int*); | |
55 extern const char *avr_out_compare (rtx_insn *, rtx*, int*); | |
56 extern const char *avr_out_compare64 (rtx_insn *, rtx*, int*); | |
0 | 57 extern const char *ret_cond_branch (rtx x, int len, int reverse); |
111 | 58 extern const char *avr_out_movpsi (rtx_insn *, rtx*, int*); |
59 extern const char *avr_out_sign_extend (rtx_insn *, rtx*, int*); | |
60 extern const char *avr_out_insert_notbit (rtx_insn *, rtx*, rtx, int*); | |
0 | 61 |
111 | 62 extern const char *ashlqi3_out (rtx_insn *insn, rtx operands[], int *len); |
63 extern const char *ashlhi3_out (rtx_insn *insn, rtx operands[], int *len); | |
64 extern const char *ashlsi3_out (rtx_insn *insn, rtx operands[], int *len); | |
0 | 65 |
111 | 66 extern const char *ashrqi3_out (rtx_insn *insn, rtx operands[], int *len); |
67 extern const char *ashrhi3_out (rtx_insn *insn, rtx operands[], int *len); | |
68 extern const char *ashrsi3_out (rtx_insn *insn, rtx operands[], int *len); | |
0 | 69 |
111 | 70 extern const char *lshrqi3_out (rtx_insn *insn, rtx operands[], int *len); |
71 extern const char *lshrhi3_out (rtx_insn *insn, rtx operands[], int *len); | |
72 extern const char *lshrsi3_out (rtx_insn *insn, rtx operands[], int *len); | |
73 | |
74 extern const char *avr_out_ashlpsi3 (rtx_insn *, rtx*, int*); | |
75 extern const char *avr_out_ashrpsi3 (rtx_insn *, rtx*, int*); | |
76 extern const char *avr_out_lshrpsi3 (rtx_insn *, rtx*, int*); | |
77 | |
63
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
78 extern bool avr_rotate_bytes (rtx operands[]); |
0 | 79 |
111 | 80 extern const char* avr_out_fract (rtx_insn *, rtx[], bool, int*); |
81 extern rtx avr_to_int_mode (rtx); | |
82 | |
83 extern void avr_expand_prologue (void); | |
84 extern void avr_expand_epilogue (bool); | |
85 extern bool avr_emit_movmemhi (rtx*); | |
0 | 86 extern int avr_epilogue_uses (int regno); |
87 | |
111 | 88 extern void avr_output_addr_vec (rtx_insn*, rtx); |
89 extern const char *avr_out_sbxx_branch (rtx_insn *insn, rtx operands[]); | |
90 extern const char* avr_out_bitop (rtx, rtx*, int*); | |
91 extern const char* avr_out_plus (rtx, rtx*, int* =NULL, int* =NULL, bool =true); | |
92 extern const char* avr_out_round (rtx_insn *, rtx*, int* =NULL); | |
93 extern const char* avr_out_addto_sp (rtx*, int*); | |
94 extern const char* avr_out_xload (rtx_insn *, rtx*, int*); | |
95 extern const char* avr_out_movmem (rtx_insn *, rtx*, int*); | |
96 extern const char* avr_out_insert_bits (rtx*, int*); | |
97 extern bool avr_popcount_each_byte (rtx, int, int); | |
98 extern bool avr_has_nibble_0xf (rtx); | |
0 | 99 |
100 extern int extra_constraint_Q (rtx x); | |
111 | 101 extern int avr_adjust_insn_length (rtx_insn *insn, int len); |
102 extern const char* output_reload_inhi (rtx*, rtx, int*); | |
103 extern const char* output_reload_insisf (rtx*, rtx, int*); | |
104 extern const char* avr_out_reload_inpsi (rtx*, rtx, int*); | |
105 extern const char* avr_out_lpm (rtx_insn *, rtx*, int*); | |
106 extern void avr_notice_update_cc (rtx body, rtx_insn *insn); | |
107 extern int reg_unused_after (rtx_insn *insn, rtx reg); | |
108 extern int _reg_unused_after (rtx_insn *insn, rtx reg); | |
109 extern int avr_jump_mode (rtx x, rtx_insn *insn); | |
0 | 110 extern int test_hard_reg_class (enum reg_class rclass, rtx x); |
111 | 111 extern int jump_over_one_insn_p (rtx_insn *insn, rtx dest); |
0 | 112 |
111 | 113 extern void avr_final_prescan_insn (rtx_insn *insn, rtx *operand, |
114 int num_operands); | |
115 extern int avr_simplify_comparison_p (machine_mode mode, | |
0 | 116 RTX_CODE op, rtx x); |
117 extern RTX_CODE avr_normalize_condition (RTX_CODE condition); | |
111 | 118 extern void out_shift_with_cnt (const char *templ, rtx_insn *insn, |
0 | 119 rtx operands[], int *len, int t_len); |
111 | 120 extern enum reg_class avr_mode_code_base_reg_class (machine_mode, addr_space_t, RTX_CODE, RTX_CODE); |
121 extern bool avr_regno_mode_code_ok_for_base_p (int, machine_mode, addr_space_t, RTX_CODE, RTX_CODE); | |
122 extern rtx avr_incoming_return_addr_rtx (void); | |
123 extern rtx avr_legitimize_reload_address (rtx*, machine_mode, int, int, int, int, rtx (*)(rtx,int)); | |
124 extern bool avr_mem_flash_p (rtx); | |
125 extern bool avr_mem_memx_p (rtx); | |
126 extern bool avr_load_libgcc_p (rtx); | |
127 extern bool avr_xload_libgcc_p (machine_mode); | |
128 extern rtx avr_eval_addr_attrib (rtx x); | |
129 extern bool avr_casei_sequence_check_operands (rtx *xop); | |
130 | |
131 static inline unsigned | |
132 regmask (machine_mode mode, unsigned regno) | |
133 { | |
131 | 134 return ((1u << GET_MODE_SIZE (as_a <fixed_size_mode> (mode))) - 1) << regno; |
111 | 135 } |
136 | |
137 extern void avr_fix_inputs (rtx*, unsigned, unsigned); | |
138 extern bool avr_emit3_fix_outputs (rtx (*)(rtx,rtx,rtx), rtx*, unsigned, unsigned); | |
139 | |
140 extern rtx lpm_reg_rtx; | |
141 extern rtx lpm_addr_reg_rtx; | |
142 extern rtx tmp_reg_rtx; | |
143 extern rtx zero_reg_rtx; | |
144 extern rtx all_regs_rtx[32]; | |
145 extern rtx rampz_rtx; | |
146 | |
0 | 147 #endif /* RTX_CODE */ |
148 | |
149 #ifdef REAL_VALUE_TYPE | |
150 extern void asm_output_float (FILE *file, REAL_VALUE_TYPE n); | |
151 #endif | |
111 | 152 |
153 extern bool avr_have_dimode; | |
154 | |
155 namespace gcc { class context; } | |
156 class rtl_opt_pass; | |
157 | |
158 extern rtl_opt_pass *make_avr_pass_pre_proep (gcc::context *); | |
159 extern rtl_opt_pass *make_avr_pass_recompute_notes (gcc::context *); | |
160 extern rtl_opt_pass *make_avr_pass_casesi (gcc::context *); | |
161 | |
162 /* From avr-log.c */ | |
163 | |
164 #define avr_dump(...) avr_vdump (NULL, __FUNCTION__, __VA_ARGS__) | |
165 #define avr_edump(...) avr_vdump (stderr, __FUNCTION__, __VA_ARGS__) | |
166 #define avr_fdump(FIL, ...) avr_vdump (FIL, __FUNCTION__, __VA_ARGS__) | |
167 | |
168 extern int avr_vdump (FILE*, const char*, ...); | |
169 extern void avr_log_set_avr_log (void); | |
170 | |
171 typedef struct | |
172 { | |
173 unsigned address_cost :1; | |
174 unsigned builtin :1; | |
175 unsigned constraints :1; | |
176 unsigned insn_addresses :1; | |
177 unsigned legitimate_address_p :1; | |
178 unsigned legitimize_address :1; | |
179 unsigned legitimize_reload_address :1; | |
180 unsigned progmem :1; | |
181 unsigned rtx_costs :1; | |
182 } avr_log_t; | |
183 | |
184 extern avr_log_t avr_log; |