]> gcc.gnu.org Git - gcc.git/blame - gcc/config/i386/i386-protos.h
* ChangeLog: Resolve conflict.
[gcc.git] / gcc / config / i386 / i386-protos.h
CommitLineData
6baf1cc8 1/* Definitions of target machine for GNU compiler for IA-32.
0e4970d7
RK
2 Copyright (C) 1988, 1992, 1994, 1995, 1996, 1996, 1997, 1998, 1999,
3 2000, 2001 Free Software Foundation, Inc.
6baf1cc8
BS
4
5This file is part of GNU CC.
6
7GNU CC is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2, or (at your option)
10any later version.
11
12GNU CC is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU CC; see the file COPYING. If not, write to
19the Free Software Foundation, 59 Temple Place - Suite 330,
20Boston, MA 02111-1307, USA. */
21
22/* Functions in i386.c */
f6da8bc3 23extern void override_options PARAMS ((void));
f6da8bc3 24extern void optimization_options PARAMS ((int, int));
6baf1cc8 25
f6da8bc3 26extern int ix86_can_use_return_insn_p PARAMS ((void));
6fca22eb
RH
27extern int ix86_frame_pointer_required PARAMS ((void));
28extern void ix86_setup_frame_addresses PARAMS ((void));
6baf1cc8 29
4cf12e7e 30extern void ix86_asm_file_end PARAMS ((FILE *));
f6da8bc3 31extern void load_pic_register PARAMS ((void));
0903fcab 32extern HOST_WIDE_INT ix86_initial_elimination_offset PARAMS((int, int));
f6da8bc3 33extern void ix86_expand_prologue PARAMS ((void));
cbbf65e0 34extern void ix86_expand_epilogue PARAMS ((int));
6baf1cc8 35
f6da8bc3
KG
36extern void ix86_output_function_block_profiler PARAMS ((FILE *, int));
37extern void ix86_output_block_profiler PARAMS ((FILE *, int));
6baf1cc8
BS
38
39#ifdef RTX_CODE
f6da8bc3
KG
40extern int ix86_aligned_p PARAMS ((rtx));
41
42extern int standard_80387_constant_p PARAMS ((rtx));
2b04e52b 43extern int standard_sse_constant_p PARAMS ((rtx));
f6da8bc3
KG
44extern int symbolic_reference_mentioned_p PARAMS ((rtx));
45
7dd4b4a3
JH
46extern int x86_64_general_operand PARAMS ((rtx, enum machine_mode));
47extern int x86_64_szext_general_operand PARAMS ((rtx, enum machine_mode));
48extern int x86_64_nonmemory_operand PARAMS ((rtx, enum machine_mode));
49extern int x86_64_szext_nonmemory_operand PARAMS ((rtx, enum machine_mode));
50extern int x86_64_immediate_operand PARAMS ((rtx, enum machine_mode));
51extern int x86_64_zext_immediate_operand PARAMS ((rtx, enum machine_mode));
8bad7136 52extern int const_int_1_operand PARAMS ((rtx, enum machine_mode));
f6da8bc3
KG
53extern int symbolic_operand PARAMS ((rtx, enum machine_mode));
54extern int pic_symbolic_operand PARAMS ((rtx, enum machine_mode));
55extern int call_insn_operand PARAMS ((rtx, enum machine_mode));
f6da8bc3
KG
56extern int constant_call_address_operand PARAMS ((rtx, enum machine_mode));
57extern int const0_operand PARAMS ((rtx, enum machine_mode));
58extern int const1_operand PARAMS ((rtx, enum machine_mode));
59extern int const248_operand PARAMS ((rtx, enum machine_mode));
60extern int incdec_operand PARAMS ((rtx, enum machine_mode));
61extern int reg_no_sp_operand PARAMS ((rtx, enum machine_mode));
915119a5 62extern int mmx_reg_operand PARAMS ((rtx, enum machine_mode));
2c5a510c
RH
63extern int general_no_elim_operand PARAMS ((rtx, enum machine_mode));
64extern int nonmemory_no_elim_operand PARAMS ((rtx, enum machine_mode));
f6da8bc3
KG
65extern int q_regs_operand PARAMS ((rtx, enum machine_mode));
66extern int non_q_regs_operand PARAMS ((rtx, enum machine_mode));
915119a5 67extern int sse_comparison_operator PARAMS ((rtx, enum machine_mode));
f6da8bc3
KG
68extern int fcmov_comparison_operator PARAMS ((rtx, enum machine_mode));
69extern int cmp_fp_expander_operand PARAMS ((rtx, enum machine_mode));
9076b9c1 70extern int ix86_comparison_operator PARAMS ((rtx, enum machine_mode));
f6da8bc3
KG
71extern int ext_register_operand PARAMS ((rtx, enum machine_mode));
72extern int binary_fp_operator PARAMS ((rtx, enum machine_mode));
73extern int mult_operator PARAMS ((rtx, enum machine_mode));
74extern int div_operator PARAMS ((rtx, enum machine_mode));
75extern int arith_or_logical_operator PARAMS ((rtx, enum machine_mode));
76extern int promotable_binary_operator PARAMS ((rtx, enum machine_mode));
77extern int memory_displacement_operand PARAMS ((rtx, enum machine_mode));
78extern int cmpsi_operand PARAMS ((rtx, enum machine_mode));
79extern int long_memory_operand PARAMS ((rtx, enum machine_mode));
2247f6ed 80extern int aligned_operand PARAMS ((rtx, enum machine_mode));
9076b9c1 81extern enum machine_mode ix86_cc_mode PARAMS ((enum rtx_code, rtx, rtx));
f6da8bc3 82
0945b39d
JH
83extern int ix86_expand_movstr PARAMS ((rtx, rtx, rtx, rtx));
84extern int ix86_expand_clrstr PARAMS ((rtx, rtx, rtx));
85extern int ix86_expand_strlen PARAMS ((rtx, rtx, rtx, rtx));
f6da8bc3
KG
86
87extern int legitimate_pic_address_disp_p PARAMS ((rtx));
88extern int legitimate_address_p PARAMS ((enum machine_mode, rtx, int));
89extern rtx legitimize_pic_address PARAMS ((rtx, rtx));
90extern rtx legitimize_address PARAMS ((rtx, rtx, enum machine_mode));
91
92extern void print_reg PARAMS ((rtx, int, FILE*));
93extern void print_operand PARAMS ((FILE*, rtx, int));
94extern void print_operand_address PARAMS ((FILE*, rtx));
95
96extern void split_di PARAMS ((rtx[], int, rtx[], rtx[]));
97
98extern const char *output_387_binary_op PARAMS ((rtx, rtx*));
99extern const char *output_fix_trunc PARAMS ((rtx, rtx*));
100extern const char *output_fp_compare PARAMS ((rtx, rtx*, int, int));
101
1865dbb5
JM
102extern void i386_dwarf_output_addr_const PARAMS ((FILE*, rtx));
103extern rtx i386_simplify_dwarf_addr PARAMS ((rtx));
104
f6da8bc3
KG
105extern void ix86_expand_move PARAMS ((enum machine_mode, rtx[]));
106extern void ix86_expand_binary_operator PARAMS ((enum rtx_code,
6baf1cc8 107 enum machine_mode, rtx[]));
f6da8bc3 108extern int ix86_binary_operator_ok PARAMS ((enum rtx_code, enum machine_mode,
6baf1cc8 109 rtx[]));
f6da8bc3 110extern void ix86_expand_unary_operator PARAMS ((enum rtx_code, enum machine_mode,
9d81fc27 111 rtx[]));
f6da8bc3 112extern int ix86_unary_operator_ok PARAMS ((enum rtx_code, enum machine_mode,
6baf1cc8 113 rtx[]));
16189740 114extern int ix86_match_ccmode PARAMS ((rtx, enum machine_mode));
a1b8572c 115extern rtx ix86_expand_compare PARAMS ((enum rtx_code, rtx *, rtx *));
a940d8bd 116extern int ix86_use_fcomi_compare PARAMS ((enum rtx_code));
3a3677ff
RH
117extern void ix86_expand_branch PARAMS ((enum rtx_code, rtx));
118extern int ix86_expand_setcc PARAMS ((enum rtx_code, rtx));
f6da8bc3
KG
119extern int ix86_expand_int_movcc PARAMS ((rtx[]));
120extern int ix86_expand_fp_movcc PARAMS ((rtx[]));
39d04363 121extern void x86_initialize_trampoline PARAMS ((rtx, rtx, rtx));
26e5b205 122extern void ix86_split_long_move PARAMS ((rtx[]));
f6da8bc3
KG
123extern void ix86_split_ashldi PARAMS ((rtx *, rtx));
124extern void ix86_split_ashrdi PARAMS ((rtx *, rtx));
125extern void ix86_split_lshrdi PARAMS ((rtx *, rtx));
01329426 126extern int ix86_address_cost PARAMS ((rtx));
b949ea8b 127extern rtx ix86_find_base_term PARAMS ((rtx));
f6da8bc3
KG
128
129extern rtx assign_386_stack_local PARAMS ((enum machine_mode, int));
6ef67412
JH
130extern int ix86_attr_length_immediate_default PARAMS ((rtx, int));
131extern int ix86_attr_length_address_default PARAMS ((rtx));
f6da8bc3
KG
132
133extern int ix86_issue_rate PARAMS ((void));
134extern int ix86_adjust_cost PARAMS ((rtx, rtx, rtx, int));
135extern void ix86_sched_init PARAMS ((FILE *, int));
136extern int ix86_sched_reorder PARAMS ((FILE *, int, rtx *, int, int));
137extern int ix86_variable_issue PARAMS ((FILE *, int, rtx, int));
b1cdafbb 138extern enum machine_mode ix86_fp_compare_mode PARAMS ((enum rtx_code));
6baf1cc8 139
fa9f36a1
JH
140extern int x86_64_sign_extended_value PARAMS ((rtx));
141extern int x86_64_zero_extended_value PARAMS ((rtx));
142
4211a8fb
JH
143extern rtx ix86_force_to_memory PARAMS ((enum machine_mode, rtx));
144extern void ix86_free_from_memory PARAMS ((enum machine_mode));
9e7adcb3 145extern void ix86_split_fp_branch PARAMS ((rtx, rtx, rtx, rtx, rtx, rtx));
a946dd00 146extern int ix86_hard_regno_mode_ok PARAMS ((int, enum machine_mode));
c26a370f 147extern int ix86_register_move_cost PARAMS ((enum machine_mode, enum reg_class,
e76d65d2
JH
148 enum reg_class));
149extern int ix86_secondary_memory_needed PARAMS ((enum reg_class,
150 enum reg_class,
151 enum machine_mode, int));
152extern enum reg_class ix86_preferred_reload_class PARAMS ((rtx,
153 enum reg_class));
fa79946e
JH
154extern int ix86_memory_move_cost PARAMS ((enum machine_mode, enum reg_class,
155 int));
397be6cf 156extern void ix86_set_move_mem_attrs PARAMS ((rtx, rtx, rtx, rtx, rtx));
7a2e09f4 157extern void emit_i387_cw_initialization PARAMS ((rtx, rtx));
397be6cf 158
4211a8fb 159
6baf1cc8 160#ifdef TREE_CODE
f6da8bc3
KG
161extern void init_cumulative_args PARAMS ((CUMULATIVE_ARGS *, tree, rtx));
162extern rtx function_arg PARAMS ((CUMULATIVE_ARGS *, enum machine_mode, tree, int));
163extern void function_arg_advance PARAMS ((CUMULATIVE_ARGS *, enum machine_mode,
6baf1cc8 164 tree, int));
bd793c65
BS
165extern void ix86_init_builtins PARAMS ((void));
166extern rtx ix86_expand_builtin PARAMS ((tree, rtx, rtx, enum machine_mode, int));
6baf1cc8
BS
167#endif
168
169#endif
170
171#ifdef TREE_CODE
f6da8bc3 172extern int ix86_return_pops_args PARAMS ((tree, tree, int));
a7180f70
BS
173
174extern int ix86_data_alignment PARAMS ((tree, int));
175extern int ix86_local_alignment PARAMS ((tree, int));
176extern int ix86_constant_alignment PARAMS ((tree, int));
9959db6d 177extern int ix86_valid_type_attribute_p PARAMS ((tree, tree, tree, tree));
f5f4be42
NB
178extern int i386_pe_valid_decl_attribute_p PARAMS ((tree, tree, tree, tree));
179extern int i386_pe_valid_type_attribute_p PARAMS ((tree, tree, tree, tree));
6baf1cc8 180#endif
This page took 0.395233 seconds and 5 git commands to generate.