annotate gcc/config/riscv/riscv-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
111
kono
parents:
diff changeset
1 /* Definition of RISC-V target for GNU compiler.
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 Copyright (C) 2011-2020 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
3 Contributed by Andrew Waterman (andrew@sifive.com).
kono
parents:
diff changeset
4 Based on MIPS target for GNU compiler.
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 This file is part of GCC.
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 GCC is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
9 it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
10 the Free Software Foundation; either version 3, or (at your option)
kono
parents:
diff changeset
11 any later version.
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 GCC is distributed in the hope that it will be useful,
kono
parents:
diff changeset
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
16 GNU General Public License for more details.
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
19 along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
20 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 #ifndef GCC_RISCV_PROTOS_H
kono
parents:
diff changeset
23 #define GCC_RISCV_PROTOS_H
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 /* Symbol types we understand. The order of this list must match that of
kono
parents:
diff changeset
26 the unspec enum in riscv.md, subsequent to UNSPEC_ADDRESS_FIRST. */
kono
parents:
diff changeset
27 enum riscv_symbol_type {
kono
parents:
diff changeset
28 SYMBOL_ABSOLUTE,
kono
parents:
diff changeset
29 SYMBOL_PCREL,
kono
parents:
diff changeset
30 SYMBOL_GOT_DISP,
kono
parents:
diff changeset
31 SYMBOL_TLS,
kono
parents:
diff changeset
32 SYMBOL_TLS_LE,
kono
parents:
diff changeset
33 SYMBOL_TLS_IE,
kono
parents:
diff changeset
34 SYMBOL_TLS_GD
kono
parents:
diff changeset
35 };
kono
parents:
diff changeset
36 #define NUM_SYMBOL_TYPES (SYMBOL_TLS_GD + 1)
kono
parents:
diff changeset
37
kono
parents:
diff changeset
38 /* Routines implemented in riscv.c. */
kono
parents:
diff changeset
39 extern enum riscv_symbol_type riscv_classify_symbolic_expression (rtx);
kono
parents:
diff changeset
40 extern bool riscv_symbolic_constant_p (rtx, enum riscv_symbol_type *);
kono
parents:
diff changeset
41 extern int riscv_regno_mode_ok_for_base_p (int, machine_mode, bool);
kono
parents:
diff changeset
42 extern int riscv_address_insns (rtx, machine_mode, bool);
kono
parents:
diff changeset
43 extern int riscv_const_insns (rtx);
kono
parents:
diff changeset
44 extern int riscv_split_const_insns (rtx);
kono
parents:
diff changeset
45 extern int riscv_load_store_insns (rtx, rtx_insn *);
kono
parents:
diff changeset
46 extern rtx riscv_emit_move (rtx, rtx);
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
47 extern bool riscv_split_symbol (rtx, rtx, machine_mode, rtx *, bool);
111
kono
parents:
diff changeset
48 extern bool riscv_split_symbol_type (enum riscv_symbol_type);
kono
parents:
diff changeset
49 extern rtx riscv_unspec_address (rtx, enum riscv_symbol_type);
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
50 extern void riscv_move_integer (rtx, rtx, HOST_WIDE_INT, machine_mode, bool);
111
kono
parents:
diff changeset
51 extern bool riscv_legitimize_move (machine_mode, rtx, rtx);
kono
parents:
diff changeset
52 extern rtx riscv_subword (rtx, bool);
kono
parents:
diff changeset
53 extern bool riscv_split_64bit_move_p (rtx, rtx);
kono
parents:
diff changeset
54 extern void riscv_split_doubleword_move (rtx, rtx);
kono
parents:
diff changeset
55 extern const char *riscv_output_move (rtx, rtx);
kono
parents:
diff changeset
56 extern const char *riscv_output_gpr_save (unsigned);
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
57 extern const char *riscv_output_return ();
111
kono
parents:
diff changeset
58 #ifdef RTX_CODE
kono
parents:
diff changeset
59 extern void riscv_expand_int_scc (rtx, enum rtx_code, rtx, rtx);
kono
parents:
diff changeset
60 extern void riscv_expand_float_scc (rtx, enum rtx_code, rtx, rtx);
kono
parents:
diff changeset
61 extern void riscv_expand_conditional_branch (rtx, enum rtx_code, rtx, rtx);
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
62 extern void riscv_expand_conditional_move (rtx, rtx, rtx, rtx_code, rtx, rtx);
111
kono
parents:
diff changeset
63 #endif
kono
parents:
diff changeset
64 extern rtx riscv_legitimize_call_address (rtx);
kono
parents:
diff changeset
65 extern void riscv_set_return_address (rtx, rtx);
kono
parents:
diff changeset
66 extern bool riscv_expand_block_move (rtx, rtx, rtx);
kono
parents:
diff changeset
67 extern rtx riscv_return_addr (int, rtx);
kono
parents:
diff changeset
68 extern HOST_WIDE_INT riscv_initial_elimination_offset (int, int);
kono
parents:
diff changeset
69 extern void riscv_expand_prologue (void);
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
70 extern void riscv_expand_epilogue (int);
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
71 extern bool riscv_epilogue_uses (unsigned int);
111
kono
parents:
diff changeset
72 extern bool riscv_can_use_return_insn (void);
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
73 extern rtx riscv_function_value (const_tree, const_tree, enum machine_mode);
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
74 extern bool riscv_expand_block_move (rtx, rtx, rtx);
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
75 extern bool riscv_store_data_bypass_p (rtx_insn *, rtx_insn *);
111
kono
parents:
diff changeset
76
kono
parents:
diff changeset
77 /* Routines implemented in riscv-c.c. */
kono
parents:
diff changeset
78 void riscv_cpu_cpp_builtins (cpp_reader *);
kono
parents:
diff changeset
79
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
80 /* Routines implemented in riscv-d.c */
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
81 extern void riscv_d_target_versions (void);
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
82
111
kono
parents:
diff changeset
83 /* Routines implemented in riscv-builtins.c. */
kono
parents:
diff changeset
84 extern void riscv_atomic_assign_expand_fenv (tree *, tree *, tree *);
kono
parents:
diff changeset
85 extern rtx riscv_expand_builtin (tree, rtx, rtx, machine_mode, int);
kono
parents:
diff changeset
86 extern tree riscv_builtin_decl (unsigned int, bool);
kono
parents:
diff changeset
87 extern void riscv_init_builtins (void);
kono
parents:
diff changeset
88
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
89 /* Routines implemented in riscv-common.c. */
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
90 extern std::string riscv_arch_str ();
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
91
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
92 extern bool riscv_hard_regno_rename_ok (unsigned, unsigned);
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
93
111
kono
parents:
diff changeset
94 #endif /* ! GCC_RISCV_PROTOS_H */