1 /* Prototypes for alpha.c functions used in the md file & elsewhere.
2 Copyright (C) 1999, 2000 Free Software Foundation, Inc.
4 This file is part of GNU CC.
6 GNU CC 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)
11 GNU CC 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 GNU CC; 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 int alpha_next_sequence_number
;
23 extern void literal_section
PARAMS ((void));
24 extern void override_options
PARAMS ((void));
25 extern int zap_mask
PARAMS ((HOST_WIDE_INT
));
26 extern int direct_return
PARAMS ((void));
28 extern int alpha_sa_size
PARAMS ((void));
29 extern int alpha_pv_save_size
PARAMS ((void));
30 extern int alpha_using_fp
PARAMS ((void));
31 extern void alpha_write_verstamp
PARAMS ((FILE *));
32 extern void alpha_expand_prologue
PARAMS ((void));
33 extern void alpha_expand_epilogue
PARAMS ((void));
34 extern void alpha_output_filename
PARAMS ((FILE *, const char *));
35 extern void alpha_output_lineno
PARAMS ((FILE *, int));
38 extern int reg_or_0_operand
PARAMS ((rtx
, enum machine_mode
));
39 extern int reg_or_6bit_operand
PARAMS ((rtx
, enum machine_mode
));
40 extern int reg_or_8bit_operand
PARAMS ((rtx
, enum machine_mode
));
41 extern int cint8_operand
PARAMS ((rtx
, enum machine_mode
));
42 extern int add_operand
PARAMS ((rtx
, enum machine_mode
));
43 extern int sext_add_operand
PARAMS ((rtx
, enum machine_mode
));
44 extern int const48_operand
PARAMS ((rtx
, enum machine_mode
));
45 extern int and_operand
PARAMS ((rtx
, enum machine_mode
));
46 extern int or_operand
PARAMS ((rtx
, enum machine_mode
));
47 extern int mode_width_operand
PARAMS ((rtx
, enum machine_mode
));
48 extern int mode_mask_operand
PARAMS ((rtx
, enum machine_mode
));
49 extern int mul8_operand
PARAMS ((rtx
, enum machine_mode
));
50 extern int fp0_operand
PARAMS ((rtx
, enum machine_mode
));
51 extern int reg_or_fp0_operand
PARAMS ((rtx
, enum machine_mode
));
52 extern int hard_fp_register_operand
PARAMS ((rtx
, enum machine_mode
));
53 extern int hard_int_register_operand
PARAMS ((rtx
, enum machine_mode
));
54 extern int reg_or_cint_operand
PARAMS ((rtx
, enum machine_mode
));
55 extern int some_operand
PARAMS ((rtx
, enum machine_mode
));
56 extern int some_ni_operand
PARAMS ((rtx
, enum machine_mode
));
57 extern int input_operand
PARAMS ((rtx
, enum machine_mode
));
58 extern int current_file_function_operand
PARAMS ((rtx
, enum machine_mode
));
59 extern int direct_call_operand
PARAMS ((rtx
, enum machine_mode
));
60 extern int local_symbolic_operand
PARAMS ((rtx
, enum machine_mode
));
61 extern int small_symbolic_operand
PARAMS ((rtx
, enum machine_mode
));
62 extern int some_small_symbolic_operand
PARAMS ((rtx
, enum machine_mode
));
63 extern int global_symbolic_operand
PARAMS ((rtx
, enum machine_mode
));
64 extern int call_operand
PARAMS ((rtx
, enum machine_mode
));
65 extern int symbolic_operand
PARAMS ((rtx
, enum machine_mode
));
66 extern int alpha_comparison_operator
PARAMS ((rtx
, enum machine_mode
));
67 extern int alpha_zero_comparison_operator
PARAMS ((rtx
, enum machine_mode
));
68 extern int alpha_swapped_comparison_operator
PARAMS ((rtx
, enum machine_mode
));
69 extern int signed_comparison_operator
PARAMS ((rtx
, enum machine_mode
));
70 extern int alpha_fp_comparison_operator
PARAMS ((rtx
, enum machine_mode
));
71 extern int divmod_operator
PARAMS ((rtx
, enum machine_mode
));
72 extern int aligned_memory_operand
PARAMS ((rtx
, enum machine_mode
));
73 extern int unaligned_memory_operand
PARAMS ((rtx
, enum machine_mode
));
74 extern int reg_or_unaligned_mem_operand
PARAMS ((rtx
, enum machine_mode
));
75 extern int any_memory_operand
PARAMS ((rtx
, enum machine_mode
));
76 extern int reg_not_elim_operand
PARAMS ((rtx
, enum machine_mode
));
77 extern int normal_memory_operand
PARAMS ((rtx
, enum machine_mode
));
78 extern int reg_no_subreg_operand
PARAMS ((rtx
, enum machine_mode
));
79 extern int addition_operation
PARAMS ((rtx
, enum machine_mode
));
81 extern bool alpha_const_ok_for_letter_p
PARAMS ((HOST_WIDE_INT
, int));
82 extern bool alpha_const_double_ok_for_letter_p
PARAMS ((rtx
, int));
83 extern bool alpha_extra_constraint
PARAMS ((rtx
, int));
85 extern rtx alpha_tablejump_addr_vec
PARAMS ((rtx
));
86 extern rtx alpha_tablejump_best_label
PARAMS ((rtx
));
88 extern bool alpha_legitimate_address_p
PARAMS ((enum machine_mode
, rtx
, int));
89 extern rtx alpha_legitimize_address
PARAMS ((rtx
, rtx
, enum machine_mode
));
90 extern rtx alpha_legitimize_reload_address
PARAMS ((rtx
, enum machine_mode
,
93 extern rtx split_small_symbolic_operand
PARAMS ((rtx
));
95 extern void get_aligned_mem
PARAMS ((rtx
, rtx
*, rtx
*));
96 extern rtx get_unaligned_address
PARAMS ((rtx
, int));
97 extern enum reg_class alpha_preferred_reload_class
PARAMS ((rtx
,
99 extern enum reg_class secondary_reload_class
PARAMS ((enum reg_class
,
103 extern void alpha_set_memflags
PARAMS ((rtx
, rtx
));
104 extern rtx alpha_emit_set_const
PARAMS ((rtx
, enum machine_mode
,
105 HOST_WIDE_INT
, int));
106 extern rtx alpha_emit_set_long_const
PARAMS ((rtx
, HOST_WIDE_INT
,
108 extern bool alpha_expand_mov
PARAMS ((enum machine_mode
, rtx
*));
109 extern bool alpha_expand_mov_nobwx
PARAMS ((enum machine_mode
, rtx
*));
110 extern void alpha_emit_floatuns
PARAMS ((rtx
[]));
111 extern rtx alpha_emit_conditional_branch
PARAMS ((enum rtx_code
));
112 extern rtx alpha_emit_setcc
PARAMS ((enum rtx_code
));
113 extern rtx alpha_emit_conditional_move
PARAMS ((rtx
, enum machine_mode
));
114 extern int alpha_split_conditional_move
PARAMS ((enum rtx_code
, rtx
, rtx
,
116 extern void alpha_emit_xfloating_arith
PARAMS ((enum rtx_code
, rtx
[]));
117 extern void alpha_emit_xfloating_cvt
PARAMS ((enum rtx_code
, rtx
[]));
118 extern void alpha_split_tfmode_pair
PARAMS ((rtx
[]));
119 extern void alpha_split_tfmode_frobsign
PARAMS ((rtx
[],
120 rtx (*)(rtx
, rtx
, rtx
)));
121 extern void alpha_expand_unaligned_load
PARAMS ((rtx
, rtx
, HOST_WIDE_INT
,
122 HOST_WIDE_INT
, int));
123 extern void alpha_expand_unaligned_store
PARAMS ((rtx
, rtx
, HOST_WIDE_INT
,
125 extern int alpha_expand_block_move
PARAMS ((rtx
[]));
126 extern int alpha_expand_block_clear
PARAMS ((rtx
[]));
127 extern rtx alpha_return_addr
PARAMS ((int, rtx
));
128 extern rtx alpha_gp_save_rtx
PARAMS ((void));
129 extern void print_operand
PARAMS ((FILE *, rtx
, int));
130 extern void print_operand_address
PARAMS ((FILE *, rtx
));
131 extern void alpha_initialize_trampoline
PARAMS ((rtx
, rtx
, rtx
, int, int, int));
132 extern void alpha_reorg
PARAMS ((rtx
));
133 #endif /* RTX_CODE */
135 #ifdef REAL_VALUE_TYPE
136 extern int check_float_value
PARAMS ((enum machine_mode
,
137 REAL_VALUE_TYPE
*, int));
140 #if TARGET_ABI_OPEN_VMS
141 #ifdef HAVE_MACHINE_MODES
142 extern enum avms_arg_type alpha_arg_type
PARAMS ((enum machine_mode
));
145 extern rtx alpha_arg_info_reg_val
PARAMS ((CUMULATIVE_ARGS
));
148 extern void alpha_write_linkage
PARAMS ((FILE *));
150 #endif /* TARGET_ABI_OPEN_VMS */
153 extern rtx alpha_need_linkage
PARAMS ((const char *, int));
157 extern tree alpha_build_va_list
PARAMS ((void));
159 extern void alpha_va_start
PARAMS ((int, tree
, rtx
));
160 extern rtx alpha_va_arg
PARAMS ((tree
, tree
));
161 extern rtx function_arg
PARAMS ((CUMULATIVE_ARGS
, enum machine_mode
,
164 extern void alpha_start_function
PARAMS ((FILE *, const char *, tree
));
165 extern void alpha_end_function
PARAMS ((FILE *, const char *, tree
));
166 extern void alpha_output_mi_thunk_osf
PARAMS ((FILE *, tree
,
167 HOST_WIDE_INT
, tree
));
168 extern void alpha_encode_section_info
PARAMS ((tree
));
169 #endif /* TREE CODE */
172 extern rtx unicosmk_add_call_info_word
PARAMS ((rtx
));
175 #if TARGET_ABI_UNICOSMK
177 extern void unicosmk_defer_case_vector
PARAMS ((rtx
, rtx
));
180 extern void unicosmk_unique_section
PARAMS ((tree
, int));
182 extern void unicosmk_add_extern
PARAMS ((const char *));
183 extern void unicosmk_output_align
PARAMS ((FILE *, int));
184 extern char * unicosmk_text_section
PARAMS ((void));
185 extern char * unicosmk_data_section
PARAMS ((void));
186 extern void unicosmk_asm_file_start
PARAMS ((FILE *));
187 extern void unicosmk_asm_file_end
PARAMS ((FILE *));
188 extern void unicosmk_output_common
PARAMS ((FILE *, const char *, int, int));
189 #endif /* TARGET_ABI_UNICOSMK */