OSDN Git Service

* config/alpha/alpha.h (PREDICATE_CODES): Add normal_memory_operand.
[pf3gnuchains/gcc-fork.git] / gcc / config / alpha / alpha-protos.h
1 /* Prototypes for alpha.c functions used in the md file & elsewhere.
2    Copyright (C) 1999, 2000, 2001, 2002, 2003 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 extern int alpha_next_sequence_number;
22
23 extern void literal_section (void);
24 extern void override_options (void);
25 extern int zap_mask (HOST_WIDE_INT);
26 extern int direct_return (void);
27
28 extern int alpha_sa_size (void);
29 extern HOST_WIDE_INT alpha_initial_elimination_offset (unsigned int,
30                                                        unsigned int);
31 extern int alpha_pv_save_size (void);
32 extern int alpha_using_fp (void);
33 extern void alpha_expand_prologue (void);
34 extern void alpha_expand_epilogue (void);
35 extern void alpha_output_filename (FILE *, const char *);
36 extern void alpha_output_lineno (FILE *, int);
37
38 extern bool alpha_const_ok_for_letter_p (HOST_WIDE_INT, int);
39 extern bool alpha_const_double_ok_for_letter_p (rtx, int);
40 extern bool alpha_extra_constraint (rtx, int);
41
42 extern rtx alpha_tablejump_addr_vec (rtx);
43 extern rtx alpha_tablejump_best_label (rtx);
44
45 extern bool alpha_legitimate_address_p (enum machine_mode, rtx, int);
46 extern rtx alpha_legitimize_address (rtx, rtx, enum machine_mode);
47 extern rtx alpha_legitimize_reload_address (rtx, enum machine_mode,
48                                             int, int, int);
49
50 extern rtx split_small_symbolic_operand (rtx);
51
52 extern void get_aligned_mem (rtx, rtx *, rtx *);
53 extern rtx get_unaligned_address (rtx, int);
54 extern enum reg_class alpha_preferred_reload_class (rtx, enum reg_class);
55 extern enum reg_class secondary_reload_class (enum reg_class,
56                                               enum machine_mode, rtx, int);
57
58 extern void alpha_set_memflags (rtx, rtx);
59 extern rtx alpha_emit_set_const (rtx, enum machine_mode, HOST_WIDE_INT, int);
60 extern rtx alpha_emit_set_long_const (rtx, HOST_WIDE_INT, HOST_WIDE_INT);
61 extern bool alpha_expand_mov (enum machine_mode, rtx *);
62 extern bool alpha_expand_mov_nobwx (enum machine_mode, rtx *);
63 extern void alpha_emit_floatuns (rtx[]);
64 extern rtx alpha_emit_conditional_move (rtx, enum machine_mode);
65 extern void alpha_split_tfmode_pair (rtx[]);
66 extern void alpha_split_tfmode_frobsign (rtx[], rtx (*)(rtx, rtx, rtx));
67 extern void alpha_expand_unaligned_load (rtx, rtx, HOST_WIDE_INT,
68                                          HOST_WIDE_INT, int);
69 extern void alpha_expand_unaligned_store (rtx, rtx, HOST_WIDE_INT,
70                                           HOST_WIDE_INT);
71 extern int alpha_expand_block_move (rtx []);
72 extern int alpha_expand_block_clear (rtx []);
73 extern rtx alpha_expand_zap_mask (HOST_WIDE_INT);
74 extern void alpha_expand_builtin_vector_binop (rtx (*)(rtx, rtx, rtx),
75                                                enum machine_mode,
76                                                rtx, rtx, rtx);
77 extern rtx alpha_return_addr (int, rtx);
78 extern rtx alpha_gp_save_rtx (void);
79 extern void print_operand (FILE *, rtx, int);
80 extern void print_operand_address (FILE *, rtx);
81 extern void alpha_initialize_trampoline (rtx, rtx, rtx, int, int, int);
82
83 extern tree alpha_build_va_list (void);
84 extern void alpha_va_start (tree, rtx);
85 extern rtx alpha_va_arg (tree, tree);
86 extern rtx function_arg (CUMULATIVE_ARGS, enum machine_mode, tree, int);
87 extern rtx function_value (tree, tree, enum machine_mode);
88
89 extern void alpha_start_function (FILE *, const char *, tree);
90 extern void alpha_end_function (FILE *, const char *, tree);
91
92 extern int alpha_find_lo_sum_using_gp (rtx);
93
94 #ifdef REAL_VALUE_TYPE
95 extern int check_float_value (enum machine_mode, REAL_VALUE_TYPE *, int);
96 #endif
97
98 #ifdef RTX_CODE
99 extern rtx alpha_emit_conditional_branch (enum rtx_code);
100 extern rtx alpha_emit_setcc (enum rtx_code);
101 extern int alpha_split_conditional_move (enum rtx_code, rtx, rtx, rtx, rtx);
102 extern void alpha_emit_xfloating_arith (enum rtx_code, rtx[]);
103 extern void alpha_emit_xfloating_cvt (enum rtx_code, rtx[]);
104 #endif
105
106 extern rtx alpha_need_linkage (const char *, int);
107 extern rtx alpha_use_linkage (rtx, tree, int, int);
108
109 #if TARGET_ABI_OPEN_VMS
110 extern enum avms_arg_type alpha_arg_type (enum machine_mode);
111 extern rtx alpha_arg_info_reg_val (CUMULATIVE_ARGS);
112 #endif
113
114 extern rtx unicosmk_add_call_info_word (rtx);
115
116 #if TARGET_ABI_UNICOSMK
117 extern void unicosmk_defer_case_vector (rtx, rtx);
118 extern void unicosmk_add_extern (const char *);
119 extern void unicosmk_output_align (FILE *, int);
120 extern char * unicosmk_text_section (void);
121 extern char * unicosmk_data_section (void);
122 extern void unicosmk_output_common (FILE *, const char *, int, int);
123 extern int unicosmk_initial_elimination_offset (int, int);
124 #endif