OSDN Git Service

e775234eb54448d0233dc7ffffcb88a0e80d06a9
[pf3gnuchains/gcc-fork.git] / gcc / config / m68hc11 / m68hc11-protos.h
1 /* Prototypes for exported functions defined in m68hc11.c
2    Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3    Contributed by Stephane Carrez (stcarrez@worldnet.fr)
4
5 This file is part of GNU CC.
6
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING.  If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.  */
21
22
23 extern int m68hc11_override_options PARAMS((void));
24 extern void m68hc11_conditional_register_usage PARAMS((void));
25 extern int hard_regno_mode_ok PARAMS((int, enum machine_mode));
26
27 extern int m68hc11_total_frame_size PARAMS((void));
28 extern int m68hc11_initial_frame_pointer_offset PARAMS((void));
29 extern int m68hc11_initial_elimination_offset PARAMS((int, int));
30
31 extern void expand_prologue PARAMS((void));
32 extern void expand_epilogue PARAMS((void));
33 extern int m68hc11_function_block_profiler PARAMS((FILE*,int));
34
35 extern int m68hc11_block_profiler PARAMS((FILE*,int));
36
37 extern void m68hc11_asm_file_start PARAMS((FILE*, const char*));
38
39 #ifdef TREE_CODE
40 extern void m68hc11_function_arg_advance PARAMS((CUMULATIVE_ARGS*,
41                                                  enum machine_mode,
42                                                  tree,
43                                                  int));
44 extern void m68hc11_encode_section_info PARAMS((tree));
45 #endif
46
47 #ifdef RTX_CODE
48 extern rtx m68hc11_compare_op0;
49 extern rtx m68hc11_compare_op1;
50 extern rtx m68hc11_soft_tmp_reg;
51 extern rtx iy_reg;
52 extern rtx d_reg;
53
54 extern void m68hc11_initialize_trampoline PARAMS((rtx, rtx, rtx));
55
56 extern rtx m68hc11_expand_compare_and_branch PARAMS((enum rtx_code,
57                                                      rtx, rtx, rtx));
58 extern enum reg_class preferred_reload_class PARAMS((rtx, enum reg_class));
59
60 extern int m68hc11_go_if_legitimate_address PARAMS((rtx,
61                                                     enum machine_mode,
62                                                     int));
63
64 extern int m68hc11_legitimize_address PARAMS((rtx*, rtx, enum machine_mode));
65
66 extern void m68hc11_notice_update_cc PARAMS((rtx, rtx));
67 extern void m68hc11_notice_keep_cc PARAMS((rtx));
68
69 extern void m68hc11_reorg PARAMS((rtx));
70
71 extern void m68hc11_gen_movqi PARAMS((rtx, rtx*));
72 extern void m68hc11_gen_movhi PARAMS((rtx, rtx*));
73 extern void m68hc11_gen_rotate PARAMS((enum rtx_code, rtx, rtx*));
74
75 extern void m68hc11_output_swap PARAMS((rtx,rtx*));
76
77 extern int next_insn_test_reg PARAMS((rtx,rtx));
78
79 extern void print_operand PARAMS((FILE*,rtx,int));
80 extern void print_operand_address PARAMS((FILE*,rtx));
81
82 extern int m68hc11_reload_operands PARAMS((rtx*));
83
84 extern int dead_register_here PARAMS((rtx, rtx));
85
86 extern int push_pop_operand_p PARAMS((rtx));
87 extern void m68hc11_split_move PARAMS((rtx, rtx, rtx));
88 extern void m68hc11_split_compare_and_branch PARAMS((enum rtx_code,
89                                                      rtx, rtx, rtx));
90 extern void aux_restore_IX_IY PARAMS((rtx));
91 extern void aux_validate_IX_IY PARAMS((rtx));
92
93 extern rtx m68hc11_gen_lowpart PARAMS((enum machine_mode, rtx));
94 extern rtx m68hc11_gen_highpart PARAMS((enum machine_mode, rtx));
95
96 #ifdef HAVE_MACHINE_MODES
97 extern int m68hc11_memory_move_cost PARAMS((enum machine_mode, enum reg_class,
98                                            int));
99 extern int m68hc11_register_move_cost PARAMS((enum reg_class, enum reg_class));
100 extern int m68hc11_rtx_costs PARAMS((rtx, enum rtx_code, enum rtx_code));
101 extern int m68hc11_address_cost PARAMS((rtx));
102
103
104 extern void m68hc11_emit_libcall PARAMS((const char*, enum rtx_code,
105                                          enum machine_mode, enum machine_mode,
106                                          int, rtx*));
107 extern int m68hc11_small_indexed_indirect_p PARAMS((rtx, enum machine_mode));
108 extern int go_if_legitimate_address2 PARAMS((rtx, enum machine_mode, int));
109
110 extern int reg_or_indexed_operand PARAMS((rtx,enum machine_mode));
111 extern int tst_operand PARAMS((rtx,enum machine_mode));
112 extern int cmp_operand PARAMS((rtx,enum machine_mode));
113 extern int memory_indexed_operand PARAMS((rtx, enum machine_mode));
114
115 extern void m68hc11_split_logical PARAMS((enum machine_mode, int, rtx*));
116
117 extern int m68hc11_register_indirect_p PARAMS((rtx, enum machine_mode));
118
119 extern int symbolic_memory_operand PARAMS((rtx, enum machine_mode));
120
121 extern int memory_reload_operand PARAMS((rtx, enum machine_mode));
122 extern int stack_register_operand PARAMS((rtx, enum machine_mode));
123 extern int d_register_operand PARAMS((rtx, enum machine_mode));
124 extern int hard_addr_reg_operand PARAMS((rtx, enum machine_mode));
125 extern int arith_src_operand PARAMS((rtx, enum machine_mode));
126 extern int m68hc11_logical_operator PARAMS((rtx, enum machine_mode));
127 extern int m68hc11_arith_operator PARAMS((rtx, enum machine_mode));
128 extern int m68hc11_non_shift_operator PARAMS((rtx, enum machine_mode));
129 extern int m68hc11_unary_operator PARAMS((rtx, enum machine_mode));
130 extern int non_push_operand PARAMS((rtx, enum machine_mode));
131 extern int hard_reg_operand PARAMS((rtx, enum machine_mode));
132 extern int soft_reg_operand PARAMS((rtx, enum machine_mode));
133 extern int reg_or_some_mem_operand PARAMS((rtx, enum machine_mode));
134
135 #if defined TREE_CODE
136 extern void m68hc11_init_cumulative_args PARAMS((CUMULATIVE_ARGS*,
137                                                  tree,
138                                                  rtx));
139
140 extern rtx m68hc11_function_arg PARAMS((const CUMULATIVE_ARGS* ,
141                                         enum machine_mode,
142                                         tree, int));
143 extern int m68hc11_function_arg_pass_by_reference PARAMS((const CUMULATIVE_ARGS*,
144                                                           enum machine_mode,
145                                                           tree,
146                                                           int));
147 extern int m68hc11_function_arg_padding PARAMS((enum machine_mode, tree));
148
149 extern void m68hc11_expand_builtin_va_start PARAMS((int, tree, rtx));
150
151 extern rtx m68hc11_va_arg PARAMS((tree,tree));
152 extern void m68hc11_expand_builtin_va_start PARAMS((int,tree,rtx));
153
154 extern void m68hc11_function_epilogue PARAMS((FILE*,int));
155
156 #endif /* TREE_CODE */
157
158 extern HOST_WIDE_INT m68hc11_min_offset;
159 extern HOST_WIDE_INT m68hc11_max_offset;
160
161 #endif /* HAVE_MACHINE_MODES */
162 #endif /* RTX_CODE */
163