1/* Target Prototypes for R8C/M16C/M32C
2   Copyright (C) 2005, 2007, 2008
3   Free Software Foundation, Inc.
4   Contributed by Red Hat.
5
6   This file is part of GCC.
7
8   GCC is free software; you can redistribute it and/or modify it
9   under the terms of the GNU General Public License as published
10   by the Free Software Foundation; either version 3, or (at your
11   option) any later version.
12
13   GCC is distributed in the hope that it will be useful, but WITHOUT
14   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
16   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#define MM enum machine_mode
23#define UINT unsigned int
24
25int  m32c_class_likely_spilled_p (int);
26void m32c_conditional_register_usage (void);
27int  m32c_const_ok_for_constraint_p (HOST_WIDE_INT, char, const char *);
28UINT m32c_dwarf_frame_regnum (int);
29int  m32c_eh_return_data_regno (int);
30void m32c_emit_epilogue (void);
31void m32c_emit_prologue (void);
32int  m32c_epilogue_uses (int);
33int  m32c_extra_address_constraint (char, const char *);
34int  m32c_extra_memory_constraint (char, const char *);
35int  m32c_function_arg_regno_p (int);
36void m32c_init_expanders (void);
37int  m32c_initial_elimination_offset (int, int);
38void m32c_output_reg_pop (FILE *, int);
39void m32c_output_reg_push (FILE *, int);
40void m32c_override_options (void);
41int  m32c_print_operand_punct_valid_p (int);
42int  m32c_push_rounding (int);
43int  m32c_reg_class_from_constraint (char, const char *);
44void m32c_register_pragmas (void);
45int  m32c_regno_ok_for_base_p (int);
46int  m32c_trampoline_alignment (void);
47int  m32c_trampoline_size (void);
48
49#if defined(RTX_CODE) && defined(TREE_CODE)
50
51rtx  m32c_function_arg (CUMULATIVE_ARGS *, MM, tree, int);
52
53#endif
54
55#ifdef RTX_CODE
56
57int  m32c_cannot_change_mode_class (MM, MM, int);
58int  m32c_class_max_nregs (int, MM);
59rtx  m32c_eh_return_stackadj_rtx (void);
60void m32c_emit_eh_epilogue (rtx);
61int  m32c_expand_cmpstr (rtx *);
62int  m32c_expand_insv (rtx *);
63int  m32c_expand_movcc (rtx *);
64int  m32c_expand_movmemhi (rtx *);
65int  m32c_expand_movstr (rtx *);
66void m32c_expand_neg_mulpsi3 (rtx *);
67int  m32c_expand_setmemhi (rtx *);
68int  m32c_extra_constraint_p (rtx, char, const char *);
69int  m32c_extra_constraint_p2 (rtx, char, const char *);
70int  m32c_hard_regno_nregs (int, MM);
71int  m32c_hard_regno_ok (int, MM);
72bool m32c_illegal_subreg_p (rtx);
73bool m32c_immd_dbl_mov (rtx *, MM);
74rtx  m32c_incoming_return_addr_rtx (void);
75int  m32c_legitimate_constant_p (rtx);
76int  m32c_legitimize_reload_address (rtx *, MM, int, int, int);
77bool m32c_function_value_regno_p (const unsigned int);
78int  m32c_limit_reload_class (MM, int);
79int  m32c_memory_move_cost (MM, int, int);
80int  m32c_modes_tieable_p (MM, MM);
81bool m32c_mov_ok (rtx *, MM);
82char * m32c_output_compare (rtx, rtx *);
83int  m32c_preferred_output_reload_class (rtx, int);
84int  m32c_preferred_reload_class (rtx, int);
85int  m32c_prepare_move (rtx *, MM);
86int  m32c_prepare_shift (rtx *, int, int);
87void m32c_print_operand (FILE *, rtx, int);
88void m32c_print_operand_address (FILE *, rtx);
89int  m32c_reg_ok_for_base_p (rtx, int);
90int  m32c_register_move_cost (MM, int, int);
91MM   m32c_regno_reg_class (int);
92rtx  m32c_return_addr_rtx (int);
93const char *m32c_scc_pattern (rtx *, RTX_CODE);
94int  m32c_secondary_reload_class (int, MM, rtx);
95int  m32c_split_move (rtx *, MM, int);
96int  m32c_split_psi_p (rtx *);
97
98#endif
99
100#ifdef TREE_CODE
101
102void m32c_function_arg_advance (CUMULATIVE_ARGS *, MM, tree, int);
103tree m32c_gimplify_va_arg_expr (tree, tree, gimple_seq *, gimple_seq *);
104void m32c_init_cumulative_args (CUMULATIVE_ARGS *, tree, rtx, tree, int);
105bool m32c_promote_function_return (const_tree);
106int  m32c_special_page_vector_p (tree);
107
108#endif
109
110#undef MM
111#undef UINT
112