OSDN Git Service

* libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
[pf3gnuchains/gcc-fork.git] / gcc / config / sparc / sparc-protos.h
1 /* Prototypes of target machine for GCC, for Sun SPARC.
2    Copyright (C) 1999, 2000 Free Software Foundation, Inc.
3    Contributed by Michael Tiemann (tiemann@cygnus.com).
4    64 bit SPARC V9 support by Michael Tiemann, Jim Wilson, and Doug Evans,
5    at Cygnus Support.
6
7 This file is part of GCC.
8
9 GCC is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
12 any later version.
13
14 GCC is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with GCC; see the file COPYING.  If not, write to
21 the Free Software Foundation, 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA.  */
23
24 #ifndef __SPARC_PROTOS_H__
25 #define __SPARC_PROTOS_H__
26
27 extern bool sparc_emitting_epilogue;
28
29 #ifdef TREE_CODE
30 extern struct rtx_def *function_value (tree, enum machine_mode, int);
31 extern void function_arg_advance (CUMULATIVE_ARGS *,
32                                   enum machine_mode, tree, int);
33 extern struct rtx_def *function_arg (const CUMULATIVE_ARGS *,
34                                      enum machine_mode, tree, int, int);
35 extern int function_arg_partial_nregs (const CUMULATIVE_ARGS *,
36                                        enum machine_mode, tree, int);
37 extern int function_arg_pass_by_reference (const CUMULATIVE_ARGS *,
38                                            enum machine_mode, tree, int);
39 extern struct rtx_def *sparc_builtin_saveregs (void);
40 #ifdef RTX_CODE
41 extern void init_cumulative_args (CUMULATIVE_ARGS *, tree, rtx, tree);
42 extern void sparc_va_start (tree, rtx);
43 #endif
44 extern struct rtx_def *sparc_va_arg (tree, tree);
45 extern unsigned long sparc_type_code (tree);
46 #ifdef ARGS_SIZE_RTX
47 /* expr.h defines ARGS_SIZE_RTX and `enum direction' */
48 extern enum direction function_arg_padding (enum machine_mode, tree);
49 #endif /* ARGS_SIZE_RTX */
50 #endif /* TREE_CODE */
51
52 extern void load_pic_register (void);
53 extern void order_regs_for_local_alloc (void);
54 extern int compute_frame_size (int, int);
55 extern int check_pic (int);
56 extern int short_branch (int, int);
57 extern int sparc_flat_epilogue_delay_slots (void);
58 extern unsigned long sparc_flat_compute_frame_size (int);
59 extern void sparc_profile_hook (int);
60 extern void sparc_override_options (void);
61 extern int leaf_return_peephole_ok (void);
62 extern void sparc_output_scratch_registers (FILE *);
63 extern void sparc_flat_save_restore (FILE *, const char *,
64                                      unsigned int, unsigned long,
65                                      unsigned long, const char *,
66                                      const char *, unsigned long);
67
68 #ifdef RTX_CODE
69 extern enum machine_mode select_cc_mode (enum rtx_code, rtx, rtx);
70 /* Define the function that build the compare insn for scc and bcc.  */
71 extern rtx gen_compare_reg (enum rtx_code code, rtx, rtx);
72 extern void sparc_emit_float_lib_cmp (rtx, rtx, enum rtx_code);
73 extern void sparc_emit_floatunsdi (rtx [2]);
74 extern void emit_tfmode_binop (enum rtx_code, rtx *);
75 extern void emit_tfmode_unop (enum rtx_code, rtx *);
76 extern void emit_tfmode_cvt (enum rtx_code, rtx *);
77 /* This function handles all v9 scc insns */
78 extern int gen_v9_scc (enum rtx_code, rtx *);
79 extern void sparc_initialize_trampoline (rtx, rtx, rtx);
80 extern void sparc64_initialize_trampoline (rtx, rtx, rtx);
81 extern bool legitimate_constant_p (rtx);
82 extern bool constant_address_p (rtx);
83 extern bool legitimate_pic_operand_p (rtx);
84 extern int legitimate_address_p (enum machine_mode, rtx, int);
85 extern rtx legitimize_pic_address (rtx, enum machine_mode, rtx);
86 extern rtx legitimize_tls_address (rtx);
87 extern rtx legitimize_address (rtx, rtx, enum machine_mode);
88 extern void sparc_defer_case_vector (rtx, rtx, int);
89 extern void sparc_emit_set_const32 (rtx, rtx);
90 extern void sparc_emit_set_const64 (rtx, rtx);
91 extern void sparc_emit_set_symbolic_const64 (rtx, rtx, rtx);
92 extern int sparc_splitdi_legitimate (rtx, rtx);
93 extern int sparc_absnegfloat_split_legitimate (rtx, rtx);
94 extern char *output_cbranch (rtx, rtx, int, int, int, int, rtx);
95 extern const char *output_sibcall (rtx, rtx);
96 extern char *output_v9branch (rtx, rtx, int, int, int, int, int, rtx);
97 extern void emit_v9_brxx_insn (enum rtx_code, rtx, rtx);
98 extern void print_operand (FILE *, rtx, int);
99 extern int mems_ok_for_ldd_peep (rtx, rtx, rtx);
100 extern int arith_double_4096_operand (rtx, enum machine_mode);
101 extern int arith_4096_operand (rtx, enum machine_mode);
102 extern int zero_operand (rtx, enum machine_mode);
103 extern int fp_zero_operand (rtx, enum machine_mode);
104 extern int reg_or_0_operand (rtx, enum machine_mode);
105 extern int tls_symbolic_operand (rtx);
106 extern int empty_delay_slot (rtx);
107 extern int eligible_for_epilogue_delay (rtx, int);
108 extern int eligible_for_sibcall_delay (rtx);
109 extern int tls_call_delay (rtx);
110 extern int emit_move_sequence (rtx, enum machine_mode);
111 extern int fp_sethi_p (rtx);
112 extern int fp_mov_p (rtx);
113 extern int fp_high_losum_p (rtx);
114 extern int mem_min_alignment (rtx, int);
115 extern int pic_address_needs_scratch (rtx);
116 extern int reg_unused_after (rtx, rtx);
117 extern int register_ok_for_ldd (rtx);
118 extern int registers_ok_for_ldd_peep (rtx, rtx);
119 extern int sparc_flat_eligible_for_epilogue_delay (rtx, int);
120 extern int v9_regcmp_p (enum rtx_code);
121 extern char *sparc_v8plus_shift (rtx *, rtx, const char *);
122 /* Function used for V8+ code generation.  Returns 1 if the high
123    32 bits of REG are 0 before INSN.  */   
124 extern int sparc_check_64 (rtx, rtx);
125 extern rtx gen_df_reg (rtx, int);
126 extern int sparc_extra_constraint_check (rtx, int, int);
127 extern void sparc_output_dwarf_dtprel (FILE*, int, rtx);
128 #endif /* RTX_CODE */
129
130 #endif /* __SPARC_PROTOS_H__ */