OSDN Git Service

PR libgcj/23508
[pf3gnuchains/gcc-fork.git] / gcc / config / crx / crx-protos.h
1 /* Prototypes for exported functions defined in crx.c
2    Copyright (C) 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
3    2002, 2003, 2004  Free Software Foundation, Inc.
4
5    This file is part of GCC.
6
7    GCC is free software; you can redistribute it and/or modify it
8    under the terms of the GNU General Public License as published
9    by the Free Software Foundation; either version 2, or (at your
10    option) any later version.
11
12    GCC is distributed in the hope that it will be useful, but WITHOUT
13    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
15    License for more details.
16
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, 51 Franklin Street, Fifth Floor,
20    Boston, MA 02110-1301, USA.  */
21
22 #ifndef GCC_CRX_PROTOS_H
23 #define GCC_CRX_PROTOS_H
24
25
26 /* Register usage. */
27 extern enum reg_class crx_regno_reg_class (int);
28 extern int crx_hard_regno_mode_ok (int regno, enum machine_mode);
29 #ifdef RTX_CODE
30 extern enum reg_class crx_secondary_reload_class (enum reg_class, enum machine_mode, rtx);
31 #endif /* RTX_CODE */
32
33 /* Passing function arguments.  */
34 extern int crx_function_arg_regno_p (int);
35 #ifdef TREE_CODE
36 extern void crx_function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode, tree, int);
37 #ifdef RTX_CODE
38 extern void crx_init_cumulative_args (CUMULATIVE_ARGS *, tree, rtx);
39 extern rtx crx_function_arg (struct cumulative_args *, enum machine_mode, tree, int);
40 #endif /* RTX_CODE */
41 #endif /* TREE_CODE */
42
43 #ifdef RTX_CODE
44 /* Addressing Modes.  */
45 struct crx_address
46 {
47   rtx base, index, disp, side_effect;
48   int scale;
49 };
50
51 enum crx_addrtype
52 {
53   CRX_INVALID, CRX_REG_REL, CRX_POST_INC, CRX_SCALED_INDX, CRX_ABSOLUTE
54 };
55
56 extern enum crx_addrtype crx_decompose_address (rtx addr, struct crx_address *out);
57 extern int crx_legitimate_address_p (enum machine_mode, rtx, int);
58
59 extern int crx_const_double_ok (rtx op);
60
61 /* Instruction output.  */
62 extern void crx_print_operand (FILE *, rtx, int);
63 extern void crx_print_operand_address (FILE *, rtx);
64
65 /* Misc functions called from crx.md.  */
66 extern rtx crx_expand_compare (enum rtx_code, enum machine_mode);
67 extern void crx_expand_branch (enum rtx_code, rtx);
68 extern void crx_expand_scond (enum rtx_code, rtx);
69
70 extern void crx_expand_movmem_single (rtx, rtx, rtx, rtx, rtx, unsigned HOST_WIDE_INT *);
71 extern int crx_expand_movmem (rtx, rtx, rtx, rtx);
72 #endif /* RTX_CODE */
73
74 /* Routines to compute costs.  */
75 extern int crx_memory_move_cost (enum machine_mode, enum reg_class, int);
76
77 /* Prologue/Epilogue functions.  */
78 extern int crx_initial_elimination_offset (int, int);
79 extern char *crx_prepare_push_pop_string (int);
80 extern void crx_expand_prologue (void);
81 extern void crx_expand_epilogue (void);
82
83
84 /* Handling the "interrupt" attribute */
85 extern int crx_interrupt_function_p (void);
86
87 #endif /* GCC_CRX_PROTOS_H */