| 1 |
/* Prototypes for pa.cc functions used in the md file & elsewhere. |
| 2 |
Copyright (C) 2000-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 |
#ifdef RTX_CODE |
| 21 |
/* Prototype function used in various macros. */ |
| 22 |
extern rtx pa_eh_return_handler_rtx (void); |
| 23 |
|
| 24 |
/* Define functions in pa.cc and used in insn-output.cc. */ |
| 25 |
|
| 26 |
extern const char *pa_output_and (rtx *); |
| 27 |
extern const char *pa_output_64bit_and (rtx *); |
| 28 |
extern const char *pa_output_ior (rtx *); |
| 29 |
extern const char *pa_output_64bit_ior (rtx *); |
| 30 |
extern const char *pa_output_move_double (rtx *); |
| 31 |
extern const char *pa_output_fp_move_double (rtx *); |
| 32 |
extern const char *pa_output_block_move (rtx *, int); |
| 33 |
extern const char *pa_output_block_clear (rtx *, int); |
| 34 |
extern const char *pa_output_cbranch (rtx *, int, rtx_insn *); |
| 35 |
extern const char *pa_output_lbranch (rtx, rtx_insn *, int); |
| 36 |
extern const char *pa_output_bb (rtx *, int, rtx_insn *, int); |
| 37 |
extern const char *pa_output_bvb (rtx *, int, rtx_insn *, int); |
| 38 |
extern const char *pa_output_dbra (rtx *, rtx_insn *, int); |
| 39 |
extern const char *pa_output_movb (rtx *, rtx_insn *, int, int); |
| 40 |
extern const char *pa_output_parallel_movb (rtx *, rtx_insn *); |
| 41 |
extern const char *pa_output_parallel_addb (rtx *, rtx_insn *); |
| 42 |
extern const char *pa_output_call (rtx_insn *, rtx, int); |
| 43 |
extern const char *pa_output_indirect_call (rtx_insn *, rtx); |
| 44 |
extern const char *pa_output_millicode_call (rtx_insn *, rtx); |
| 45 |
extern const char *pa_output_mul_insn (int, rtx_insn *); |
| 46 |
extern const char *pa_output_div_insn (rtx *, int, rtx_insn *); |
| 47 |
extern const char *pa_output_mod_insn (int, rtx_insn *); |
| 48 |
extern const char *pa_singlemove_string (rtx *); |
| 49 |
extern void pa_output_addr_vec (rtx, rtx); |
| 50 |
extern void pa_output_addr_diff_vec (rtx, rtx); |
| 51 |
extern void pa_output_arg_descriptor (rtx_insn *); |
| 52 |
extern void pa_output_global_address (FILE *, rtx, int); |
| 53 |
extern void pa_print_operand (FILE *, rtx, int); |
| 54 |
extern void pa_encode_label (rtx); |
| 55 |
extern int pa_symbolic_expression_p (rtx); |
| 56 |
extern int pa_adjust_insn_length (rtx_insn *, int); |
| 57 |
extern int pa_fmpyaddoperands (rtx *); |
| 58 |
extern int pa_fmpysuboperands (rtx *); |
| 59 |
extern void pa_emit_bcond_fp (rtx[]); |
| 60 |
extern int pa_emit_move_sequence (rtx *, machine_mode, rtx); |
| 61 |
extern int pa_emit_hpdiv_const (rtx *, int); |
| 62 |
extern int pa_is_function_label_plus_const (rtx); |
| 63 |
extern int pa_fpstore_bypass_p (rtx_insn *, rtx_insn *); |
| 64 |
extern int pa_attr_length_millicode_call (rtx_insn *); |
| 65 |
extern int pa_attr_length_call (rtx_insn *, int); |
| 66 |
extern int pa_attr_length_indirect_call (rtx_insn *); |
| 67 |
extern rtx pa_legitimize_reload_address (rtx, machine_mode, |
| 68 |
int, int, int); |
| 69 |
|
| 70 |
/* Declare functions defined in pa.cc and used in templates. */ |
| 71 |
|
| 72 |
extern rtx pa_return_addr_rtx (int, rtx); |
| 73 |
|
| 74 |
extern int pa_insn_refs_are_delayed (rtx_insn *); |
| 75 |
extern rtx pa_get_deferred_plabel (rtx); |
| 76 |
#endif /* RTX_CODE */ |
| 77 |
|
| 78 |
extern int pa_and_mask_p (unsigned HOST_WIDE_INT); |
| 79 |
extern int pa_cint_ok_for_move (unsigned HOST_WIDE_INT); |
| 80 |
extern int pa_ior_mask_p (unsigned HOST_WIDE_INT); |
| 81 |
extern int pa_ldil_cint_p (unsigned HOST_WIDE_INT); |
| 82 |
extern int pa_mem_shadd_constant_p (int); |
| 83 |
extern int pa_shadd_constant_p (int); |
| 84 |
extern int pa_zdepi_cint_p (unsigned HOST_WIDE_INT); |
| 85 |
|
| 86 |
extern void pa_output_ascii (FILE *, const char *, int); |
| 87 |
extern HOST_WIDE_INT pa_compute_frame_size (poly_int64, int *); |
| 88 |
extern void pa_expand_prologue (void); |
| 89 |
extern void pa_expand_epilogue (void); |
| 90 |
extern bool pa_can_use_return_insn (void); |
| 91 |
|
| 92 |
/* Miscellaneous functions in pa.cc. */ |
| 93 |
#ifdef TREE_CODE |
| 94 |
extern int pa_reloc_needed (tree); |
| 95 |
extern bool pa_return_in_memory (const_tree, const_tree); |
| 96 |
#endif /* TREE_CODE */ |
| 97 |
|
| 98 |
extern void pa_asm_output_aligned_bss (FILE *, const char *, |
| 99 |
unsigned HOST_WIDE_INT, |
| 100 |
unsigned int); |
| 101 |
extern void pa_asm_output_aligned_common (FILE *, const char *, |
| 102 |
unsigned HOST_WIDE_INT, |
| 103 |
unsigned int); |
| 104 |
extern void pa_asm_output_aligned_local (FILE *, const char *, |
| 105 |
unsigned HOST_WIDE_INT, |
| 106 |
unsigned int); |
| 107 |
extern void pa_hpux_asm_output_external (FILE *, tree, const char *); |
| 108 |
extern HOST_WIDE_INT pa_initial_elimination_offset (int, int); |
| 109 |
extern int pa_function_arg_size (machine_mode, const_tree); |
| 110 |
extern void pa_output_function_label (FILE *); |
| 111 |
extern void hppa_profile_hook (int); |
| 112 |
|
| 113 |
extern const int pa_magic_milli[]; |