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