| 1 |
/* Prototypes for alpha.cc functions used in the md file & elsewhere. |
| 2 |
Copyright (C) 1999-2025 Free Software Foundation, Inc. |
| 3 |
|
| 4 |
This file is part of GCC. |
| 5 |
|
| 6 |
GCC 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 3, or (at your option) |
| 9 |
any later version. |
| 10 |
|
| 11 |
GCC 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. |
| 15 |
|
| 16 |
You should have received a copy of the GNU General Public License |
| 17 |
along with GCC; see the file COPYING3. If not see |
| 18 |
<http://www.gnu.org/licenses/>. */ |
| 19 |
|
| 20 |
extern int alpha_next_sequence_number; |
| 21 |
|
| 22 |
extern void literal_section (void); |
| 23 |
extern int zap_mask (HOST_WIDE_INT); |
| 24 |
extern bool direct_return (void); |
| 25 |
|
| 26 |
extern HOST_WIDE_INT alpha_initial_elimination_offset (unsigned int, |
| 27 |
unsigned int); |
| 28 |
extern void alpha_expand_prologue (void); |
| 29 |
extern void alpha_expand_epilogue (void); |
| 30 |
extern void alpha_output_filename (FILE *, const char *); |
| 31 |
|
| 32 |
extern bool alpha_legitimate_constant_p (machine_mode, rtx); |
| 33 |
extern rtx alpha_legitimize_reload_address (rtx, machine_mode, |
| 34 |
int, int, int); |
| 35 |
|
| 36 |
extern rtx split_small_symbolic_operand (rtx); |
| 37 |
|
| 38 |
extern void get_aligned_mem (rtx, rtx *, rtx *); |
| 39 |
extern rtx get_unaligned_address (rtx); |
| 40 |
extern rtx get_unaligned_offset (rtx, HOST_WIDE_INT); |
| 41 |
extern enum reg_class alpha_preferred_reload_class (rtx, enum reg_class); |
| 42 |
|
| 43 |
extern void alpha_set_memflags (rtx, rtx); |
| 44 |
extern bool alpha_split_const_mov (machine_mode, rtx *); |
| 45 |
extern bool alpha_expand_mov (machine_mode, rtx *); |
| 46 |
extern bool alpha_expand_mov_safe_bwa (machine_mode, rtx *); |
| 47 |
extern bool alpha_expand_mov_nobwx (machine_mode, rtx *); |
| 48 |
extern void alpha_expand_movmisalign (machine_mode, rtx *); |
| 49 |
extern void alpha_emit_floatuns (rtx[]); |
| 50 |
extern rtx alpha_emit_conditional_move (rtx, machine_mode); |
| 51 |
extern void alpha_split_tmode_pair (rtx[], machine_mode, bool); |
| 52 |
extern void alpha_split_tfmode_frobsign (rtx[], rtx (*)(rtx, rtx, rtx)); |
| 53 |
extern void alpha_expand_unaligned_load (rtx, rtx, HOST_WIDE_INT, |
| 54 |
HOST_WIDE_INT, int); |
| 55 |
extern void alpha_expand_unaligned_store (rtx, rtx, HOST_WIDE_INT, |
| 56 |
HOST_WIDE_INT); |
| 57 |
extern void alpha_expand_unaligned_store_safe_partial (rtx, rtx, HOST_WIDE_INT, |
| 58 |
HOST_WIDE_INT, |
| 59 |
HOST_WIDE_INT); |
| 60 |
extern int alpha_expand_block_move (rtx []); |
| 61 |
extern int alpha_expand_block_clear (rtx []); |
| 62 |
extern rtx alpha_expand_zap_mask (HOST_WIDE_INT); |
| 63 |
extern void alpha_expand_builtin_vector_binop (rtx (*)(rtx, rtx, rtx), |
| 64 |
machine_mode, |
| 65 |
rtx, rtx, rtx); |
| 66 |
extern rtx alpha_emit_unlikely_jump (rtx, rtx); |
| 67 |
extern void alpha_expand_builtin_establish_vms_condition_handler (rtx, rtx); |
| 68 |
extern void alpha_expand_builtin_revert_vms_condition_handler (rtx); |
| 69 |
|
| 70 |
extern rtx alpha_return_addr (int, rtx); |
| 71 |
extern rtx alpha_gp_save_rtx (void); |
| 72 |
extern void alpha_initialize_trampoline (rtx, rtx, rtx, int, int, int); |
| 73 |
|
| 74 |
extern rtx alpha_va_arg (tree, tree); |
| 75 |
|
| 76 |
extern void alpha_start_function (FILE *, const char *, tree); |
| 77 |
extern void alpha_end_function (FILE *, const char *, tree); |
| 78 |
|
| 79 |
extern bool alpha_find_lo_sum_using_gp (rtx); |
| 80 |
|
| 81 |
extern int alpha_store_data_bypass_p (rtx_insn *, rtx_insn *); |
| 82 |
|
| 83 |
#ifdef REAL_VALUE_TYPE |
| 84 |
extern int check_float_value (machine_mode, REAL_VALUE_TYPE *, int); |
| 85 |
#endif |
| 86 |
|
| 87 |
#ifdef RTX_CODE |
| 88 |
extern void alpha_emit_conditional_branch (rtx[], machine_mode); |
| 89 |
extern bool alpha_emit_setcc (rtx[], machine_mode); |
| 90 |
extern int alpha_split_conditional_move (enum rtx_code, rtx, rtx, rtx, rtx); |
| 91 |
extern void alpha_emit_xfloating_arith (enum rtx_code, rtx[]); |
| 92 |
extern void alpha_emit_xfloating_cvt (enum rtx_code, rtx[]); |
| 93 |
extern void alpha_split_atomic_op (enum rtx_code, rtx, rtx, rtx, rtx, rtx, |
| 94 |
enum memmodel); |
| 95 |
extern void alpha_split_compare_and_swap (rtx op[]); |
| 96 |
extern void alpha_expand_compare_and_swap_12 (rtx op[]); |
| 97 |
extern void alpha_split_compare_and_swap_12 (rtx op[]); |
| 98 |
extern void alpha_split_atomic_exchange (rtx op[]); |
| 99 |
extern void alpha_expand_atomic_exchange_12 (rtx op[]); |
| 100 |
extern void alpha_split_atomic_exchange_12 (rtx op[]); |
| 101 |
#endif |
| 102 |
|
| 103 |
extern rtx alpha_use_linkage (rtx, bool, bool); |
| 104 |
|
| 105 |
#if TARGET_ABI_OPEN_VMS |
| 106 |
extern enum avms_arg_type alpha_arg_type (machine_mode); |
| 107 |
extern rtx alpha_arg_info_reg_val (CUMULATIVE_ARGS); |
| 108 |
extern void avms_asm_output_external (FILE *, tree, const char *); |
| 109 |
extern void vms_output_aligned_decl_common (FILE *, tree, const char *, |
| 110 |
unsigned HOST_WIDE_INT, |
| 111 |
unsigned int); |
| 112 |
extern HOST_WIDE_INT alpha_vms_initial_elimination_offset (unsigned int, |
| 113 |
unsigned int); |
| 114 |
#endif |
| 115 |
|
| 116 |
extern rtx unicosmk_add_call_info_word (rtx); |
| 117 |
|
| 118 |
extern bool some_small_symbolic_operand_int (rtx); |
| 119 |
extern int tls_symbolic_operand_1 (rtx, int, int); |
| 120 |
extern rtx resolve_reload_operand (rtx); |
| 121 |
|
| 122 |
namespace gcc { class context; } |
| 123 |
class rtl_opt_pass; |
| 124 |
|
| 125 |
extern rtl_opt_pass *make_pass_handle_trap_shadows (gcc::context *); |
| 126 |
extern rtl_opt_pass *make_pass_align_insns (gcc::context *); |