1 |
709 |
jeremybenn |
/* 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 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[];
|