OSDN Git Service

3c814d73ece4a74c5ed471c10b173ca34e979745
[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, 2002, 2003 Free Software Foundation, Inc.
3    Contributed by Stephane Carrez (stcarrez@nerim.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 int m68hc11_optimization_options PARAMS((int,int));
25 extern void m68hc11_conditional_register_usage PARAMS((void));
26 extern int hard_regno_mode_ok PARAMS((int, enum machine_mode));
27 extern int m68hc11_hard_regno_rename_ok PARAMS((int, int));
28
29 extern int m68hc11_total_frame_size PARAMS((void));
30 extern int m68hc11_initial_frame_pointer_offset PARAMS((void));
31 extern int m68hc11_initial_elimination_offset PARAMS((int, int));
32
33 extern void expand_prologue PARAMS((void));
34 extern void expand_epilogue PARAMS((void));
35
36 extern void m68hc11_asm_file_start PARAMS((FILE*, const char*));
37
38 #ifdef TREE_CODE
39 extern void m68hc11_function_arg_advance PARAMS((CUMULATIVE_ARGS*,
40                                                  enum machine_mode,
41                                                  tree,
42                                                  int));
43 #endif
44
45 #ifdef RTX_CODE
46 extern void m68hc11_initialize_trampoline PARAMS((rtx, rtx, rtx));
47
48 extern rtx m68hc11_expand_compare_and_branch PARAMS((enum rtx_code,
49                                                      rtx, rtx, rtx));
50 extern enum reg_class preferred_reload_class PARAMS((rtx, enum reg_class));
51
52 extern int m68hc11_go_if_legitimate_address PARAMS((rtx,
53                                                     enum machine_mode,
54                                                     int));
55
56 extern int m68hc11_legitimize_address PARAMS((rtx*, rtx, enum machine_mode));
57
58 extern void m68hc11_notice_update_cc PARAMS((rtx, rtx));
59 extern void m68hc11_notice_keep_cc PARAMS((rtx));
60
61 extern void m68hc11_reorg PARAMS((rtx));
62
63 extern void m68hc11_gen_movqi PARAMS((rtx, rtx*));
64 extern void m68hc11_gen_movhi PARAMS((rtx, rtx*));
65 extern void m68hc11_gen_rotate PARAMS((enum rtx_code, rtx, rtx*));
66
67 extern void m68hc11_output_swap PARAMS((rtx,rtx*));
68
69 extern int next_insn_test_reg PARAMS((rtx,rtx));
70
71 extern void print_operand PARAMS((FILE*,rtx,int));
72 extern void print_operand_address PARAMS((FILE*,rtx));
73
74 extern int m68hc11_reload_operands PARAMS((rtx*));
75
76 extern int dead_register_here PARAMS((rtx, rtx));
77
78 extern int push_pop_operand_p PARAMS((rtx));
79 extern void m68hc11_split_move PARAMS((rtx, rtx, rtx));
80 extern void m68hc11_split_compare_and_branch PARAMS((enum rtx_code,
81                                                      rtx, rtx, rtx));
82 extern void aux_restore_IX_IY PARAMS((rtx));
83 extern void aux_validate_IX_IY PARAMS((rtx));
84
85 extern rtx m68hc11_gen_lowpart PARAMS((enum machine_mode, rtx));
86 extern rtx m68hc11_gen_highpart PARAMS((enum machine_mode, rtx));
87
88 #ifdef HAVE_MACHINE_MODES
89 extern int m68hc11_memory_move_cost PARAMS((enum machine_mode, enum reg_class,
90                                            int));
91 extern int m68hc11_register_move_cost PARAMS((enum machine_mode,
92                                               enum reg_class, enum reg_class));
93
94 extern void m68hc11_emit_libcall PARAMS((const char*, enum rtx_code,
95                                          enum machine_mode, enum machine_mode,
96                                          int, rtx*));
97 extern int m68hc11_small_indexed_indirect_p PARAMS((rtx, enum machine_mode));
98 extern int m68hc11_symbolic_p PARAMS((rtx, enum machine_mode));
99 extern int m68hc11_indirect_p PARAMS((rtx, enum machine_mode));
100 extern int go_if_legitimate_address2 PARAMS((rtx, enum machine_mode, int));
101
102 extern int reg_or_indexed_operand PARAMS((rtx,enum machine_mode));
103 extern int tst_operand PARAMS((rtx,enum machine_mode));
104 extern int cmp_operand PARAMS((rtx,enum machine_mode));
105 extern int memory_indexed_operand PARAMS((rtx, enum machine_mode));
106
107 extern void m68hc11_split_logical PARAMS((enum machine_mode, int, rtx*));
108
109 extern int m68hc11_register_indirect_p PARAMS((rtx, enum machine_mode));
110
111 extern int symbolic_memory_operand PARAMS((rtx, enum machine_mode));
112
113 extern int memory_reload_operand PARAMS((rtx, enum machine_mode));
114 extern int stack_register_operand PARAMS((rtx, enum machine_mode));
115 extern int d_register_operand PARAMS((rtx, enum machine_mode));
116 extern int hard_addr_reg_operand PARAMS((rtx, enum machine_mode));
117 extern int arith_src_operand PARAMS((rtx, enum machine_mode));
118 extern int m68hc11_logical_operator PARAMS((rtx, enum machine_mode));
119 extern int m68hc11_arith_operator PARAMS((rtx, enum machine_mode));
120 extern int m68hc11_non_shift_operator PARAMS((rtx, enum machine_mode));
121 extern int m68hc11_shift_operator PARAMS((rtx, enum machine_mode));
122 extern int m68hc11_unary_operator PARAMS((rtx, enum machine_mode));
123 extern int m68hc11_eq_compare_operator PARAMS((rtx, enum machine_mode));
124 extern int non_push_operand PARAMS((rtx, enum machine_mode));
125 extern int hard_reg_operand PARAMS((rtx, enum machine_mode));
126 extern int soft_reg_operand PARAMS((rtx, enum machine_mode));
127 extern int reg_or_some_mem_operand PARAMS((rtx, enum machine_mode));
128
129 #if defined TREE_CODE
130 extern void m68hc11_init_cumulative_args PARAMS((CUMULATIVE_ARGS*,
131                                                  tree,
132                                                  rtx));
133
134 extern rtx m68hc11_function_arg PARAMS((const CUMULATIVE_ARGS* ,
135                                         enum machine_mode,
136                                         tree, int));
137 extern int m68hc11_function_arg_pass_by_reference PARAMS((const CUMULATIVE_ARGS*,
138                                                           enum machine_mode,
139                                                           tree,
140                                                           int));
141 extern int m68hc11_function_arg_padding PARAMS((enum machine_mode, tree));
142
143 extern void m68hc11_function_epilogue PARAMS((FILE*,int));
144
145 extern int m68hc11_is_far_symbol PARAMS((rtx));
146 extern int m68hc11_is_trap_symbol PARAMS((rtx));
147
148 #endif /* TREE_CODE */
149
150 extern HOST_WIDE_INT m68hc11_min_offset;
151 extern HOST_WIDE_INT m68hc11_max_offset;
152
153 #endif /* HAVE_MACHINE_MODES */
154 #endif /* RTX_CODE */
155