* target.h (struct gcc_target): Add calls.pass_by_reference.
[official-gcc.git] / gcc / config / ia64 / ia64-protos.h
blobe59dff5afbe345df0449c8dd32fdaf1cc4608abd
1 /* Definitions of target machine for GNU compiler for IA-64.
2 Copyright (C) 1999, 2000, 2002, 2003, 2004
3 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
12 GCC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 /* Variables defined in ia64.c. */
24 #ifdef RTX_CODE
25 extern GTY(()) rtx ia64_compare_op0;
26 extern GTY(()) rtx ia64_compare_op1;
27 #endif
29 /* Functions defined in ia64.c */
31 extern int bundling_p;
32 #ifdef RTX_CODE
33 extern int ia64_st_address_bypass_p (rtx, rtx);
34 extern int ia64_ld_address_bypass_p (rtx, rtx);
35 extern int ia64_produce_address_p (rtx);
36 extern int call_operand (rtx, enum machine_mode);
37 extern int sdata_symbolic_operand (rtx, enum machine_mode);
38 extern int got_symbolic_operand (rtx, enum machine_mode);
39 extern int symbolic_operand (rtx, enum machine_mode);
40 extern int tls_symbolic_operand (rtx, enum machine_mode);
41 extern int function_operand (rtx, enum machine_mode);
42 extern int setjmp_operand (rtx, enum machine_mode);
43 extern int move_operand (rtx, enum machine_mode);
44 extern int gr_register_operand (rtx, enum machine_mode);
45 extern int fr_register_operand (rtx, enum machine_mode);
46 extern int grfr_register_operand (rtx, enum machine_mode);
47 extern int gr_nonimmediate_operand (rtx, enum machine_mode);
48 extern int fr_nonimmediate_operand (rtx, enum machine_mode);
49 extern int grfr_nonimmediate_operand (rtx, enum machine_mode);
50 extern int gr_reg_or_0_operand (rtx, enum machine_mode);
51 extern int gr_reg_or_5bit_operand (rtx, enum machine_mode);
52 extern int gr_reg_or_6bit_operand (rtx, enum machine_mode);
53 extern int gr_reg_or_8bit_operand (rtx, enum machine_mode);
54 extern int grfr_reg_or_8bit_operand (rtx, enum machine_mode);
55 extern int gr_reg_or_8bit_adjusted_operand (rtx, enum machine_mode);
56 extern int gr_reg_or_8bit_and_adjusted_operand (rtx, enum machine_mode);
57 extern int gr_reg_or_14bit_operand (rtx, enum machine_mode);
58 extern int gr_reg_or_22bit_operand (rtx, enum machine_mode);
59 extern int shift_count_operand (rtx, enum machine_mode);
60 extern int shift_32bit_count_operand (rtx, enum machine_mode);
61 extern int shladd_operand (rtx, enum machine_mode);
62 extern int fetchadd_operand (rtx, enum machine_mode);
63 extern int fr_reg_or_fp01_operand (rtx, enum machine_mode);
64 extern int normal_comparison_operator (rtx, enum machine_mode);
65 extern int adjusted_comparison_operator (rtx, enum machine_mode);
66 extern int signed_inequality_operator (rtx, enum machine_mode);
67 extern int destination_operand (rtx, enum machine_mode);
68 extern int not_postinc_memory_operand (rtx, enum machine_mode);
69 extern int predicate_operator (rtx, enum machine_mode);
70 extern int ar_lc_reg_operand (rtx, enum machine_mode);
71 extern int ar_ccv_reg_operand (rtx, enum machine_mode);
72 extern int ar_pfs_reg_operand (rtx, enum machine_mode);
73 extern int general_xfmode_operand (rtx, enum machine_mode);
74 extern int destination_xfmode_operand (rtx, enum machine_mode);
75 extern int xfreg_or_fp01_operand (rtx, enum machine_mode);
76 extern int basereg_operand (rtx, enum machine_mode);
78 extern rtx ia64_expand_move (rtx, rtx);
79 extern int ia64_move_ok (rtx, rtx);
80 extern int addp4_optimize_ok (rtx, rtx);
81 extern void ia64_emit_cond_move (rtx, rtx, rtx);
82 extern int ia64_depz_field_mask (rtx, rtx);
83 extern void ia64_split_tmode_move (rtx[]);
84 extern rtx spill_xfmode_operand (rtx, int);
85 extern rtx ia64_expand_compare (enum rtx_code, enum machine_mode);
86 extern void ia64_expand_call (rtx, rtx, rtx, int);
87 extern void ia64_split_call (rtx, rtx, rtx, rtx, rtx, int, int);
88 extern void ia64_reload_gp (void);
90 extern HOST_WIDE_INT ia64_initial_elimination_offset (int, int);
91 extern void ia64_expand_prologue (void);
92 extern void ia64_expand_epilogue (int);
94 extern int ia64_direct_return (void);
95 extern void ia64_expand_load_address (rtx, rtx);
96 extern int ia64_hard_regno_rename_ok (int, int);
98 extern void ia64_initialize_trampoline (rtx, rtx, rtx);
99 extern void ia64_print_operand_address (FILE *, rtx);
100 extern void ia64_print_operand (FILE *, rtx, int);
101 extern enum reg_class ia64_secondary_reload_class (enum reg_class,
102 enum machine_mode, rtx);
103 extern void ia64_output_dwarf_dtprel (FILE*, int, rtx);
104 extern void process_for_unwind_directive (FILE *, rtx);
105 extern const char *get_bundle_name (int);
106 #endif /* RTX_CODE */
108 #ifdef TREE_CODE
109 #ifdef RTX_CODE
110 extern rtx ia64_function_arg (CUMULATIVE_ARGS *, enum machine_mode,
111 tree, int, int);
112 extern rtx ia64_expand_builtin (tree, rtx, rtx, enum machine_mode, int);
113 extern rtx ia64_va_arg (tree, tree);
114 extern rtx ia64_function_value (tree, tree);
115 #endif /* RTX_CODE */
117 extern int ia64_function_arg_partial_nregs (CUMULATIVE_ARGS *,
118 enum machine_mode, tree, int);
119 extern void ia64_function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode,
120 tree, int);
121 extern void ia64_asm_output_external (FILE *, tree, const char *);
122 #endif /* TREE_CODE */
124 extern int ia64_register_move_cost (enum machine_mode, enum reg_class,
125 enum reg_class);
126 extern int ia64_epilogue_uses (int);
127 extern int ia64_eh_uses (int);
128 extern void emit_safe_across_calls (void);
129 extern void ia64_init_builtins (void);
130 extern void ia64_override_options (void);
131 extern int ia64_dbx_register_number (int);
133 extern rtx ia64_return_addr_rtx (HOST_WIDE_INT, rtx);
134 extern void ia64_split_return_addr_rtx (rtx);
136 #ifdef SDATA_SECTION_ASM_OP
137 extern void sdata_section (void);
138 #endif
140 #ifdef SBSS_SECTION_ASM_OP
141 extern void sbss_section (void);
142 #endif
144 #ifdef ARGS_SIZE_RTX
145 /* expr.h defines ARGS_SIZE_RTX and `enum direction'. */
146 extern enum direction ia64_hpux_function_arg_padding (enum machine_mode, tree);
147 #endif /* ARGS_SIZE_RTX */
149 extern void ia64_hpux_handle_builtin_pragma (struct cpp_reader *);