1 |
38 |
julius |
/* Definitions of target machine for GNU compiler for IA-64.
|
2 |
|
|
Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005, 2007
|
3 |
|
|
Free Software Foundation, Inc.
|
4 |
|
|
|
5 |
|
|
This file is part of GCC.
|
6 |
|
|
|
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 3, or (at your option)
|
10 |
|
|
any later version.
|
11 |
|
|
|
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.
|
16 |
|
|
|
17 |
|
|
You should have received a copy of the GNU General Public License
|
18 |
|
|
along with GCC; see the file COPYING3. If not see
|
19 |
|
|
<http://www.gnu.org/licenses/>. */
|
20 |
|
|
|
21 |
|
|
/* Variables defined in ia64.c. */
|
22 |
|
|
|
23 |
|
|
#ifdef RTX_CODE
|
24 |
|
|
extern GTY(()) rtx ia64_compare_op0;
|
25 |
|
|
extern GTY(()) rtx ia64_compare_op1;
|
26 |
|
|
#endif
|
27 |
|
|
|
28 |
|
|
/* Functions defined in ia64.c */
|
29 |
|
|
|
30 |
|
|
extern int bundling_p;
|
31 |
|
|
#ifdef RTX_CODE
|
32 |
|
|
extern int ia64_st_address_bypass_p (rtx, rtx);
|
33 |
|
|
extern int ia64_ld_address_bypass_p (rtx, rtx);
|
34 |
|
|
extern int ia64_produce_address_p (rtx);
|
35 |
|
|
|
36 |
|
|
extern bool ia64_const_ok_for_letter_p (HOST_WIDE_INT, char);
|
37 |
|
|
extern bool ia64_const_double_ok_for_letter_p (rtx, char);
|
38 |
|
|
extern bool ia64_extra_constraint (rtx, char);
|
39 |
|
|
extern bool ia64_legitimate_constant_p (rtx);
|
40 |
|
|
|
41 |
|
|
extern rtx ia64_expand_move (rtx, rtx);
|
42 |
|
|
extern int ia64_move_ok (rtx, rtx);
|
43 |
|
|
extern int ia64_load_pair_ok (rtx, rtx);
|
44 |
|
|
extern int addp4_optimize_ok (rtx, rtx);
|
45 |
|
|
extern void ia64_emit_cond_move (rtx, rtx, rtx);
|
46 |
|
|
extern int ia64_depz_field_mask (rtx, rtx);
|
47 |
|
|
extern void ia64_split_tmode_move (rtx[]);
|
48 |
|
|
extern bool ia64_expand_movxf_movrf (enum machine_mode, rtx[]);
|
49 |
|
|
extern rtx ia64_expand_compare (enum rtx_code, enum machine_mode);
|
50 |
|
|
extern void ia64_expand_vecint_cmov (rtx[]);
|
51 |
|
|
extern bool ia64_expand_vecint_minmax (enum rtx_code, enum machine_mode, rtx[]);
|
52 |
|
|
extern void ia64_expand_widen_sum (rtx[], bool);
|
53 |
|
|
extern void ia64_expand_dot_prod_v8qi (rtx[], bool);
|
54 |
|
|
extern void ia64_expand_call (rtx, rtx, rtx, int);
|
55 |
|
|
extern void ia64_split_call (rtx, rtx, rtx, rtx, rtx, int, int);
|
56 |
|
|
extern void ia64_reload_gp (void);
|
57 |
|
|
extern void ia64_expand_atomic_op (enum rtx_code, rtx, rtx, rtx, rtx);
|
58 |
|
|
|
59 |
|
|
extern HOST_WIDE_INT ia64_initial_elimination_offset (int, int);
|
60 |
|
|
extern void ia64_expand_prologue (void);
|
61 |
|
|
extern void ia64_expand_epilogue (int);
|
62 |
|
|
|
63 |
|
|
extern int ia64_direct_return (void);
|
64 |
|
|
extern bool ia64_expand_load_address (rtx, rtx);
|
65 |
|
|
extern int ia64_hard_regno_rename_ok (int, int);
|
66 |
|
|
|
67 |
|
|
extern void ia64_initialize_trampoline (rtx, rtx, rtx);
|
68 |
|
|
extern void ia64_print_operand_address (FILE *, rtx);
|
69 |
|
|
extern void ia64_print_operand (FILE *, rtx, int);
|
70 |
|
|
extern enum reg_class ia64_preferred_reload_class (rtx, enum reg_class);
|
71 |
|
|
extern enum reg_class ia64_secondary_reload_class (enum reg_class,
|
72 |
|
|
enum machine_mode, rtx);
|
73 |
|
|
extern void process_for_unwind_directive (FILE *, rtx);
|
74 |
|
|
extern const char *get_bundle_name (int);
|
75 |
|
|
#endif /* RTX_CODE */
|
76 |
|
|
|
77 |
|
|
#ifdef TREE_CODE
|
78 |
|
|
#ifdef RTX_CODE
|
79 |
|
|
extern rtx ia64_function_arg (CUMULATIVE_ARGS *, enum machine_mode,
|
80 |
|
|
tree, int, int);
|
81 |
|
|
extern rtx ia64_expand_builtin (tree, rtx, rtx, enum machine_mode, int);
|
82 |
|
|
extern rtx ia64_va_arg (tree, tree);
|
83 |
|
|
extern rtx ia64_function_value (tree, tree);
|
84 |
|
|
#endif /* RTX_CODE */
|
85 |
|
|
|
86 |
|
|
extern void ia64_function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode,
|
87 |
|
|
tree, int);
|
88 |
|
|
extern int ia64_function_arg_boundary (enum machine_mode, tree);
|
89 |
|
|
extern void ia64_asm_output_external (FILE *, tree, const char *);
|
90 |
|
|
#endif /* TREE_CODE */
|
91 |
|
|
|
92 |
|
|
extern int ia64_register_move_cost (enum machine_mode, enum reg_class,
|
93 |
|
|
enum reg_class);
|
94 |
|
|
extern int ia64_epilogue_uses (int);
|
95 |
|
|
extern int ia64_eh_uses (int);
|
96 |
|
|
extern void emit_safe_across_calls (void);
|
97 |
|
|
extern void ia64_init_builtins (void);
|
98 |
|
|
extern void ia64_override_options (void);
|
99 |
|
|
extern int ia64_dbx_register_number (int);
|
100 |
|
|
|
101 |
|
|
extern rtx ia64_return_addr_rtx (HOST_WIDE_INT, rtx);
|
102 |
|
|
extern void ia64_split_return_addr_rtx (rtx);
|
103 |
|
|
|
104 |
|
|
#ifdef ARGS_SIZE_RTX
|
105 |
|
|
/* expr.h defines ARGS_SIZE_RTX and `enum direction'. */
|
106 |
|
|
extern enum direction ia64_hpux_function_arg_padding (enum machine_mode, tree);
|
107 |
|
|
#endif /* ARGS_SIZE_RTX */
|
108 |
|
|
|
109 |
|
|
extern void ia64_hpux_handle_builtin_pragma (struct cpp_reader *);
|
110 |
|
|
extern void ia64_output_function_profiler (FILE *, int);
|
111 |
|
|
extern void ia64_profile_hook (int);
|
112 |
|
|
|
113 |
|
|
extern void ia64_optimization_options (int, int);
|