2002-02-01 18:16:02 +00:00
|
|
|
/* Definitions of target machine for GNU compiler for IA-64.
|
2007-05-19 01:19:51 +00:00
|
|
|
Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005
|
2004-07-28 03:11:36 +00:00
|
|
|
Free Software Foundation, Inc.
|
2002-02-01 18:16:02 +00:00
|
|
|
|
2004-07-28 03:11:36 +00:00
|
|
|
This file is part of GCC.
|
2002-02-01 18:16:02 +00:00
|
|
|
|
2004-07-28 03:11:36 +00:00
|
|
|
GCC is free software; you can redistribute it and/or modify
|
2002-02-01 18:16:02 +00:00
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
any later version.
|
|
|
|
|
2004-07-28 03:11:36 +00:00
|
|
|
GCC is distributed in the hope that it will be useful,
|
2002-02-01 18:16:02 +00:00
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2004-07-28 03:11:36 +00:00
|
|
|
along with GCC; see the file COPYING. If not, write to
|
2007-05-19 01:19:51 +00:00
|
|
|
the Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02110-1301, USA. */
|
2002-02-01 18:16:02 +00:00
|
|
|
|
|
|
|
/* Variables defined in ia64.c. */
|
|
|
|
|
|
|
|
#ifdef RTX_CODE
|
2003-07-11 03:40:53 +00:00
|
|
|
extern GTY(()) rtx ia64_compare_op0;
|
|
|
|
extern GTY(()) rtx ia64_compare_op1;
|
2002-02-01 18:16:02 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Functions defined in ia64.c */
|
|
|
|
|
2004-07-28 03:11:36 +00:00
|
|
|
extern int bundling_p;
|
2002-02-01 18:16:02 +00:00
|
|
|
#ifdef RTX_CODE
|
2004-07-28 03:11:36 +00:00
|
|
|
extern int ia64_st_address_bypass_p (rtx, rtx);
|
|
|
|
extern int ia64_ld_address_bypass_p (rtx, rtx);
|
|
|
|
extern int ia64_produce_address_p (rtx);
|
2007-05-19 01:19:51 +00:00
|
|
|
|
|
|
|
extern bool ia64_const_ok_for_letter_p (HOST_WIDE_INT, char);
|
|
|
|
extern bool ia64_const_double_ok_for_letter_p (rtx, char);
|
|
|
|
extern bool ia64_extra_constraint (rtx, char);
|
|
|
|
extern bool ia64_legitimate_constant_p (rtx);
|
2004-07-28 03:11:36 +00:00
|
|
|
|
|
|
|
extern rtx ia64_expand_move (rtx, rtx);
|
|
|
|
extern int ia64_move_ok (rtx, rtx);
|
2007-05-19 01:19:51 +00:00
|
|
|
extern int ia64_load_pair_ok (rtx, rtx);
|
2004-07-28 03:11:36 +00:00
|
|
|
extern int addp4_optimize_ok (rtx, rtx);
|
|
|
|
extern void ia64_emit_cond_move (rtx, rtx, rtx);
|
|
|
|
extern int ia64_depz_field_mask (rtx, rtx);
|
|
|
|
extern void ia64_split_tmode_move (rtx[]);
|
2007-05-19 01:19:51 +00:00
|
|
|
extern bool ia64_expand_movxf_movrf (enum machine_mode, rtx[]);
|
2004-07-28 03:11:36 +00:00
|
|
|
extern rtx ia64_expand_compare (enum rtx_code, enum machine_mode);
|
2007-05-19 01:19:51 +00:00
|
|
|
extern void ia64_expand_vecint_cmov (rtx[]);
|
|
|
|
extern bool ia64_expand_vecint_minmax (enum rtx_code, enum machine_mode, rtx[]);
|
|
|
|
extern void ia64_expand_widen_sum (rtx[], bool);
|
|
|
|
extern void ia64_expand_dot_prod_v8qi (rtx[], bool);
|
2004-07-28 03:11:36 +00:00
|
|
|
extern void ia64_expand_call (rtx, rtx, rtx, int);
|
|
|
|
extern void ia64_split_call (rtx, rtx, rtx, rtx, rtx, int, int);
|
|
|
|
extern void ia64_reload_gp (void);
|
2007-05-19 01:19:51 +00:00
|
|
|
extern void ia64_expand_atomic_op (enum rtx_code, rtx, rtx, rtx, rtx);
|
2004-07-28 03:11:36 +00:00
|
|
|
|
|
|
|
extern HOST_WIDE_INT ia64_initial_elimination_offset (int, int);
|
|
|
|
extern void ia64_expand_prologue (void);
|
|
|
|
extern void ia64_expand_epilogue (int);
|
|
|
|
|
|
|
|
extern int ia64_direct_return (void);
|
2007-05-19 01:19:51 +00:00
|
|
|
extern bool ia64_expand_load_address (rtx, rtx);
|
2004-07-28 03:11:36 +00:00
|
|
|
extern int ia64_hard_regno_rename_ok (int, int);
|
|
|
|
|
|
|
|
extern void ia64_initialize_trampoline (rtx, rtx, rtx);
|
|
|
|
extern void ia64_print_operand_address (FILE *, rtx);
|
|
|
|
extern void ia64_print_operand (FILE *, rtx, int);
|
2007-05-19 01:19:51 +00:00
|
|
|
extern enum reg_class ia64_preferred_reload_class (rtx, enum reg_class);
|
2004-07-28 03:11:36 +00:00
|
|
|
extern enum reg_class ia64_secondary_reload_class (enum reg_class,
|
|
|
|
enum machine_mode, rtx);
|
|
|
|
extern void process_for_unwind_directive (FILE *, rtx);
|
|
|
|
extern const char *get_bundle_name (int);
|
2002-02-01 18:16:02 +00:00
|
|
|
#endif /* RTX_CODE */
|
|
|
|
|
|
|
|
#ifdef TREE_CODE
|
|
|
|
#ifdef RTX_CODE
|
2004-07-28 03:11:36 +00:00
|
|
|
extern rtx ia64_function_arg (CUMULATIVE_ARGS *, enum machine_mode,
|
|
|
|
tree, int, int);
|
|
|
|
extern rtx ia64_expand_builtin (tree, rtx, rtx, enum machine_mode, int);
|
|
|
|
extern rtx ia64_va_arg (tree, tree);
|
|
|
|
extern rtx ia64_function_value (tree, tree);
|
2002-02-01 18:16:02 +00:00
|
|
|
#endif /* RTX_CODE */
|
|
|
|
|
2004-07-28 03:11:36 +00:00
|
|
|
extern void ia64_function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode,
|
|
|
|
tree, int);
|
2007-05-19 01:19:51 +00:00
|
|
|
extern int ia64_function_arg_boundary (enum machine_mode, tree);
|
2004-07-28 03:11:36 +00:00
|
|
|
extern void ia64_asm_output_external (FILE *, tree, const char *);
|
2002-02-01 18:16:02 +00:00
|
|
|
#endif /* TREE_CODE */
|
|
|
|
|
2004-07-28 03:11:36 +00:00
|
|
|
extern int ia64_register_move_cost (enum machine_mode, enum reg_class,
|
|
|
|
enum reg_class);
|
|
|
|
extern int ia64_epilogue_uses (int);
|
|
|
|
extern int ia64_eh_uses (int);
|
|
|
|
extern void emit_safe_across_calls (void);
|
|
|
|
extern void ia64_init_builtins (void);
|
|
|
|
extern void ia64_override_options (void);
|
|
|
|
extern int ia64_dbx_register_number (int);
|
2002-02-01 18:16:02 +00:00
|
|
|
|
2004-07-28 03:11:36 +00:00
|
|
|
extern rtx ia64_return_addr_rtx (HOST_WIDE_INT, rtx);
|
|
|
|
extern void ia64_split_return_addr_rtx (rtx);
|
2003-11-07 02:43:04 +00:00
|
|
|
|
2002-02-01 18:16:02 +00:00
|
|
|
#ifdef ARGS_SIZE_RTX
|
|
|
|
/* expr.h defines ARGS_SIZE_RTX and `enum direction'. */
|
2004-07-28 03:11:36 +00:00
|
|
|
extern enum direction ia64_hpux_function_arg_padding (enum machine_mode, tree);
|
2002-02-01 18:16:02 +00:00
|
|
|
#endif /* ARGS_SIZE_RTX */
|
2003-07-11 03:40:53 +00:00
|
|
|
|
2004-07-28 03:11:36 +00:00
|
|
|
extern void ia64_hpux_handle_builtin_pragma (struct cpp_reader *);
|
2007-05-19 01:19:51 +00:00
|
|
|
extern void ia64_output_function_profiler (FILE *, int);
|
|
|
|
extern void ia64_profile_hook (int);
|
|
|
|
|
|
|
|
extern void ia64_optimization_options (int, int);
|