annotate gcc/config/sparc/sparc-protos.h @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 /* Prototypes of target machine for SPARC.
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 Copyright (C) 1999-2020 Free Software Foundation, Inc.
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 Contributed by Michael Tiemann (tiemann@cygnus.com).
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 64-bit SPARC-V9 support by Michael Tiemann, Jim Wilson, and Doug Evans,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 at Cygnus Support.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 This file is part of GCC.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 GCC is free software; you can redistribute it and/or modify
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 it under the terms of the GNU General Public License as published by
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 the Free Software Foundation; either version 3, or (at your option)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 any later version.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 GCC is distributed in the hope that it will be useful,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 GNU General Public License for more details.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 You should have received a copy of the GNU General Public License
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 along with GCC; see the file COPYING3. If not see
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 <http://www.gnu.org/licenses/>. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 #ifndef __SPARC_PROTOS_H__
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 #define __SPARC_PROTOS_H__
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 #ifdef TREE_CODE
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 #ifdef RTX_CODE
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 extern void init_cumulative_args (CUMULATIVE_ARGS *, tree, rtx, tree);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 #endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 extern unsigned long sparc_type_code (tree);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 #endif /* TREE_CODE */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 extern void order_regs_for_local_alloc (void);
111
kono
parents: 67
diff changeset
34 extern int sparc_initial_elimination_offset (int);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 extern void sparc_expand_prologue (void);
111
kono
parents: 67
diff changeset
36 extern void sparc_flat_expand_prologue (void);
kono
parents: 67
diff changeset
37 extern void sparc_expand_epilogue (bool);
kono
parents: 67
diff changeset
38 extern void sparc_flat_expand_epilogue (bool);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 extern bool sparc_can_use_return_insn_p (void);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
40 extern int check_pic (int);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
41 extern void sparc_profile_hook (int);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 extern void sparc_override_options (void);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
43 extern void sparc_output_scratch_registers (FILE *);
111
kono
parents: 67
diff changeset
44 extern void sparc_target_macros (void);
kono
parents: 67
diff changeset
45 extern void sparc_emit_membar_for_model (enum memmodel, int, int);
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
46 extern int sparc_branch_cost (bool, bool);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
47
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
48 #ifdef RTX_CODE
111
kono
parents: 67
diff changeset
49 extern machine_mode select_cc_mode (enum rtx_code, rtx, rtx);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
50 /* Define the function that build the compare insn for scc and bcc. */
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 47
diff changeset
51 extern rtx gen_compare_reg (rtx cmp);
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 47
diff changeset
52 extern rtx sparc_emit_float_lib_cmp (rtx, rtx, enum rtx_code);
111
kono
parents: 67
diff changeset
53 extern void sparc_emit_floatunsdi (rtx [2], machine_mode);
kono
parents: 67
diff changeset
54 extern void sparc_emit_fixunsdi (rtx [2], machine_mode);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
55 extern void emit_tfmode_binop (enum rtx_code, rtx *);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
56 extern void emit_tfmode_unop (enum rtx_code, rtx *);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
57 extern void emit_tfmode_cvt (enum rtx_code, rtx *);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
58 extern bool constant_address_p (rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
59 extern bool legitimate_pic_operand_p (rtx);
111
kono
parents: 67
diff changeset
60 extern rtx sparc_legitimize_reload_address (rtx, machine_mode, int, int,
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
61 int, int *win);
111
kono
parents: 67
diff changeset
62 extern void load_got_register (void);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
63 extern void sparc_emit_call_insn (rtx, rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
64 extern void sparc_defer_case_vector (rtx, rtx, int);
111
kono
parents: 67
diff changeset
65 extern bool sparc_expand_move (machine_mode, rtx *);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
66 extern void sparc_emit_set_symbolic_const64 (rtx, rtx, rtx);
111
kono
parents: 67
diff changeset
67 extern int sparc_split_reg_mem_legitimate (rtx, rtx);
kono
parents: 67
diff changeset
68 extern void sparc_split_reg_mem (rtx, rtx, machine_mode);
kono
parents: 67
diff changeset
69 extern void sparc_split_mem_reg (rtx, rtx, machine_mode);
kono
parents: 67
diff changeset
70 extern int sparc_split_reg_reg_legitimate (rtx, rtx);
kono
parents: 67
diff changeset
71 extern void sparc_split_reg_reg (rtx, rtx, machine_mode);
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
72 extern const char *output_load_pcrel_sym (rtx *);
111
kono
parents: 67
diff changeset
73 extern const char *output_ubranch (rtx, rtx_insn *);
kono
parents: 67
diff changeset
74 extern const char *output_cbranch (rtx, rtx, int, int, int, rtx_insn *);
kono
parents: 67
diff changeset
75 extern const char *output_return (rtx_insn *);
kono
parents: 67
diff changeset
76 extern const char *output_sibcall (rtx_insn *, rtx);
kono
parents: 67
diff changeset
77 extern const char *output_v8plus_shift (rtx_insn *, rtx *, const char *);
kono
parents: 67
diff changeset
78 extern const char *output_v8plus_mult (rtx_insn *, rtx *, const char *);
kono
parents: 67
diff changeset
79 extern const char *output_v9branch (rtx, rtx, int, int, int, int, rtx_insn *);
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
80 extern const char *output_probe_stack_range (rtx, rtx);
111
kono
parents: 67
diff changeset
81 extern const char *output_cbcond (rtx, rtx, rtx_insn *);
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 47
diff changeset
82 extern bool emit_scc_insn (rtx []);
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 47
diff changeset
83 extern void emit_conditional_branch_insn (rtx []);
111
kono
parents: 67
diff changeset
84 extern int registers_ok_for_ldd_peep (rtx, rtx);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
85 extern int mems_ok_for_ldd_peep (rtx, rtx, rtx);
111
kono
parents: 67
diff changeset
86 extern rtx widen_mem_for_ldd_peep (rtx, rtx, machine_mode);
kono
parents: 67
diff changeset
87 extern int empty_delay_slot (rtx_insn *);
kono
parents: 67
diff changeset
88 extern int emit_cbcond_nop (rtx_insn *);
kono
parents: 67
diff changeset
89 extern int eligible_for_call_delay (rtx_insn *);
kono
parents: 67
diff changeset
90 extern int eligible_for_return_delay (rtx_insn *);
kono
parents: 67
diff changeset
91 extern int eligible_for_sibcall_delay (rtx_insn *);
kono
parents: 67
diff changeset
92 extern int emit_move_sequence (rtx, machine_mode);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
93 extern int fp_sethi_p (rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
94 extern int fp_mov_p (rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
95 extern int fp_high_losum_p (rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
96 extern int mem_min_alignment (rtx, int);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
97 extern int pic_address_needs_scratch (rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
98 extern int register_ok_for_ldd (rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
99 extern int memory_ok_for_ldd (rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
100 extern int v9_regcmp_p (enum rtx_code);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
101 /* Function used for V8+ code generation. Returns 1 if the high
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
102 32 bits of REG are 0 before INSN. */
111
kono
parents: 67
diff changeset
103 extern int sparc_check_64 (rtx, rtx_insn *);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
104 extern rtx gen_df_reg (rtx, int);
111
kono
parents: 67
diff changeset
105 extern void sparc_expand_compare_and_swap (rtx op[]);
kono
parents: 67
diff changeset
106 extern void sparc_expand_vector_init (rtx, rtx);
kono
parents: 67
diff changeset
107 extern void sparc_expand_vec_perm_bmask(machine_mode, rtx);
kono
parents: 67
diff changeset
108 extern bool sparc_expand_conditional_move (machine_mode, rtx *);
kono
parents: 67
diff changeset
109 extern void sparc_expand_vcond (machine_mode, rtx *, int, int);
kono
parents: 67
diff changeset
110 unsigned int sparc_regmode_natural_size (machine_mode);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
111 #endif /* RTX_CODE */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
112
111
kono
parents: 67
diff changeset
113 extern rtl_opt_pass *make_pass_work_around_errata (gcc::context *);
kono
parents: 67
diff changeset
114
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
115 /* Routines implemented in sparc-d.c */
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
116 extern void sparc_d_target_versions (void);
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
117
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
118 #endif /* __SPARC_PROTOS_H__ */