* configure: Regenerated.
[official-gcc.git] / gcc / config / sparc / sparc-protos.h
blob97f6233d392538bf2742866dd2232b8b93d261bb
1 /* Prototypes of target machine for SPARC.
2 Copyright (C) 1999, 2000, 2003, 2004, 2005, 2007, 2008, 2009, 2010
3 Free Software Foundation, Inc.
4 Contributed by Michael Tiemann (tiemann@cygnus.com).
5 64-bit SPARC-V9 support by Michael Tiemann, Jim Wilson, and Doug Evans,
6 at Cygnus Support.
8 This file is part of GCC.
10 GCC is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 3, or (at your option)
13 any later version.
15 GCC is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with GCC; see the file COPYING3. If not see
22 <http://www.gnu.org/licenses/>. */
24 #ifndef __SPARC_PROTOS_H__
25 #define __SPARC_PROTOS_H__
27 #ifdef TREE_CODE
28 #ifdef RTX_CODE
29 extern void init_cumulative_args (CUMULATIVE_ARGS *, tree, rtx, tree);
30 #endif
31 extern unsigned long sparc_type_code (tree);
32 #ifdef ARGS_SIZE_RTX
33 /* expr.h defines ARGS_SIZE_RTX and `enum direction' */
34 extern enum direction function_arg_padding (enum machine_mode, const_tree);
35 #endif /* ARGS_SIZE_RTX */
36 #endif /* TREE_CODE */
38 extern void order_regs_for_local_alloc (void);
39 extern HOST_WIDE_INT sparc_compute_frame_size (HOST_WIDE_INT, int);
40 extern int sparc_initial_elimination_offset (int);
41 extern void sparc_expand_prologue (void);
42 extern void sparc_flat_expand_prologue (void);
43 extern void sparc_expand_epilogue (bool);
44 extern void sparc_flat_expand_epilogue (bool);
45 extern bool sparc_can_use_return_insn_p (void);
46 extern int check_pic (int);
47 extern void sparc_profile_hook (int);
48 extern void sparc_override_options (void);
49 extern void sparc_output_scratch_registers (FILE *);
50 extern void sparc_target_macros (void);
52 #ifdef RTX_CODE
53 extern enum machine_mode select_cc_mode (enum rtx_code, rtx, rtx);
54 /* Define the function that build the compare insn for scc and bcc. */
55 extern rtx gen_compare_reg (rtx cmp);
56 extern rtx sparc_emit_float_lib_cmp (rtx, rtx, enum rtx_code);
57 extern void sparc_emit_floatunsdi (rtx [2], enum machine_mode);
58 extern void sparc_emit_fixunsdi (rtx [2], enum machine_mode);
59 extern void emit_tfmode_binop (enum rtx_code, rtx *);
60 extern void emit_tfmode_unop (enum rtx_code, rtx *);
61 extern void emit_tfmode_cvt (enum rtx_code, rtx *);
62 extern bool constant_address_p (rtx);
63 extern bool legitimate_pic_operand_p (rtx);
64 extern rtx sparc_legitimize_reload_address (rtx, enum machine_mode, int, int,
65 int, int *win);
66 extern void load_got_register (void);
67 extern void sparc_emit_call_insn (rtx, rtx);
68 extern void sparc_defer_case_vector (rtx, rtx, int);
69 extern bool sparc_expand_move (enum machine_mode, rtx *);
70 extern void sparc_emit_set_symbolic_const64 (rtx, rtx, rtx);
71 extern int sparc_splitdi_legitimate (rtx, rtx);
72 extern int sparc_split_regreg_legitimate (rtx, rtx);
73 extern int sparc_absnegfloat_split_legitimate (rtx, rtx);
74 extern const char *output_ubranch (rtx, int, rtx);
75 extern const char *output_cbranch (rtx, rtx, int, int, int, rtx);
76 extern const char *output_return (rtx);
77 extern const char *output_sibcall (rtx, rtx);
78 extern const char *output_v8plus_shift (rtx, rtx *, const char *);
79 extern const char *output_v8plus_mult (rtx, rtx *, const char *);
80 extern const char *output_v9branch (rtx, rtx, int, int, int, int, rtx);
81 extern const char *output_probe_stack_range (rtx, rtx);
82 extern bool emit_scc_insn (rtx []);
83 extern void emit_conditional_branch_insn (rtx []);
84 extern int mems_ok_for_ldd_peep (rtx, rtx, rtx);
85 extern int empty_delay_slot (rtx);
86 extern int eligible_for_return_delay (rtx);
87 extern int eligible_for_sibcall_delay (rtx);
88 extern int tls_call_delay (rtx);
89 extern int emit_move_sequence (rtx, enum machine_mode);
90 extern int fp_sethi_p (rtx);
91 extern int fp_mov_p (rtx);
92 extern int fp_high_losum_p (rtx);
93 extern int mem_min_alignment (rtx, int);
94 extern int pic_address_needs_scratch (rtx);
95 extern int register_ok_for_ldd (rtx);
96 extern int memory_ok_for_ldd (rtx);
97 extern int registers_ok_for_ldd_peep (rtx, rtx);
98 extern int v9_regcmp_p (enum rtx_code);
99 /* Function used for V8+ code generation. Returns 1 if the high
100 32 bits of REG are 0 before INSN. */
101 extern int sparc_check_64 (rtx, rtx);
102 extern rtx gen_df_reg (rtx, int);
103 extern void sparc_expand_compare_and_swap (rtx op[]);
104 extern void sparc_expand_vector_init (rtx, rtx);
105 extern void sparc_expand_vec_perm_bmask(enum machine_mode, rtx);
106 extern bool sparc_expand_conditional_move (enum machine_mode, rtx *);
107 extern void sparc_expand_vcond (enum machine_mode, rtx *, int, int);
108 unsigned int sparc_regmode_natural_size (enum machine_mode);
109 bool sparc_modes_tieable_p (enum machine_mode, enum machine_mode);
110 #endif /* RTX_CODE */
112 extern void sparc_emit_membar_for_model (enum memmodel, int, int);
114 #endif /* __SPARC_PROTOS_H__ */