comparison gcc/config/nds32/nds32-protos.h @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* Prototypes for exported functions of Andes NDS32 cpu for GNU compiler
2 Copyright (C) 2012-2017 Free Software Foundation, Inc.
3 Contributed by Andes Technology Corporation.
4
5 This file is part of GCC.
6
7 GCC is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published
9 by the Free Software Foundation; either version 3, or (at your
10 option) any later version.
11
12 GCC is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
20
21
22 /* ------------------------------------------------------------------------ */
23
24 /* Defining Data Structures for Per-function Information. */
25
26 extern void nds32_init_expanders (void);
27
28
29 /* Register Classes. */
30
31 extern enum reg_class nds32_regno_reg_class (int);
32
33
34 /* Stack Layout and Calling Conventions. */
35
36 /* -- Basic Stack Layout. */
37
38 extern rtx nds32_return_addr_rtx (int, rtx);
39
40 /* -- Eliminating Frame Pointer and Arg Pointer. */
41
42 extern HOST_WIDE_INT nds32_initial_elimination_offset (unsigned int,
43 unsigned int);
44
45 /* -- Passing Arguments in Registers. */
46
47 extern void nds32_init_cumulative_args (CUMULATIVE_ARGS *,
48 tree, rtx, tree, int);
49
50 /* -- Function Entry and Exit. */
51
52 extern void nds32_expand_prologue (void);
53 extern void nds32_expand_epilogue (bool);
54 extern void nds32_expand_prologue_v3push (void);
55 extern void nds32_expand_epilogue_v3pop (bool);
56
57 /* ------------------------------------------------------------------------ */
58
59 /* Auxiliary functions for auxiliary macros in nds32.h. */
60
61 extern bool nds32_ls_333_p (rtx, rtx, rtx, machine_mode);
62
63 /* Auxiliary functions for expanding rtl used in nds32-multiple.md. */
64
65 extern rtx nds32_expand_load_multiple (int, int, rtx, rtx);
66 extern rtx nds32_expand_store_multiple (int, int, rtx, rtx);
67 extern int nds32_expand_movmemqi (rtx, rtx, rtx, rtx);
68
69 /* Auxiliary functions for multiple load/store predicate checking. */
70
71 extern bool nds32_valid_multiple_load_store (rtx, bool);
72
73 /* Auxiliary functions for stack operation predicate checking. */
74
75 extern bool nds32_valid_stack_push_pop_p (rtx, bool);
76
77 /* Auxiliary functions for bit operation detection. */
78
79 extern int nds32_can_use_bclr_p (int);
80 extern int nds32_can_use_bset_p (int);
81 extern int nds32_can_use_btgl_p (int);
82
83 extern int nds32_can_use_bitci_p (int);
84
85 /* Auxiliary function for 'Computing the Length of an Insn'. */
86
87 extern int nds32_adjust_insn_length (rtx_insn *, int);
88
89 /* Auxiliary functions for FP_AS_GP detection. */
90
91 extern int nds32_fp_as_gp_check_available (void);
92
93 /* Auxiliary functions for jump table generation. */
94
95 extern const char *nds32_output_casesi_pc_relative (rtx *);
96 extern const char *nds32_output_casesi (rtx *);
97
98 /* Auxiliary functions to identify 16 bit addresing mode. */
99
100 extern enum nds32_16bit_address_type nds32_mem_format (rtx);
101
102 /* Auxiliary functions to output assembly code. */
103
104 extern const char *nds32_output_16bit_store (rtx *, int);
105 extern const char *nds32_output_16bit_load (rtx *, int);
106 extern const char *nds32_output_32bit_store (rtx *, int);
107 extern const char *nds32_output_32bit_load (rtx *, int);
108 extern const char *nds32_output_32bit_load_s (rtx *, int);
109
110 /* Auxiliary functions to output stack push/pop instruction. */
111
112 extern const char *nds32_output_stack_push (rtx);
113 extern const char *nds32_output_stack_pop (rtx);
114
115 /* Auxiliary functions to check using return with null epilogue. */
116
117 extern int nds32_can_use_return_insn (void);
118
119 /* Auxiliary functions to decide output alignment or not. */
120
121 extern int nds32_target_alignment (rtx_insn *);
122
123 /* Auxiliary functions to expand builtin functions. */
124
125 extern void nds32_init_builtins_impl (void);
126 extern rtx nds32_expand_builtin_impl (tree, rtx, rtx,
127 machine_mode, int);
128
129 /* Auxiliary functions for ISR implementation. */
130
131 extern void nds32_check_isr_attrs_conflict (tree, tree);
132 extern void nds32_construct_isr_vectors_information (tree, const char *);
133 extern void nds32_asm_file_start_for_isr (void);
134 extern void nds32_asm_file_end_for_isr (void);
135 extern bool nds32_isr_function_p (tree);
136
137 /* Auxiliary functions for cost calculation. */
138
139 extern bool nds32_rtx_costs_impl (rtx, machine_mode, int, int, int *, bool);
140 extern int nds32_address_cost_impl (rtx, machine_mode, addr_space_t, bool);
141
142 /* ------------------------------------------------------------------------ */