1 /* Definitions of target machine for GNU compiler for IA-64.
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 /* Variables defined in ia64.c. */
24 extern rtx ia64_compare_op0
, ia64_compare_op1
;
27 /* Functions defined in ia64.c */
30 extern int call_operand
PARAMS((rtx
, enum machine_mode
));
31 extern int sdata_symbolic_operand
PARAMS((rtx
, enum machine_mode
));
32 extern int got_symbolic_operand
PARAMS((rtx
, enum machine_mode
));
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
));
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
));
41 extern int fr_nonimmediate_operand
PARAMS((rtx
, enum machine_mode
));
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
));
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
));
55 extern int fetchadd_operand
PARAMS((rtx
, enum machine_mode
));
56 extern int fr_reg_or_fp01_operand
PARAMS((rtx
, enum machine_mode
));
57 extern int normal_comparison_operator
PARAMS((rtx
, enum machine_mode
));
58 extern int adjusted_comparison_operator
PARAMS((rtx
, enum machine_mode
));
59 extern int signed_inequality_operator
PARAMS((rtx
, enum machine_mode
));
60 extern int destination_operand
PARAMS((rtx
, enum machine_mode
));
61 extern int not_postinc_memory_operand
PARAMS((rtx
, enum machine_mode
));
62 extern int predicate_operator
PARAMS((rtx
, enum machine_mode
));
63 extern int ar_lc_reg_operand
PARAMS((rtx
, enum machine_mode
));
64 extern int ar_ccv_reg_operand
PARAMS((rtx
, enum machine_mode
));
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
));
69 extern int ia64_move_ok
PARAMS((rtx
, rtx
));
70 extern int ia64_depz_field_mask
PARAMS((rtx
, rtx
));
71 extern rtx ia64_gp_save_reg
PARAMS((int));
72 extern rtx ia64_split_timode
PARAMS((rtx
[], rtx
, rtx
));
73 extern rtx spill_tfmode_operand
PARAMS((rtx
, int));
74 extern rtx ia64_expand_compare
PARAMS((enum rtx_code
, enum machine_mode
));
75 extern void ia64_expand_call
PARAMS((rtx
, rtx
, rtx
, int));
77 extern HOST_WIDE_INT ia64_initial_elimination_offset
PARAMS((int, int));
78 extern void ia64_expand_prologue
PARAMS((void));
79 extern void ia64_expand_epilogue
PARAMS((int));
80 extern void ia64_function_prologue
PARAMS((FILE *, int));
81 extern void ia64_function_epilogue
PARAMS((FILE *, int));
83 extern int ia64_direct_return
PARAMS((void));
84 extern void ia64_expand_load_address
PARAMS((rtx
, rtx
));
85 extern int ia64_hard_regno_rename_ok
PARAMS((int, int));
87 extern void ia64_initialize_trampoline
PARAMS((rtx
, rtx
, rtx
));
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
,
93 extern void ia64_reorg
PARAMS((rtx
));
94 extern void process_for_unwind_directive
PARAMS ((FILE *, rtx
));
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));
103 #endif /* RTX_CODE */
107 extern rtx ia64_function_arg
PARAMS((CUMULATIVE_ARGS
*, enum machine_mode
,
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 */
116 extern void ia64_setup_incoming_varargs
PARAMS((CUMULATIVE_ARGS
, int, tree
,
118 extern int ia64_function_arg_partial_nregs
PARAMS((CUMULATIVE_ARGS
*,
121 extern void ia64_function_arg_advance
PARAMS((CUMULATIVE_ARGS
*,
124 extern int ia64_return_in_memory
PARAMS((tree
));
125 extern void ia64_asm_output_external
PARAMS((FILE *, tree
, const char *));
127 extern int ia64_valid_type_attribute
PARAMS((tree
, tree
, tree
, tree
));
128 extern void ia64_encode_section_info
PARAMS((tree
));
129 #endif /* TREE_CODE */
131 extern int ia64_register_move_cost
PARAMS((enum reg_class
, enum reg_class
));
132 extern int ia64_epilogue_uses
PARAMS((int));
133 extern void emit_safe_across_calls
PARAMS((FILE *));
134 extern void ia64_output_end_prologue
PARAMS((FILE *));
135 extern void ia64_init_builtins
PARAMS((void));
136 extern void ia64_override_options
PARAMS((void));
137 extern int ia64_dbx_register_number
PARAMS((int));