]>
Commit | Line | Data |
---|---|---|
c65ebc55 | 1 | /* Definitions of target machine for GNU compiler for IA-64. |
e65271be | 2 | Copyright (C) 1999, 2000 Free Software Foundation, Inc. |
c65ebc55 JW |
3 | |
4 | This file is part of GNU CC. | |
5 | ||
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) | |
9 | any later version. | |
10 | ||
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. | |
15 | ||
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. */ | |
20 | ||
21 | /* Variables defined in ia64.c. */ | |
22 | ||
23 | #ifdef RTX_CODE | |
24 | extern rtx ia64_compare_op0, ia64_compare_op1; | |
25 | #endif | |
26 | ||
27 | /* Functions defined in ia64.c */ | |
28 | ||
29 | #ifdef RTX_CODE | |
30 | extern int call_operand PARAMS((rtx, enum machine_mode)); | |
31 | extern int sdata_symbolic_operand PARAMS((rtx, enum machine_mode)); | |
ec039e3c | 32 | extern int got_symbolic_operand PARAMS((rtx, enum machine_mode)); |
c65ebc55 JW |
33 | extern int symbolic_operand PARAMS((rtx, enum machine_mode)); |
34 | extern int function_operand PARAMS((rtx, enum machine_mode)); | |
35 | extern int setjmp_operand PARAMS((rtx, enum machine_mode)); | |
36 | extern int move_operand PARAMS((rtx, enum machine_mode)); | |
0551c32d RH |
37 | extern int gr_register_operand PARAMS((rtx, enum machine_mode)); |
38 | extern int fr_register_operand PARAMS((rtx, enum machine_mode)); | |
39 | extern int grfr_register_operand PARAMS((rtx, enum machine_mode)); | |
40 | extern int gr_nonimmediate_operand PARAMS((rtx, enum machine_mode)); | |
655f2eb9 | 41 | extern int fr_nonimmediate_operand PARAMS((rtx, enum machine_mode)); |
0551c32d RH |
42 | extern int grfr_nonimmediate_operand PARAMS((rtx, enum machine_mode)); |
43 | extern int gr_reg_or_0_operand PARAMS((rtx, enum machine_mode)); | |
44 | extern int gr_reg_or_5bit_operand PARAMS((rtx, enum machine_mode)); | |
45 | extern int gr_reg_or_6bit_operand PARAMS((rtx, enum machine_mode)); | |
46 | extern int gr_reg_or_8bit_operand PARAMS((rtx, enum machine_mode)); | |
47 | extern int grfr_reg_or_8bit_operand PARAMS((rtx, enum machine_mode)); | |
48 | extern int gr_reg_or_8bit_adjusted_operand PARAMS((rtx, enum machine_mode)); | |
49 | extern int gr_reg_or_8bit_and_adjusted_operand PARAMS((rtx, enum machine_mode)); | |
50 | extern int gr_reg_or_14bit_operand PARAMS((rtx, enum machine_mode)); | |
51 | extern int gr_reg_or_22bit_operand PARAMS((rtx, enum machine_mode)); | |
c65ebc55 JW |
52 | extern int shift_count_operand PARAMS((rtx, enum machine_mode)); |
53 | extern int shift_32bit_count_operand PARAMS((rtx, enum machine_mode)); | |
54 | extern int shladd_operand PARAMS((rtx, enum machine_mode)); | |
809d4ef1 | 55 | extern int fetchadd_operand PARAMS((rtx, enum machine_mode)); |
0551c32d | 56 | extern int fr_reg_or_fp01_operand PARAMS((rtx, enum machine_mode)); |
c65ebc55 JW |
57 | extern int normal_comparison_operator PARAMS((rtx, enum machine_mode)); |
58 | extern int adjusted_comparison_operator PARAMS((rtx, enum machine_mode)); | |
f2f90c63 | 59 | extern int signed_inequality_operator PARAMS((rtx, enum machine_mode)); |
4b983fdc | 60 | extern int destination_operand PARAMS((rtx, enum machine_mode)); |
0551c32d | 61 | extern int not_postinc_memory_operand PARAMS((rtx, enum machine_mode)); |
111afdb3 | 62 | extern int predicate_operator PARAMS((rtx, enum machine_mode)); |
5527bf14 | 63 | extern int ar_lc_reg_operand PARAMS((rtx, enum machine_mode)); |
97e242b0 | 64 | extern int ar_ccv_reg_operand PARAMS((rtx, enum machine_mode)); |
3f622353 RH |
65 | extern int general_tfmode_operand PARAMS((rtx, enum machine_mode)); |
66 | extern int destination_tfmode_operand PARAMS((rtx, enum machine_mode)); | |
67 | extern int tfreg_or_fp01_operand PARAMS((rtx, enum machine_mode)); | |
5527bf14 | 68 | |
557b9df5 | 69 | extern int ia64_move_ok PARAMS((rtx, rtx)); |
041f25e6 | 70 | extern int ia64_depz_field_mask PARAMS((rtx, rtx)); |
97e242b0 | 71 | extern rtx ia64_gp_save_reg PARAMS((int)); |
3f622353 RH |
72 | extern rtx ia64_split_timode PARAMS((rtx[], rtx, rtx)); |
73 | extern rtx spill_tfmode_operand PARAMS((rtx, int)); | |
f2f90c63 | 74 | extern rtx ia64_expand_compare PARAMS((enum rtx_code, enum machine_mode)); |
2ed4af6f | 75 | extern void ia64_expand_call PARAMS((rtx, rtx, rtx, int)); |
809d4ef1 | 76 | |
041f25e6 RH |
77 | extern HOST_WIDE_INT ia64_initial_elimination_offset PARAMS((int, int)); |
78 | extern void ia64_expand_prologue PARAMS((void)); | |
2ed4af6f | 79 | extern void ia64_expand_epilogue PARAMS((int)); |
041f25e6 RH |
80 | extern void ia64_function_prologue PARAMS((FILE *, int)); |
81 | extern void ia64_function_epilogue PARAMS((FILE *, int)); | |
82 | ||
83 | extern int ia64_direct_return PARAMS((void)); | |
b5d37c6f | 84 | extern void ia64_expand_load_address PARAMS((rtx, rtx, rtx)); |
10c9f189 | 85 | extern int ia64_hard_regno_rename_ok PARAMS((int, int)); |
809d4ef1 | 86 | |
97e242b0 | 87 | extern void ia64_initialize_trampoline PARAMS((rtx, rtx, rtx)); |
809d4ef1 RH |
88 | extern void ia64_print_operand_address PARAMS((FILE *, rtx)); |
89 | extern void ia64_print_operand PARAMS((FILE *, rtx, int)); | |
90 | extern enum reg_class ia64_secondary_reload_class PARAMS((enum reg_class, | |
91 | enum machine_mode, | |
92 | rtx)); | |
93 | extern void ia64_reorg PARAMS((rtx)); | |
3b572406 | 94 | extern void process_for_unwind_directive PARAMS ((FILE *, rtx)); |
2130b7fb BS |
95 | extern const char *get_bundle_name PARAMS ((int)); |
96 | extern int ia64_issue_rate PARAMS ((void)); | |
97 | extern int ia64_adjust_cost PARAMS ((rtx, rtx, rtx, int)); | |
98 | extern void ia64_sched_init PARAMS ((FILE *, int, int)); | |
99 | extern void ia64_sched_finish PARAMS ((FILE *, int)); | |
100 | extern int ia64_sched_reorder PARAMS ((FILE *, int, rtx *, int *, int)); | |
101 | extern int ia64_sched_reorder2 PARAMS ((FILE *, int, rtx *, int *, int)); | |
102 | extern int ia64_variable_issue PARAMS ((FILE *, int, rtx, int)); | |
809d4ef1 RH |
103 | #endif /* RTX_CODE */ |
104 | ||
c65ebc55 | 105 | #ifdef TREE_CODE |
c65ebc55 JW |
106 | #ifdef RTX_CODE |
107 | extern rtx ia64_function_arg PARAMS((CUMULATIVE_ARGS *, enum machine_mode, | |
108 | tree, int, int)); | |
809d4ef1 RH |
109 | extern rtx ia64_expand_builtin PARAMS((tree, rtx, rtx, |
110 | enum machine_mode, int)); | |
111 | extern void ia64_va_start PARAMS((int, tree, rtx)); | |
112 | extern rtx ia64_va_arg PARAMS((tree, tree)); | |
113 | extern rtx ia64_function_value PARAMS((tree, tree)); | |
114 | #endif /* RTX_CODE */ | |
115 | ||
116 | extern void ia64_setup_incoming_varargs PARAMS((CUMULATIVE_ARGS, int, tree, | |
117 | int *, int)); | |
c65ebc55 JW |
118 | extern int ia64_function_arg_partial_nregs PARAMS((CUMULATIVE_ARGS *, |
119 | enum machine_mode, | |
120 | tree, int)); | |
121 | extern void ia64_function_arg_advance PARAMS((CUMULATIVE_ARGS *, | |
122 | enum machine_mode, | |
123 | tree, int)); | |
c65ebc55 | 124 | extern int ia64_return_in_memory PARAMS((tree)); |
809d4ef1 RH |
125 | extern void ia64_asm_output_external PARAMS((FILE *, tree, const char *)); |
126 | ||
c65ebc55 JW |
127 | extern int ia64_valid_type_attribute PARAMS((tree, tree, tree, tree)); |
128 | extern void ia64_encode_section_info PARAMS((tree)); | |
809d4ef1 RH |
129 | #endif /* TREE_CODE */ |
130 | ||
5527bf14 | 131 | extern int ia64_register_move_cost PARAMS((enum reg_class, enum reg_class)); |
809d4ef1 | 132 | extern int ia64_epilogue_uses PARAMS((int)); |
ca3920ad | 133 | extern void emit_safe_across_calls PARAMS((FILE *)); |
0186257f | 134 | extern void ia64_output_end_prologue PARAMS((FILE *)); |
809d4ef1 RH |
135 | extern void ia64_init_builtins PARAMS((void)); |
136 | extern void ia64_override_options PARAMS((void)); | |
97e242b0 | 137 | extern int ia64_dbx_register_number PARAMS((int)); |