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)
5 This file is part of GCC.
7 GCC 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 GCC 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 GCC; 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 (void);
24 extern int m68hc11_optimization_options (int,int);
25 extern void m68hc11_conditional_register_usage (void);
26 extern int hard_regno_mode_ok (int, enum machine_mode
);
27 extern int m68hc11_hard_regno_rename_ok (int, int);
29 extern int m68hc11_total_frame_size (void);
30 extern int m68hc11_initial_frame_pointer_offset (void);
31 extern int m68hc11_initial_elimination_offset (int, int);
33 extern void expand_prologue (void);
34 extern void expand_epilogue (void);
37 extern void m68hc11_function_arg_advance (CUMULATIVE_ARGS
*,
44 extern void m68hc11_initialize_trampoline (rtx
, rtx
, rtx
);
46 extern rtx
m68hc11_expand_compare_and_branch (enum rtx_code
, rtx
, rtx
, rtx
);
47 extern enum reg_class
preferred_reload_class (rtx
, enum reg_class
);
49 extern int m68hc11_go_if_legitimate_address (rtx
, enum machine_mode
, int);
51 extern int m68hc11_legitimize_address (rtx
*, rtx
, enum machine_mode
);
53 extern void m68hc11_notice_update_cc (rtx
, rtx
);
54 extern void m68hc11_notice_keep_cc (rtx
);
56 extern void m68hc11_gen_movqi (rtx
, rtx
*);
57 extern void m68hc11_gen_movhi (rtx
, rtx
*);
58 extern void m68hc11_gen_rotate (enum rtx_code
, rtx
, rtx
*);
60 extern void m68hc11_output_swap (rtx
, rtx
*);
62 extern int next_insn_test_reg (rtx
, rtx
);
64 extern void print_operand (FILE*, rtx
, int);
65 extern void print_operand_address (FILE*, rtx
);
67 extern int m68hc11_reload_operands (rtx
*);
69 extern int dead_register_here (rtx
, rtx
);
71 extern int push_pop_operand_p (rtx
);
72 extern void m68hc11_split_move (rtx
, rtx
, rtx
);
73 extern void m68hc11_split_compare_and_branch (enum rtx_code
,
76 extern rtx
m68hc11_gen_lowpart (enum machine_mode
, rtx
);
77 extern rtx
m68hc11_gen_highpart (enum machine_mode
, rtx
);
79 #ifdef HAVE_MACHINE_MODES
80 extern int m68hc11_memory_move_cost (enum machine_mode
, enum reg_class
, int);
81 extern int m68hc11_register_move_cost (enum machine_mode
,
82 enum reg_class
, enum reg_class
);
84 extern void m68hc11_emit_libcall (const char*, enum rtx_code
,
85 enum machine_mode
, enum machine_mode
,
87 extern int m68hc11_small_indexed_indirect_p (rtx
, enum machine_mode
);
88 extern int m68hc11_symbolic_p (rtx
, enum machine_mode
);
89 extern int m68hc11_indirect_p (rtx
, enum machine_mode
);
90 extern int go_if_legitimate_address2 (rtx
, enum machine_mode
, int);
92 extern int reg_or_indexed_operand (rtx
,enum machine_mode
);
93 extern int tst_operand (rtx
,enum machine_mode
);
94 extern int cmp_operand (rtx
,enum machine_mode
);
95 extern int memory_indexed_operand (rtx
, enum machine_mode
);
97 extern void m68hc11_split_logical (enum machine_mode
, int, rtx
*);
99 extern int m68hc11_register_indirect_p (rtx
, enum machine_mode
);
101 extern int symbolic_memory_operand (rtx
, enum machine_mode
);
103 extern int memory_reload_operand (rtx
, enum machine_mode
);
104 extern int stack_register_operand (rtx
, enum machine_mode
);
105 extern int d_register_operand (rtx
, enum machine_mode
);
106 extern int hard_addr_reg_operand (rtx
, enum machine_mode
);
107 extern int arith_src_operand (rtx
, enum machine_mode
);
108 extern int m68hc11_logical_operator (rtx
, enum machine_mode
);
109 extern int m68hc11_arith_operator (rtx
, enum machine_mode
);
110 extern int m68hc11_non_shift_operator (rtx
, enum machine_mode
);
111 extern int m68hc11_shift_operator (rtx
, enum machine_mode
);
112 extern int m68hc11_unary_operator (rtx
, enum machine_mode
);
113 extern int m68hc11_eq_compare_operator (rtx
, enum machine_mode
);
114 extern int non_push_operand (rtx
, enum machine_mode
);
115 extern int hard_reg_operand (rtx
, enum machine_mode
);
116 extern int soft_reg_operand (rtx
, enum machine_mode
);
117 extern int reg_or_some_mem_operand (rtx
, enum machine_mode
);
119 #if defined TREE_CODE
120 extern void m68hc11_init_cumulative_args (CUMULATIVE_ARGS
*, tree
, rtx
);
122 extern rtx
m68hc11_function_arg (const CUMULATIVE_ARGS
* ,
125 extern int m68hc11_function_arg_pass_by_reference (const CUMULATIVE_ARGS
*,
129 extern int m68hc11_function_arg_padding (enum machine_mode
, tree
);
131 extern void m68hc11_function_epilogue (FILE*,int);
133 extern int m68hc11_is_far_symbol (rtx
);
134 extern int m68hc11_is_trap_symbol (rtx
);
136 #endif /* TREE_CODE */
138 extern HOST_WIDE_INT m68hc11_min_offset
;
139 extern HOST_WIDE_INT m68hc11_max_offset
;
141 #endif /* HAVE_MACHINE_MODES */
142 #endif /* RTX_CODE */