OSDN Git Service

848997e4d3ee925295c498e5bfa71208b6133483
[pf3gnuchains/gcc-fork.git] / gcc / config / pa / pa-protos.h
1 /* Prototypes for pa.c functions used in the md file & elsewhere.
2    Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
3
4 This file is part of GCC.
5
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.
10
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.
15
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.  */
20
21 #ifdef RTX_CODE
22 /* Prototype function used in various macros.  */
23 extern int symbolic_operand (rtx, enum machine_mode);
24
25 /* Used in insn-*.c.  */
26 extern int following_call (rtx);
27 extern int function_label_operand (rtx, enum machine_mode);
28 extern int lhs_lshift_cint_operand (rtx, enum machine_mode);
29
30 #ifdef TREE_CODE
31 extern void hppa_va_start (tree, rtx);
32 extern rtx hppa_va_arg (tree, tree);
33 #endif /* TREE_CODE */
34 extern rtx hppa_legitimize_address (rtx, rtx, enum machine_mode);
35
36 /* Define functions in pa.c and used in insn-output.c.  */
37
38 extern const char *output_and (rtx *);
39 extern const char *output_ior (rtx *);
40 extern const char *output_move_double (rtx *);
41 extern const char *output_fp_move_double (rtx *);
42 extern const char *output_block_move (rtx *, int);
43 extern const char *output_block_clear (rtx *, int);
44 extern const char *output_cbranch (rtx *, int, int, int, rtx);
45 extern const char *output_lbranch (rtx, rtx);
46 extern const char *output_bb (rtx *, int, int, int, rtx, int);
47 extern const char *output_bvb (rtx *, int, int, int, rtx, int);
48 extern const char *output_dbra (rtx *, rtx, int);
49 extern const char *output_movb (rtx *, rtx, int, int);
50 extern const char *output_parallel_movb (rtx *, int);
51 extern const char *output_parallel_addb (rtx *, int);
52 extern const char *output_call (rtx, rtx, int);
53 extern const char *output_indirect_call (rtx, rtx);
54 extern const char *output_millicode_call (rtx, rtx);
55 extern const char *output_mul_insn (int, rtx);
56 extern const char *output_div_insn (rtx *, int, rtx);
57 extern const char *output_mod_insn (int, rtx);
58 extern const char *singlemove_string (rtx *);
59 extern void output_arg_descriptor (rtx);
60 extern void output_global_address (FILE *, rtx, int);
61 extern void print_operand (FILE *, rtx, int);
62 extern rtx legitimize_pic_address (rtx, enum machine_mode, rtx);
63 extern struct rtx_def *gen_cmp_fp (enum rtx_code, rtx, rtx);
64 extern void hppa_encode_label (rtx);
65 extern int arith11_operand (rtx, enum machine_mode);
66 extern int adddi3_operand (rtx, enum machine_mode);
67 extern int indexed_memory_operand (rtx, enum machine_mode);
68 extern int symbolic_expression_p (rtx);
69 extern int symbolic_memory_operand (rtx, enum machine_mode);
70 extern int pa_adjust_insn_length (rtx, int);
71 extern int int11_operand (rtx, enum machine_mode);
72 extern int reg_or_cint_move_operand (rtx, enum machine_mode);
73 extern int arith5_operand (rtx, enum machine_mode);
74 extern int uint5_operand (rtx, enum machine_mode);
75 extern int pic_label_operand (rtx, enum machine_mode);
76 extern int plus_xor_ior_operator (rtx, enum machine_mode);
77 extern int borx_reg_operand (rtx, enum machine_mode);
78 extern int shadd_operand (rtx, enum machine_mode);
79 extern int arith_operand (rtx, enum machine_mode);
80 extern int read_only_operand (rtx, enum machine_mode);
81 extern int move_dest_operand (rtx, enum machine_mode);
82 extern int move_src_operand (rtx, enum machine_mode);
83 extern int and_operand (rtx, enum machine_mode);
84 extern int ior_operand (rtx, enum machine_mode);
85 extern int arith32_operand (rtx, enum machine_mode);
86 extern int uint32_operand (rtx, enum machine_mode);
87 extern int reg_before_reload_operand (rtx, enum machine_mode);
88 extern int reg_or_0_operand (rtx, enum machine_mode);
89 extern int reg_or_0_or_nonsymb_mem_operand (rtx, enum machine_mode);
90 extern int pre_cint_operand (rtx, enum machine_mode);
91 extern int post_cint_operand (rtx, enum machine_mode);
92 extern int div_operand (rtx, enum machine_mode);
93 extern int int5_operand (rtx, enum machine_mode);
94 extern int movb_comparison_operator (rtx, enum machine_mode);
95 extern int ireg_or_int5_operand (rtx, enum machine_mode);
96 extern int fmpyaddoperands (rtx *);
97 extern int fmpysuboperands (rtx *);
98 extern int call_operand_address (rtx, enum machine_mode);
99 extern int ior_operand (rtx, enum machine_mode);
100 extern void emit_bcond_fp (enum rtx_code, rtx);
101 extern int emit_move_sequence (rtx *, enum machine_mode, rtx);
102 extern int emit_hpdiv_const (rtx *, int);
103 extern int is_function_label_plus_const (rtx);
104 extern int jump_in_call_delay (rtx);
105 extern enum reg_class secondary_reload_class (enum reg_class,
106                                               enum machine_mode, rtx);
107 extern int hppa_fpstore_bypass_p (rtx, rtx);
108 extern int attr_length_millicode_call (rtx);
109 extern int attr_length_call (rtx, int);
110 extern int attr_length_indirect_call (rtx);
111 extern int attr_length_save_restore_dltp (rtx);
112
113 /* Declare functions defined in pa.c and used in templates.  */
114
115 extern struct rtx_def *return_addr_rtx (int, rtx);
116
117 extern int fp_reg_operand (rtx, enum machine_mode);
118 extern int arith_double_operand (rtx, enum machine_mode);
119 extern int ireg_operand (rtx, enum machine_mode);
120 extern int lhs_lshift_operand (rtx, enum machine_mode);
121 extern int pc_or_label_operand (rtx, enum machine_mode);
122 #ifdef ARGS_SIZE_RTX
123 /* expr.h defines ARGS_SIZE_RTX and `enum direction' */
124 #ifdef TREE_CODE
125 extern enum direction function_arg_padding (enum machine_mode, tree);
126 #endif
127 #endif /* ARGS_SIZE_RTX */
128 extern int non_hard_reg_operand (rtx, enum machine_mode);
129 extern int eq_neq_comparison_operator (rtx, enum machine_mode);
130 extern int insn_refs_are_delayed (rtx);
131 #endif /* RTX_CODE */
132
133 /* Prototype function used in macro CONST_OK_FOR_LETTER_P.  */
134 extern int zdepi_cint_p (unsigned HOST_WIDE_INT);
135
136 extern struct rtx_def *hppa_builtin_saveregs (void);
137
138 extern void override_options (void);
139 extern void output_ascii (FILE *, const char *, int);
140 extern HOST_WIDE_INT compute_frame_size (HOST_WIDE_INT, int *);
141 extern int and_mask_p (unsigned HOST_WIDE_INT);
142 extern int cint_ok_for_move (HOST_WIDE_INT);
143 extern void hppa_expand_prologue (void);
144 extern void hppa_expand_epilogue (void);
145 extern int hppa_can_use_return_insn_p (void);
146 extern int ior_mask_p (unsigned HOST_WIDE_INT);
147 extern void compute_zdepdi_operands (unsigned HOST_WIDE_INT,
148                                      unsigned *);
149 #ifdef RTX_CODE
150 extern const char * output_64bit_and (rtx *);
151 extern const char * output_64bit_ior (rtx *);
152 extern int cmpib_comparison_operator (rtx, enum machine_mode);
153 #endif
154
155
156
157 #ifdef TREE_CODE
158 extern int reloc_needed (tree);
159 #ifdef RTX_CODE
160 extern rtx function_arg (CUMULATIVE_ARGS *, enum machine_mode,
161                          tree, int);
162 extern rtx function_value (tree, tree);
163 #endif
164 extern int function_arg_partial_nregs (CUMULATIVE_ARGS *,
165                                        enum machine_mode,
166                                        tree, int);
167 #endif /* TREE_CODE */