70e63633855ad5b672185c2dac273529f6c2a6da
[gcc.git] / gcc / config / stormy16 / stormy16-protos.h
1 /* Prototypes for exported functions defined in xstormy16.c
2 Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
3 Contributed by Red Hat, Inc.
4
5 This file is part of GCC.
6
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)
10 any later version.
11
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.
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, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
21
22
23
24 extern struct xstormy16_stack_layout xstormy16_compute_stack_layout (void);
25 extern void xstormy16_expand_prologue (void);
26 extern void xstormy16_expand_epilogue (void);
27 extern int xstormy16_initial_elimination_offset (int, int);
28 extern int direct_return (void);
29 extern int xstormy16_interrupt_function_p (void);
30 extern int xstormy16_epilogue_uses (int);
31 extern void xstormy16_function_profiler (void);
32
33 #if defined (TREE_CODE)
34 # if defined (HAVE_MACHINE_MODES)
35 extern CUMULATIVE_ARGS xstormy16_function_arg_advance
36 (CUMULATIVE_ARGS, enum machine_mode, tree, int);
37 extern rtx xstormy16_function_arg
38 (CUMULATIVE_ARGS, enum machine_mode, tree, int);
39 # endif
40 extern void xstormy16_setup_incoming_varargs
41 (CUMULATIVE_ARGS, int, tree, int *);
42 extern tree xstormy16_build_va_list (void);
43 #endif
44
45 #if defined (TREE_CODE) && defined (RTX_CODE)
46 extern void xstormy16_expand_builtin_va_start (tree, rtx);
47 extern rtx xstormy16_expand_builtin_va_arg (tree, tree);
48 extern void xstormy16_initialize_trampoline (rtx, rtx, rtx);
49 extern rtx xstormy16_function_value (tree, tree);
50 #endif
51
52 #ifdef RTX_CODE
53 extern void xstormy16_emit_cbranch (enum rtx_code, rtx);
54 extern char *xstormy16_output_cbranch_hi (rtx, const char *, int, rtx);
55 extern char *xstormy16_output_cbranch_si (rtx, const char *, int, rtx);
56 extern int xstormy16_mode_dependent_address_p (rtx);
57 extern int xstormy16_extra_constraint_p (rtx, int);
58
59 extern void xstormy16_print_operand (FILE *, rtx, int);
60 extern void xstormy16_print_operand_address (FILE *, rtx);
61
62 extern void xstormy16_expand_casesi (rtx, rtx, rtx, rtx, rtx);
63 extern void xstormy16_output_addr_vec (FILE *, rtx, rtx);
64 extern void xstormy16_expand_call (rtx, rtx, rtx);
65 #endif
66
67 #if defined (HAVE_MACHINE_MODES) && defined (RTX_CODE)
68 extern int xstormy16_ineqsi_operator (rtx, enum machine_mode);
69 extern int equality_operator (rtx, enum machine_mode);
70 extern int inequality_operator (rtx, enum machine_mode);
71 extern void xstormy16_split_cbranch (enum machine_mode, rtx, rtx, rtx, rtx);
72 extern int short_memory_operand (rtx, enum machine_mode);
73 extern int nonimmediate_nonstack_operand (rtx, enum machine_mode);
74 extern enum reg_class xstormy16_secondary_reload_class
75 (enum reg_class, enum machine_mode, rtx);
76 extern int xstormy16_carry_plus_operand (rtx, enum machine_mode);
77 extern int xs_hi_general_operand (rtx, enum machine_mode);
78 extern int xs_hi_nonmemory_operand (rtx, enum machine_mode);
79 extern enum reg_class xstormy16_preferred_reload_class (rtx, enum reg_class);
80 extern int xstormy16_legitimate_address_p (enum machine_mode, rtx, int);
81 extern void xstormy16_split_move (enum machine_mode, rtx, rtx);
82 extern void xstormy16_expand_move (enum machine_mode, rtx, rtx);
83 extern void xstormy16_expand_arith (enum machine_mode, enum rtx_code,
84 rtx, rtx, rtx, rtx);
85 extern int shift_operator (rtx, enum machine_mode);
86 extern const char * xstormy16_output_shift (enum machine_mode, enum rtx_code,
87 rtx, rtx, rtx);
88 #endif
89