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