2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / config / ip2k / ip2k-protos.h
blob1c4355ff92cd3b638ad367431847038a52c3b3e4
1 /* Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
2 Contributed by Red Hat, Inc and Ubicom, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 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 extern void function_prologue (FILE *, HOST_WIDE_INT);
22 extern void function_epilogue (FILE *, HOST_WIDE_INT);
23 extern int find_one_set_bit_p (HOST_WIDE_INT);
24 extern int find_one_clear_bit_p (HOST_WIDE_INT);
26 #ifdef TREE_CODE
27 extern void unique_section (tree, int);
28 extern int valid_machine_type_attribute (tree, tree, tree, tree);
29 extern int valid_machine_decl_attribute (tree, tree, tree, tree);
30 extern int ip2k_return_pops_args (tree, tree, int);
31 #endif /* TREE_CODE */
33 #ifdef RTX_CODE
34 extern int legitimate_address_p (enum machine_mode, rtx, int);
35 extern int ip2k_extra_constraint (rtx, int);
36 extern rtx legitimize_address (rtx, rtx, enum machine_mode, rtx);
37 extern int adjust_insn_length (rtx insn, int len);
38 extern void asm_output_char (FILE *, rtx);
39 extern void asm_output_short (FILE *, rtx);
40 extern void asm_output_byte (FILE *, int);
41 extern void print_operand (FILE *, rtx, int);
42 extern void print_operand_address (FILE *, rtx);
43 extern int ip2k_jump_mode (rtx, rtx);
44 extern void ip2k_split_words (enum machine_mode, enum machine_mode, rtx *);
45 extern rtx ip2k_get_low_half (rtx, enum machine_mode);
46 extern rtx ip2k_get_high_half (rtx, enum machine_mode);
47 extern int ip2k_nonptr_operand (rtx, enum machine_mode);
48 extern int ip2k_ptr_operand (rtx, enum machine_mode);
49 extern int ip2k_ip_operand (rtx, enum machine_mode);
50 extern int ip2k_short_operand (rtx, enum machine_mode);
51 extern int ip2k_gen_operand (rtx, enum machine_mode);
52 extern int ip2k_nonsp_reg_operand (rtx, enum machine_mode);
53 extern int ip2k_symbol_ref_operand (rtx, enum machine_mode);
54 extern const char *ip2k_set_compare (rtx, rtx);
55 extern const char *ip2k_gen_sCOND (rtx, enum rtx_code, rtx);
56 extern const char *ip2k_gen_signed_comp_branch (rtx, enum rtx_code, rtx);
57 extern const char *ip2k_gen_unsigned_comp_branch (rtx, enum rtx_code, rtx);
58 extern int is_regfile_address (rtx);
59 extern int ip2k_mode_dependent_address (rtx);
60 extern int ip2k_address_uses_reg_p (rtx, unsigned int);
61 extern int ip2k_xexp_not_uses_reg_p (rtx, unsigned int, int);
62 extern int ip2k_composite_xexp_not_uses_reg_p (rtx, unsigned int, int);
63 extern int ip2k_composite_xexp_not_uses_cc0_p (rtx);
64 extern int ip2k_signed_comparison_operator (rtx, enum machine_mode);
65 extern int ip2k_unsigned_comparison_operator (rtx, enum machine_mode);
66 extern int ip2k_unary_operator (rtx, enum machine_mode);
67 extern int ip2k_binary_operator (rtx, enum machine_mode);
69 extern rtx ip2k_compare_operands[3];
70 #endif /* RTX_CODE */
72 #ifdef HAVE_MACHINE_MODES
73 extern int class_max_nregs (enum reg_class, enum machine_mode);
74 extern enum reg_class class_likely_spilled_p (int c);
75 #endif /* HAVE_MACHINE_MODES */
77 #ifdef REAL_VALUE_TYPE
78 extern void asm_output_float (FILE *, REAL_VALUE_TYPE);
79 #endif
81 extern int ip2k_init_elim_offset (int, int);
82 extern void ip2k_init_local_alloc (int *);