1 /* Prototypes for m32r.c functions used in the md file & elsewhere.
2 Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published
8 by the Free Software Foundation; either version 2, or (at your
9 option) any later version.
11 GCC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 /* Function prototypes that cannot exist in v850.h due to dependency
23 #define Mmode enum machine_mode
25 extern void sbss_section (void);
26 extern void sdata_section (void);
27 extern void m32r_init (void);
28 extern void m32r_init_expanders (void);
29 extern unsigned m32r_compute_frame_size (int);
30 extern int m32r_first_insn_address (void);
31 extern void m32r_expand_prologue (void);
32 extern void m32r_finalize_pic (void);
33 extern int direct_return (void);
34 extern void m32r_load_pic_register (void);
37 extern enum m32r_function_type
m32r_compute_function_type (tree
);
39 #ifdef HAVE_MACHINE_MODES
40 extern void m32r_setup_incoming_varargs (CUMULATIVE_ARGS
*, Mmode
, tree
, int *, int);
41 extern int function_arg_partial_nregs (CUMULATIVE_ARGS
*, Mmode
, tree
, int);
43 #endif /* TREE_CODE */
46 extern int easy_di_const (rtx
);
47 extern int easy_df_const (rtx
);
48 extern rtx
gen_compare (enum rtx_code
, rtx
, rtx
, int);
49 extern rtx
gen_split_move_double (rtx
*);
50 extern int m32r_address_code (rtx
);
51 extern void m32r_initialize_trampoline (rtx
, rtx
, rtx
);
52 extern int zero_and_one (rtx
, rtx
);
53 extern char * emit_cond_move (rtx
*, rtx
);
54 extern void m32r_output_block_move (rtx
, rtx
*);
55 extern void m32r_expand_block_move (rtx
*);
56 extern void m32r_print_operand (FILE *, rtx
, int);
57 extern void m32r_print_operand_address (FILE *, rtx
);
58 extern int m32r_not_same_reg (rtx
, rtx
);
59 extern int m32r_hard_regno_rename_ok (unsigned int, unsigned int);
60 extern int m32r_legitimate_pic_operand_p (rtx
);
61 extern rtx
m32r_legitimize_pic_address (rtx
, rtx
);
63 #ifdef HAVE_MACHINE_MODES
64 extern int call_address_operand (rtx
, Mmode
);
65 extern int call_operand (rtx
, Mmode
);
66 extern int symbolic_operand (rtx
, Mmode
);
67 extern int small_data_operand (rtx
, Mmode
);
68 extern int addr24_operand (rtx
, Mmode
);
69 extern int addr32_operand (rtx
, Mmode
);
70 extern int call26_operand (rtx
, Mmode
);
71 extern int seth_add3_operand (rtx
, Mmode
);
72 extern int cmp_int16_operand (rtx
, Mmode
);
73 extern int uint16_operand (rtx
, Mmode
);
74 extern int reg_or_int16_operand (rtx
, Mmode
);
75 extern int reg_or_uint16_operand (rtx
, Mmode
);
76 extern int reg_or_cmp_int16_operand (rtx
, Mmode
);
77 extern int two_insn_const_operand (rtx
, Mmode
);
78 extern int move_src_operand (rtx
, Mmode
);
79 extern int move_double_src_operand (rtx
, Mmode
);
80 extern int move_dest_operand (rtx
, Mmode
);
81 extern int eqne_comparison_operator (rtx
, Mmode
);
82 extern int signed_comparison_operator (rtx
, Mmode
);
83 extern int memreg_operand (rtx
, Mmode
);
84 extern int small_insn_p (rtx
, Mmode
);
85 extern int large_insn_p (rtx
, Mmode
);
86 extern int conditional_move_operand (rtx
, Mmode
);
87 extern int carry_compare_operand (rtx
, Mmode
);
88 extern int m32r_block_immediate_operand (rtx
, Mmode
);
89 extern int extend_operand (rtx
, Mmode
);
90 extern int reg_or_eq_int16_operand (rtx
, Mmode
);
91 extern int int8_operand (rtx
, Mmode
);
92 extern int reg_or_zero_operand (rtx
, Mmode
);
94 #endif /* HAVE_MACHINE_MODES */
97 extern struct rtx_def
* m32r_va_arg (tree
, tree
);
98 extern int m32r_pass_by_reference (tree
);
99 #endif /* TREE_CODE */
100 #endif /* RTX_CODE */