OSDN Git Service

Latest updates from FSF 4.7 branch
[pf3gnuchains/gcc-fork.git] / gcc / config / pa / pa-protos.h
1 /* Prototypes for pa.c functions used in the md file & elsewhere.
2    Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2010, 2011
3    Free Software Foundation,
4    Inc.
5
6 This file is part of GCC.
7
8 GCC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
11 any later version.
12
13 GCC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3.  If not see
20 <http://www.gnu.org/licenses/>.  */
21
22 #ifdef RTX_CODE
23 /* Prototype function used in various macros.  */
24 extern rtx pa_eh_return_handler_rtx (void);
25
26 /* Used in insn-*.c.  */
27 extern int pa_following_call (rtx);
28
29 /* Define functions in pa.c and used in insn-output.c.  */
30
31 extern const char *pa_output_and (rtx *);
32 extern const char *pa_output_64bit_and (rtx *);
33 extern const char *pa_output_ior (rtx *);
34 extern const char *pa_output_64bit_ior (rtx *);
35 extern const char *pa_output_move_double (rtx *);
36 extern const char *pa_output_fp_move_double (rtx *);
37 extern const char *pa_output_block_move (rtx *, int);
38 extern const char *pa_output_block_clear (rtx *, int);
39 extern const char *pa_output_cbranch (rtx *, int, rtx);
40 extern const char *pa_output_lbranch (rtx, rtx, int);
41 extern const char *pa_output_bb (rtx *, int, rtx, int);
42 extern const char *pa_output_bvb (rtx *, int, rtx, int);
43 extern const char *pa_output_dbra (rtx *, rtx, int);
44 extern const char *pa_output_movb (rtx *, rtx, int, int);
45 extern const char *pa_output_parallel_movb (rtx *, rtx);
46 extern const char *pa_output_parallel_addb (rtx *, rtx);
47 extern const char *pa_output_call (rtx, rtx, int);
48 extern const char *pa_output_indirect_call (rtx, rtx);
49 extern const char *pa_output_millicode_call (rtx, rtx);
50 extern const char *pa_output_mul_insn (int, rtx);
51 extern const char *pa_output_div_insn (rtx *, int, rtx);
52 extern const char *pa_output_mod_insn (int, rtx);
53 extern const char *pa_singlemove_string (rtx *);
54 extern void pa_output_arg_descriptor (rtx);
55 extern void pa_output_global_address (FILE *, rtx, int);
56 extern void pa_print_operand (FILE *, rtx, int);
57 extern void pa_encode_label (rtx);
58 extern int pa_symbolic_expression_p (rtx);
59 extern bool pa_tls_referenced_p (rtx);
60 extern int pa_adjust_insn_length (rtx, int);
61 extern int pa_fmpyaddoperands (rtx *);
62 extern int pa_fmpysuboperands (rtx *);
63 extern void pa_emit_bcond_fp (rtx[]);
64 extern int pa_emit_move_sequence (rtx *, enum machine_mode, rtx);
65 extern int pa_emit_hpdiv_const (rtx *, int);
66 extern int pa_is_function_label_plus_const (rtx);
67 extern int pa_jump_in_call_delay (rtx);
68 extern int pa_fpstore_bypass_p (rtx, rtx);
69 extern int pa_attr_length_millicode_call (rtx);
70 extern int pa_attr_length_call (rtx, int);
71 extern int pa_attr_length_indirect_call (rtx);
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 output_ascii (FILE *, const char *, int);
95 extern HOST_WIDE_INT compute_frame_size (HOST_WIDE_INT, int *);
96 extern int and_mask_p (unsigned HOST_WIDE_INT);
97 extern int cint_ok_for_move (HOST_WIDE_INT);
98 extern void hppa_expand_prologue (void);
99 extern void hppa_expand_epilogue (void);
100 extern bool pa_can_use_return_insn (void);
101 extern int ior_mask_p (unsigned HOST_WIDE_INT);
102 extern void compute_zdepdi_operands (unsigned HOST_WIDE_INT,
103                                      unsigned *);
104 #ifdef RTX_CODE
105 extern const char * output_64bit_and (rtx *);
106 extern const char * output_64bit_ior (rtx *);
107 extern int cmpib_comparison_operator (rtx, enum machine_mode);
108 #endif
109
110 /* Miscellaneous functions in pa.c.  */
111 #ifdef TREE_CODE
112 extern int pa_reloc_needed (tree);
113 extern bool pa_return_in_memory (const_tree, const_tree);
114 #endif /* TREE_CODE */
115
116 extern void pa_asm_output_aligned_bss (FILE *, const char *,
117                                        unsigned HOST_WIDE_INT,
118                                        unsigned int);
119 extern void pa_asm_output_aligned_common (FILE *, const char *,
120                                           unsigned HOST_WIDE_INT,
121                                           unsigned int);
122 extern void pa_asm_output_aligned_local (FILE *, const char *,
123                                          unsigned HOST_WIDE_INT,
124                                          unsigned int);
125 extern void pa_hpux_asm_output_external (FILE *, tree, const char *);
126 extern bool pa_cannot_change_mode_class (enum machine_mode, enum machine_mode,
127                                          enum reg_class);
128 extern bool pa_modes_tieable_p (enum machine_mode, enum machine_mode);
129 extern HOST_WIDE_INT pa_initial_elimination_offset (int, int);
130
131 extern const int pa_magic_milli[];