1 /* Prototypes for exported functions defined in m68hc11.c
2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 Contributed by Stephane Carrez (stcarrez@nerim.fr)
5 This file is part of GNU CC.
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)
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.
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. */
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));
28 extern int m68hc11_total_frame_size PARAMS((void));
29 extern int m68hc11_initial_frame_pointer_offset PARAMS((void));
30 extern int m68hc11_initial_elimination_offset PARAMS((int, int));
32 extern void expand_prologue PARAMS((void));
33 extern void expand_epilogue PARAMS((void));
35 extern void m68hc11_asm_file_start PARAMS((FILE*, const char*));
38 extern void m68hc11_function_arg_advance PARAMS((CUMULATIVE_ARGS*,
45 extern rtx m68hc11_compare_op0;
46 extern rtx m68hc11_compare_op1;
47 extern GTY(()) rtx m68hc11_soft_tmp_reg;
48 extern GTY(()) rtx ix_reg;
49 extern GTY(()) rtx iy_reg;
50 extern GTY(()) rtx d_reg;
51 extern GTY(()) rtx da_reg;
52 extern GTY(()) rtx stack_push_word;
53 extern GTY(()) rtx stack_pop_word;
54 extern GTY(()) rtx z_reg;
55 extern GTY(()) rtx z_reg_qi;
57 extern void m68hc11_initialize_trampoline PARAMS((rtx, rtx, rtx));
59 extern rtx m68hc11_expand_compare_and_branch PARAMS((enum rtx_code,
61 extern enum reg_class preferred_reload_class PARAMS((rtx, enum reg_class));
63 extern int m68hc11_go_if_legitimate_address PARAMS((rtx,
67 extern int m68hc11_legitimize_address PARAMS((rtx*, rtx, enum machine_mode));
69 extern void m68hc11_notice_update_cc PARAMS((rtx, rtx));
70 extern void m68hc11_notice_keep_cc PARAMS((rtx));
72 extern void m68hc11_reorg PARAMS((rtx));
74 extern void m68hc11_gen_movqi PARAMS((rtx, rtx*));
75 extern void m68hc11_gen_movhi PARAMS((rtx, rtx*));
76 extern void m68hc11_gen_rotate PARAMS((enum rtx_code, rtx, rtx*));
78 extern void m68hc11_output_swap PARAMS((rtx,rtx*));
80 extern int next_insn_test_reg PARAMS((rtx,rtx));
82 extern void print_operand PARAMS((FILE*,rtx,int));
83 extern void print_operand_address PARAMS((FILE*,rtx));
85 extern int m68hc11_reload_operands PARAMS((rtx*));
87 extern int dead_register_here PARAMS((rtx, rtx));
89 extern int push_pop_operand_p PARAMS((rtx));
90 extern void m68hc11_split_move PARAMS((rtx, rtx, rtx));
91 extern void m68hc11_split_compare_and_branch PARAMS((enum rtx_code,
93 extern void aux_restore_IX_IY PARAMS((rtx));
94 extern void aux_validate_IX_IY PARAMS((rtx));
96 extern rtx m68hc11_gen_lowpart PARAMS((enum machine_mode, rtx));
97 extern rtx m68hc11_gen_highpart PARAMS((enum machine_mode, rtx));
99 #ifdef HAVE_MACHINE_MODES
100 extern int m68hc11_memory_move_cost PARAMS((enum machine_mode, enum reg_class,
102 extern int m68hc11_register_move_cost PARAMS((enum machine_mode,
103 enum reg_class, enum reg_class));
104 extern int m68hc11_rtx_costs PARAMS((rtx, enum rtx_code, enum rtx_code));
105 extern int m68hc11_address_cost PARAMS((rtx));
108 extern void m68hc11_emit_libcall PARAMS((const char*, enum rtx_code,
109 enum machine_mode, enum machine_mode,
111 extern int m68hc11_small_indexed_indirect_p PARAMS((rtx, enum machine_mode));
112 extern int m68hc11_symbolic_p PARAMS((rtx, enum machine_mode));
113 extern int m68hc11_indirect_p PARAMS((rtx, enum machine_mode));
114 extern int go_if_legitimate_address2 PARAMS((rtx, enum machine_mode, int));
116 extern int reg_or_indexed_operand PARAMS((rtx,enum machine_mode));
117 extern int tst_operand PARAMS((rtx,enum machine_mode));
118 extern int cmp_operand PARAMS((rtx,enum machine_mode));
119 extern int memory_indexed_operand PARAMS((rtx, enum machine_mode));
121 extern void m68hc11_split_logical PARAMS((enum machine_mode, int, rtx*));
123 extern int m68hc11_register_indirect_p PARAMS((rtx, enum machine_mode));
125 extern int symbolic_memory_operand PARAMS((rtx, enum machine_mode));
127 extern int memory_reload_operand PARAMS((rtx, enum machine_mode));
128 extern int stack_register_operand PARAMS((rtx, enum machine_mode));
129 extern int d_register_operand PARAMS((rtx, enum machine_mode));
130 extern int hard_addr_reg_operand PARAMS((rtx, enum machine_mode));
131 extern int arith_src_operand PARAMS((rtx, enum machine_mode));
132 extern int m68hc11_logical_operator PARAMS((rtx, enum machine_mode));
133 extern int m68hc11_arith_operator PARAMS((rtx, enum machine_mode));
134 extern int m68hc11_non_shift_operator PARAMS((rtx, enum machine_mode));
135 extern int m68hc11_unary_operator PARAMS((rtx, enum machine_mode));
136 extern int non_push_operand PARAMS((rtx, enum machine_mode));
137 extern int hard_reg_operand PARAMS((rtx, enum machine_mode));
138 extern int soft_reg_operand PARAMS((rtx, enum machine_mode));
139 extern int reg_or_some_mem_operand PARAMS((rtx, enum machine_mode));
141 #if defined TREE_CODE
142 extern void m68hc11_init_cumulative_args PARAMS((CUMULATIVE_ARGS*,
146 extern rtx m68hc11_function_arg PARAMS((const CUMULATIVE_ARGS* ,
149 extern int m68hc11_function_arg_pass_by_reference PARAMS((const CUMULATIVE_ARGS*,
153 extern int m68hc11_function_arg_padding PARAMS((enum machine_mode, tree));
155 extern void m68hc11_expand_builtin_va_start PARAMS((int, tree, rtx));
157 extern rtx m68hc11_va_arg PARAMS((tree,tree));
158 extern void m68hc11_expand_builtin_va_start PARAMS((int,tree,rtx));
160 extern void m68hc11_function_epilogue PARAMS((FILE*,int));
162 #endif /* TREE_CODE */
164 extern HOST_WIDE_INT m68hc11_min_offset;
165 extern HOST_WIDE_INT m68hc11_max_offset;
167 #endif /* HAVE_MACHINE_MODES */
168 #endif /* RTX_CODE */