annotate gcc/emit-rtl.h @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
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 /* Exported functions from emit-rtl.c
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 Copyright (C) 2004-2020 Free Software Foundation, Inc.
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 This file is part of GCC.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 GCC is free software; you can redistribute it and/or modify it under
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 the terms of the GNU General Public License as published by the Free
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 Software Foundation; either version 3, or (at your option) any later
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 version.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 for more details.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 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
17 along with GCC; see the file COPYING3. If not see
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 <http://www.gnu.org/licenses/>. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 #ifndef GCC_EMIT_RTL_H
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 #define GCC_EMIT_RTL_H
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
23 class temp_slot;
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
24 typedef class temp_slot *temp_slot_p;
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
25 class predefined_function_abi;
111
kono
parents: 67
diff changeset
26
kono
parents: 67
diff changeset
27 /* Information mainlined about RTL representation of incoming arguments. */
kono
parents: 67
diff changeset
28 struct GTY(()) incoming_args {
kono
parents: 67
diff changeset
29 /* Number of bytes of args popped by function being compiled on its return.
kono
parents: 67
diff changeset
30 Zero if no bytes are to be popped.
kono
parents: 67
diff changeset
31 May affect compilation of return insn or of function epilogue. */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
32 poly_int64_pod pops_args;
111
kono
parents: 67
diff changeset
33
kono
parents: 67
diff changeset
34 /* If function's args have a fixed size, this is that size, in bytes.
kono
parents: 67
diff changeset
35 Otherwise, it is -1.
kono
parents: 67
diff changeset
36 May affect compilation of return insn or of function epilogue. */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
37 poly_int64_pod size;
111
kono
parents: 67
diff changeset
38
kono
parents: 67
diff changeset
39 /* # bytes the prologue should push and pretend that the caller pushed them.
kono
parents: 67
diff changeset
40 The prologue must do this, but only if parms can be passed in
kono
parents: 67
diff changeset
41 registers. */
kono
parents: 67
diff changeset
42 int pretend_args_size;
kono
parents: 67
diff changeset
43
kono
parents: 67
diff changeset
44 /* This is the offset from the arg pointer to the place where the first
kono
parents: 67
diff changeset
45 anonymous arg can be found, if there is one. */
kono
parents: 67
diff changeset
46 rtx arg_offset_rtx;
kono
parents: 67
diff changeset
47
kono
parents: 67
diff changeset
48 /* Quantities of various kinds of registers
kono
parents: 67
diff changeset
49 used for the current function's args. */
kono
parents: 67
diff changeset
50 CUMULATIVE_ARGS info;
kono
parents: 67
diff changeset
51
kono
parents: 67
diff changeset
52 /* The arg pointer hard register, or the pseudo into which it was copied. */
kono
parents: 67
diff changeset
53 rtx internal_arg_pointer;
kono
parents: 67
diff changeset
54 };
kono
parents: 67
diff changeset
55
kono
parents: 67
diff changeset
56
kono
parents: 67
diff changeset
57 /* Datastructures maintained for currently processed function in RTL form. */
kono
parents: 67
diff changeset
58 struct GTY(()) rtl_data {
kono
parents: 67
diff changeset
59 void init_stack_alignment ();
kono
parents: 67
diff changeset
60
kono
parents: 67
diff changeset
61 struct expr_status expr;
kono
parents: 67
diff changeset
62 struct emit_status emit;
kono
parents: 67
diff changeset
63 struct varasm_status varasm;
kono
parents: 67
diff changeset
64 struct incoming_args args;
kono
parents: 67
diff changeset
65 struct function_subsections subsections;
kono
parents: 67
diff changeset
66 struct rtl_eh eh;
kono
parents: 67
diff changeset
67
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
68 /* The ABI of the function, i.e. the interface it presents to its callers.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
69 This is the ABI that should be queried to see which registers the
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
70 function needs to save before it uses them.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
71
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
72 Other functions (including those called by this function) might use
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
73 different ABIs. */
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
74 const predefined_function_abi *GTY((skip)) abi;
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
75
111
kono
parents: 67
diff changeset
76 /* For function.c */
kono
parents: 67
diff changeset
77
kono
parents: 67
diff changeset
78 /* # of bytes of outgoing arguments. If ACCUMULATE_OUTGOING_ARGS is
kono
parents: 67
diff changeset
79 defined, the needed space is pushed by the prologue. */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
80 poly_int64_pod outgoing_args_size;
111
kono
parents: 67
diff changeset
81
kono
parents: 67
diff changeset
82 /* If nonzero, an RTL expression for the location at which the current
kono
parents: 67
diff changeset
83 function returns its result. If the current function returns its
kono
parents: 67
diff changeset
84 result in a register, current_function_return_rtx will always be
kono
parents: 67
diff changeset
85 the hard register containing the result. */
kono
parents: 67
diff changeset
86 rtx return_rtx;
kono
parents: 67
diff changeset
87
kono
parents: 67
diff changeset
88 /* Vector of initial-value pairs. Each pair consists of a pseudo
kono
parents: 67
diff changeset
89 register of approprite mode that stores the initial value a hard
kono
parents: 67
diff changeset
90 register REGNO, and that hard register itself. */
kono
parents: 67
diff changeset
91 /* ??? This could be a VEC but there is currently no way to define an
kono
parents: 67
diff changeset
92 opaque VEC type. */
kono
parents: 67
diff changeset
93 struct initial_value_struct *hard_reg_initial_vals;
kono
parents: 67
diff changeset
94
kono
parents: 67
diff changeset
95 /* A variable living at the top of the frame that holds a known value.
kono
parents: 67
diff changeset
96 Used for detecting stack clobbers. */
kono
parents: 67
diff changeset
97 tree stack_protect_guard;
kono
parents: 67
diff changeset
98
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
99 /* The __stack_chk_guard variable or expression holding the stack
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
100 protector canary value. */
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
101 tree stack_protect_guard_decl;
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
102
111
kono
parents: 67
diff changeset
103 /* List (chain of INSN_LIST) of labels heading the current handlers for
kono
parents: 67
diff changeset
104 nonlocal gotos. */
kono
parents: 67
diff changeset
105 rtx_insn_list *x_nonlocal_goto_handler_labels;
kono
parents: 67
diff changeset
106
kono
parents: 67
diff changeset
107 /* Label that will go on function epilogue.
kono
parents: 67
diff changeset
108 Jumping to this label serves as a "return" instruction
kono
parents: 67
diff changeset
109 on machines which require execution of the epilogue on all returns. */
kono
parents: 67
diff changeset
110 rtx_code_label *x_return_label;
kono
parents: 67
diff changeset
111
kono
parents: 67
diff changeset
112 /* Label that will go on the end of function epilogue.
kono
parents: 67
diff changeset
113 Jumping to this label serves as a "naked return" instruction
kono
parents: 67
diff changeset
114 on machines which require execution of the epilogue on all returns. */
kono
parents: 67
diff changeset
115 rtx_code_label *x_naked_return_label;
kono
parents: 67
diff changeset
116
kono
parents: 67
diff changeset
117 /* List (chain of EXPR_LISTs) of all stack slots in this function.
kono
parents: 67
diff changeset
118 Made for the sake of unshare_all_rtl. */
kono
parents: 67
diff changeset
119 vec<rtx, va_gc> *x_stack_slot_list;
kono
parents: 67
diff changeset
120
kono
parents: 67
diff changeset
121 /* List of empty areas in the stack frame. */
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
122 class frame_space *frame_space_list;
111
kono
parents: 67
diff changeset
123
kono
parents: 67
diff changeset
124 /* Place after which to insert the tail_recursion_label if we need one. */
kono
parents: 67
diff changeset
125 rtx_note *x_stack_check_probe_note;
kono
parents: 67
diff changeset
126
kono
parents: 67
diff changeset
127 /* Location at which to save the argument pointer if it will need to be
kono
parents: 67
diff changeset
128 referenced. There are two cases where this is done: if nonlocal gotos
kono
parents: 67
diff changeset
129 exist, or if vars stored at an offset from the argument pointer will be
kono
parents: 67
diff changeset
130 needed by inner routines. */
kono
parents: 67
diff changeset
131 rtx x_arg_pointer_save_area;
kono
parents: 67
diff changeset
132
kono
parents: 67
diff changeset
133 /* Dynamic Realign Argument Pointer used for realigning stack. */
kono
parents: 67
diff changeset
134 rtx drap_reg;
kono
parents: 67
diff changeset
135
kono
parents: 67
diff changeset
136 /* Offset to end of allocated area of stack frame.
kono
parents: 67
diff changeset
137 If stack grows down, this is the address of the last stack slot allocated.
kono
parents: 67
diff changeset
138 If stack grows up, this is the address for the next slot. */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
139 poly_int64_pod x_frame_offset;
111
kono
parents: 67
diff changeset
140
kono
parents: 67
diff changeset
141 /* Insn after which register parms and SAVE_EXPRs are born, if nonopt. */
kono
parents: 67
diff changeset
142 rtx_insn *x_parm_birth_insn;
kono
parents: 67
diff changeset
143
kono
parents: 67
diff changeset
144 /* List of all used temporaries allocated, by level. */
kono
parents: 67
diff changeset
145 vec<temp_slot_p, va_gc> *x_used_temp_slots;
kono
parents: 67
diff changeset
146
kono
parents: 67
diff changeset
147 /* List of available temp slots. */
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
148 class temp_slot *x_avail_temp_slots;
111
kono
parents: 67
diff changeset
149
kono
parents: 67
diff changeset
150 /* Current nesting level for temporaries. */
kono
parents: 67
diff changeset
151 int x_temp_slot_level;
kono
parents: 67
diff changeset
152
kono
parents: 67
diff changeset
153 /* The largest alignment needed on the stack, including requirement
kono
parents: 67
diff changeset
154 for outgoing stack alignment. */
kono
parents: 67
diff changeset
155 unsigned int stack_alignment_needed;
kono
parents: 67
diff changeset
156
kono
parents: 67
diff changeset
157 /* Preferred alignment of the end of stack frame, which is preferred
kono
parents: 67
diff changeset
158 to call other functions. */
kono
parents: 67
diff changeset
159 unsigned int preferred_stack_boundary;
kono
parents: 67
diff changeset
160
kono
parents: 67
diff changeset
161 /* The minimum alignment of parameter stack. */
kono
parents: 67
diff changeset
162 unsigned int parm_stack_boundary;
kono
parents: 67
diff changeset
163
kono
parents: 67
diff changeset
164 /* The largest alignment of slot allocated on the stack. */
kono
parents: 67
diff changeset
165 unsigned int max_used_stack_slot_alignment;
kono
parents: 67
diff changeset
166
kono
parents: 67
diff changeset
167 /* The stack alignment estimated before reload, with consideration of
kono
parents: 67
diff changeset
168 following factors:
kono
parents: 67
diff changeset
169 1. Alignment of local stack variables (max_used_stack_slot_alignment)
kono
parents: 67
diff changeset
170 2. Alignment requirement to call other functions
kono
parents: 67
diff changeset
171 (preferred_stack_boundary)
kono
parents: 67
diff changeset
172 3. Alignment of non-local stack variables but might be spilled in
kono
parents: 67
diff changeset
173 local stack. */
kono
parents: 67
diff changeset
174 unsigned int stack_alignment_estimated;
kono
parents: 67
diff changeset
175
kono
parents: 67
diff changeset
176 /* For reorg. */
kono
parents: 67
diff changeset
177
kono
parents: 67
diff changeset
178 /* Nonzero if function being compiled called builtin_return_addr or
kono
parents: 67
diff changeset
179 builtin_frame_address with nonzero count. */
kono
parents: 67
diff changeset
180 bool accesses_prior_frames;
kono
parents: 67
diff changeset
181
kono
parents: 67
diff changeset
182 /* Nonzero if the function calls __builtin_eh_return. */
kono
parents: 67
diff changeset
183 bool calls_eh_return;
kono
parents: 67
diff changeset
184
kono
parents: 67
diff changeset
185 /* Nonzero if function saves all registers, e.g. if it has a nonlocal
kono
parents: 67
diff changeset
186 label that can reach the exit block via non-exceptional paths. */
kono
parents: 67
diff changeset
187 bool saves_all_registers;
kono
parents: 67
diff changeset
188
kono
parents: 67
diff changeset
189 /* Nonzero if function being compiled has nonlocal gotos to parent
kono
parents: 67
diff changeset
190 function. */
kono
parents: 67
diff changeset
191 bool has_nonlocal_goto;
kono
parents: 67
diff changeset
192
kono
parents: 67
diff changeset
193 /* Nonzero if function being compiled has an asm statement. */
kono
parents: 67
diff changeset
194 bool has_asm_statement;
kono
parents: 67
diff changeset
195
kono
parents: 67
diff changeset
196 /* This bit is used by the exception handling logic. It is set if all
kono
parents: 67
diff changeset
197 calls (if any) are sibling calls. Such functions do not have to
kono
parents: 67
diff changeset
198 have EH tables generated, as they cannot throw. A call to such a
kono
parents: 67
diff changeset
199 function, however, should be treated as throwing if any of its callees
kono
parents: 67
diff changeset
200 can throw. */
kono
parents: 67
diff changeset
201 bool all_throwers_are_sibcalls;
kono
parents: 67
diff changeset
202
kono
parents: 67
diff changeset
203 /* Nonzero if stack limit checking should be enabled in the current
kono
parents: 67
diff changeset
204 function. */
kono
parents: 67
diff changeset
205 bool limit_stack;
kono
parents: 67
diff changeset
206
kono
parents: 67
diff changeset
207 /* Nonzero if profiling code should be generated. */
kono
parents: 67
diff changeset
208 bool profile;
kono
parents: 67
diff changeset
209
kono
parents: 67
diff changeset
210 /* Nonzero if the current function uses the constant pool. */
kono
parents: 67
diff changeset
211 bool uses_const_pool;
kono
parents: 67
diff changeset
212
kono
parents: 67
diff changeset
213 /* Nonzero if the current function uses pic_offset_table_rtx. */
kono
parents: 67
diff changeset
214 bool uses_pic_offset_table;
kono
parents: 67
diff changeset
215
kono
parents: 67
diff changeset
216 /* Nonzero if the current function needs an lsda for exception handling. */
kono
parents: 67
diff changeset
217 bool uses_eh_lsda;
kono
parents: 67
diff changeset
218
kono
parents: 67
diff changeset
219 /* Set when the tail call has been produced. */
kono
parents: 67
diff changeset
220 bool tail_call_emit;
kono
parents: 67
diff changeset
221
kono
parents: 67
diff changeset
222 /* Nonzero if code to initialize arg_pointer_save_area has been emitted. */
kono
parents: 67
diff changeset
223 bool arg_pointer_save_area_init;
kono
parents: 67
diff changeset
224
kono
parents: 67
diff changeset
225 /* Nonzero if current function must be given a frame pointer.
kono
parents: 67
diff changeset
226 Set in reload1.c or lra-eliminations.c if anything is allocated
kono
parents: 67
diff changeset
227 on the stack there. */
kono
parents: 67
diff changeset
228 bool frame_pointer_needed;
kono
parents: 67
diff changeset
229
kono
parents: 67
diff changeset
230 /* When set, expand should optimize for speed. */
kono
parents: 67
diff changeset
231 bool maybe_hot_insn_p;
kono
parents: 67
diff changeset
232
kono
parents: 67
diff changeset
233 /* Nonzero if function stack realignment is needed. This flag may be
kono
parents: 67
diff changeset
234 set twice: before and after reload. It is set before reload wrt
kono
parents: 67
diff changeset
235 stack alignment estimation before reload. It will be changed after
kono
parents: 67
diff changeset
236 reload if by then criteria of stack realignment is different.
kono
parents: 67
diff changeset
237 The value set after reload is the accurate one and is finalized. */
kono
parents: 67
diff changeset
238 bool stack_realign_needed;
kono
parents: 67
diff changeset
239
kono
parents: 67
diff changeset
240 /* Nonzero if function stack realignment is tried. This flag is set
kono
parents: 67
diff changeset
241 only once before reload. It affects register elimination. This
kono
parents: 67
diff changeset
242 is used to generate DWARF debug info for stack variables. */
kono
parents: 67
diff changeset
243 bool stack_realign_tried;
kono
parents: 67
diff changeset
244
kono
parents: 67
diff changeset
245 /* Nonzero if function being compiled needs dynamic realigned
kono
parents: 67
diff changeset
246 argument pointer (drap) if stack needs realigning. */
kono
parents: 67
diff changeset
247 bool need_drap;
kono
parents: 67
diff changeset
248
kono
parents: 67
diff changeset
249 /* Nonzero if function stack realignment estimation is done, namely
kono
parents: 67
diff changeset
250 stack_realign_needed flag has been set before reload wrt estimated
kono
parents: 67
diff changeset
251 stack alignment info. */
kono
parents: 67
diff changeset
252 bool stack_realign_processed;
kono
parents: 67
diff changeset
253
kono
parents: 67
diff changeset
254 /* Nonzero if function stack realignment has been finalized, namely
kono
parents: 67
diff changeset
255 stack_realign_needed flag has been set and finalized after reload. */
kono
parents: 67
diff changeset
256 bool stack_realign_finalized;
kono
parents: 67
diff changeset
257
kono
parents: 67
diff changeset
258 /* True if dbr_schedule has already been called for this function. */
kono
parents: 67
diff changeset
259 bool dbr_scheduled_p;
kono
parents: 67
diff changeset
260
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
261 /* True if current function cannot throw. Unlike
111
kono
parents: 67
diff changeset
262 TREE_NOTHROW (current_function_decl) it is set even for overwritable
kono
parents: 67
diff changeset
263 function where currently compiled version of it is nothrow. */
kono
parents: 67
diff changeset
264 bool nothrow;
kono
parents: 67
diff changeset
265
kono
parents: 67
diff changeset
266 /* True if we performed shrink-wrapping for the current function. */
kono
parents: 67
diff changeset
267 bool shrink_wrapped;
kono
parents: 67
diff changeset
268
kono
parents: 67
diff changeset
269 /* True if we performed shrink-wrapping for separate components for
kono
parents: 67
diff changeset
270 the current function. */
kono
parents: 67
diff changeset
271 bool shrink_wrapped_separate;
kono
parents: 67
diff changeset
272
kono
parents: 67
diff changeset
273 /* Nonzero if function being compiled doesn't modify the stack pointer
kono
parents: 67
diff changeset
274 (ignoring the prologue and epilogue). This is only valid after
kono
parents: 67
diff changeset
275 pass_stack_ptr_mod has run. */
kono
parents: 67
diff changeset
276 bool sp_is_unchanging;
kono
parents: 67
diff changeset
277
kono
parents: 67
diff changeset
278 /* Nonzero if function being compiled doesn't contain any calls
kono
parents: 67
diff changeset
279 (ignoring the prologue and epilogue). This is set prior to
kono
parents: 67
diff changeset
280 register allocation in IRA and is valid for the remaining
kono
parents: 67
diff changeset
281 compiler passes. */
kono
parents: 67
diff changeset
282 bool is_leaf;
kono
parents: 67
diff changeset
283
kono
parents: 67
diff changeset
284 /* Nonzero if the function being compiled is a leaf function which only
kono
parents: 67
diff changeset
285 uses leaf registers. This is valid after reload (specifically after
kono
parents: 67
diff changeset
286 sched2) and is useful only if the port defines LEAF_REGISTERS. */
kono
parents: 67
diff changeset
287 bool uses_only_leaf_regs;
kono
parents: 67
diff changeset
288
kono
parents: 67
diff changeset
289 /* Nonzero if the function being compiled has undergone hot/cold partitioning
kono
parents: 67
diff changeset
290 (under flag_reorder_blocks_and_partition) and has at least one cold
kono
parents: 67
diff changeset
291 block. */
kono
parents: 67
diff changeset
292 bool has_bb_partition;
kono
parents: 67
diff changeset
293
kono
parents: 67
diff changeset
294 /* Nonzero if the function being compiled has completed the bb reordering
kono
parents: 67
diff changeset
295 pass. */
kono
parents: 67
diff changeset
296 bool bb_reorder_complete;
kono
parents: 67
diff changeset
297
kono
parents: 67
diff changeset
298 /* Like regs_ever_live, but 1 if a reg is set or clobbered from an
kono
parents: 67
diff changeset
299 asm. Unlike regs_ever_live, elements of this array corresponding
kono
parents: 67
diff changeset
300 to eliminable regs (like the frame pointer) are set if an asm
kono
parents: 67
diff changeset
301 sets them. */
kono
parents: 67
diff changeset
302 HARD_REG_SET asm_clobbers;
kono
parents: 67
diff changeset
303
kono
parents: 67
diff changeset
304 /* The highest address seen during shorten_branches. */
kono
parents: 67
diff changeset
305 int max_insn_address;
kono
parents: 67
diff changeset
306 };
kono
parents: 67
diff changeset
307
kono
parents: 67
diff changeset
308 #define return_label (crtl->x_return_label)
kono
parents: 67
diff changeset
309 #define naked_return_label (crtl->x_naked_return_label)
kono
parents: 67
diff changeset
310 #define stack_slot_list (crtl->x_stack_slot_list)
kono
parents: 67
diff changeset
311 #define parm_birth_insn (crtl->x_parm_birth_insn)
kono
parents: 67
diff changeset
312 #define frame_offset (crtl->x_frame_offset)
kono
parents: 67
diff changeset
313 #define stack_check_probe_note (crtl->x_stack_check_probe_note)
kono
parents: 67
diff changeset
314 #define arg_pointer_save_area (crtl->x_arg_pointer_save_area)
kono
parents: 67
diff changeset
315 #define used_temp_slots (crtl->x_used_temp_slots)
kono
parents: 67
diff changeset
316 #define avail_temp_slots (crtl->x_avail_temp_slots)
kono
parents: 67
diff changeset
317 #define temp_slot_level (crtl->x_temp_slot_level)
kono
parents: 67
diff changeset
318 #define nonlocal_goto_handler_labels (crtl->x_nonlocal_goto_handler_labels)
kono
parents: 67
diff changeset
319 #define frame_pointer_needed (crtl->frame_pointer_needed)
kono
parents: 67
diff changeset
320 #define stack_realign_fp (crtl->stack_realign_needed && !crtl->need_drap)
kono
parents: 67
diff changeset
321 #define stack_realign_drap (crtl->stack_realign_needed && crtl->need_drap)
kono
parents: 67
diff changeset
322
kono
parents: 67
diff changeset
323 extern GTY(()) struct rtl_data x_rtl;
kono
parents: 67
diff changeset
324
kono
parents: 67
diff changeset
325 /* Accessor to RTL datastructures. We keep them statically allocated now since
kono
parents: 67
diff changeset
326 we never keep multiple functions. For threaded compiler we might however
kono
parents: 67
diff changeset
327 want to do differently. */
kono
parents: 67
diff changeset
328 #define crtl (&x_rtl)
kono
parents: 67
diff changeset
329
kono
parents: 67
diff changeset
330 /* Return whether two MEM_ATTRs are equal. */
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
331 bool mem_attrs_eq_p (const class mem_attrs *, const class mem_attrs *);
111
kono
parents: 67
diff changeset
332
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
333 /* Set the alias set of MEM to SET. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
334 extern void set_mem_alias_set (rtx, alias_set_type);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
335
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
336 /* Set the alignment of MEM to ALIGN bits. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
337 extern void set_mem_align (rtx, unsigned int);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
338
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
339 /* Set the address space of MEM to ADDRSPACE. */
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
340 extern void set_mem_addr_space (rtx, addr_space_t);
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
341
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
342 /* Set the expr for MEM to EXPR. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
343 extern void set_mem_expr (rtx, tree);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
344
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
345 /* Set the offset for MEM to OFFSET. */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
346 extern void set_mem_offset (rtx, poly_int64);
111
kono
parents: 67
diff changeset
347
kono
parents: 67
diff changeset
348 /* Clear the offset recorded for MEM. */
kono
parents: 67
diff changeset
349 extern void clear_mem_offset (rtx);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
350
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
351 /* Set the size for MEM to SIZE. */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
352 extern void set_mem_size (rtx, poly_int64);
111
kono
parents: 67
diff changeset
353
kono
parents: 67
diff changeset
354 /* Clear the size recorded for MEM. */
kono
parents: 67
diff changeset
355 extern void clear_mem_size (rtx);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
356
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
357 /* Set the attributes for MEM appropriate for a spill slot. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
358 extern void set_mem_attrs_for_spill (rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
359 extern tree get_spill_slot_decl (bool);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
360
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
361 /* Return a memory reference like MEMREF, but with its address changed to
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
362 ADDR. The caller is asserting that the actual piece of memory pointed
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
363 to is the same, just the form of the address is being changed, such as
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
364 by putting something into a register. */
111
kono
parents: 67
diff changeset
365 extern rtx replace_equiv_address (rtx, rtx, bool = false);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
366
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
367 /* Likewise, but the reference is not required to be valid. */
111
kono
parents: 67
diff changeset
368 extern rtx replace_equiv_address_nv (rtx, rtx, bool = false);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
369
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
370 extern rtx gen_blockage (void);
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
371 extern rtvec gen_rtvec (int, ...);
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
372 extern rtx copy_insn_1 (rtx);
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
373 extern rtx copy_insn (rtx);
111
kono
parents: 67
diff changeset
374 extern rtx_insn *copy_delay_slot_insn (rtx_insn *);
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
375 extern rtx gen_int_mode (poly_int64, machine_mode);
111
kono
parents: 67
diff changeset
376 extern rtx_insn *emit_copy_of_insn_after (rtx_insn *, 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: 55
diff changeset
377 extern void set_reg_attrs_from_value (rtx, rtx);
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
378 extern void set_reg_attrs_for_parm (rtx, rtx);
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
379 extern void set_reg_attrs_for_decl_rtl (tree t, rtx x);
111
kono
parents: 67
diff changeset
380 extern void adjust_reg_mode (rtx, machine_mode);
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
381 extern int mem_expr_equal_p (const_tree, const_tree);
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
382 extern rtx gen_int_shift_amount (machine_mode, poly_int64);
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
383
111
kono
parents: 67
diff changeset
384 extern bool need_atomic_barrier_p (enum memmodel, bool);
kono
parents: 67
diff changeset
385
kono
parents: 67
diff changeset
386 /* Return the current sequence. */
kono
parents: 67
diff changeset
387
kono
parents: 67
diff changeset
388 static inline struct sequence_stack *
kono
parents: 67
diff changeset
389 get_current_sequence (void)
kono
parents: 67
diff changeset
390 {
kono
parents: 67
diff changeset
391 return &crtl->emit.seq;
kono
parents: 67
diff changeset
392 }
kono
parents: 67
diff changeset
393
kono
parents: 67
diff changeset
394 /* Return the outermost sequence. */
kono
parents: 67
diff changeset
395
kono
parents: 67
diff changeset
396 static inline struct sequence_stack *
kono
parents: 67
diff changeset
397 get_topmost_sequence (void)
kono
parents: 67
diff changeset
398 {
kono
parents: 67
diff changeset
399 struct sequence_stack *seq, *top;
kono
parents: 67
diff changeset
400
kono
parents: 67
diff changeset
401 seq = get_current_sequence ();
kono
parents: 67
diff changeset
402 do
kono
parents: 67
diff changeset
403 {
kono
parents: 67
diff changeset
404 top = seq;
kono
parents: 67
diff changeset
405 seq = seq->next;
kono
parents: 67
diff changeset
406 } while (seq);
kono
parents: 67
diff changeset
407 return top;
kono
parents: 67
diff changeset
408 }
kono
parents: 67
diff changeset
409
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
410 /* Return the first insn of the current sequence or current function. */
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
411
111
kono
parents: 67
diff changeset
412 static inline 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: 55
diff changeset
413 get_insns (void)
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
414 {
111
kono
parents: 67
diff changeset
415 return get_current_sequence ()->first;
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
416 }
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
417
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
418 /* Specify a new insn as the first in the chain. */
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
419
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
420 static inline void
111
kono
parents: 67
diff changeset
421 set_first_insn (rtx_insn *insn)
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
422 {
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
423 gcc_checking_assert (!insn || !PREV_INSN (insn));
111
kono
parents: 67
diff changeset
424 get_current_sequence ()->first = insn;
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
425 }
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
426
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
427 /* Return the last insn emitted in current sequence or current function. */
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
428
111
kono
parents: 67
diff changeset
429 static inline 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: 55
diff changeset
430 get_last_insn (void)
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
431 {
111
kono
parents: 67
diff changeset
432 return get_current_sequence ()->last;
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
433 }
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
434
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
435 /* Specify a new insn as the last in the chain. */
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
436
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
437 static inline void
111
kono
parents: 67
diff changeset
438 set_last_insn (rtx_insn *insn)
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
439 {
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
440 gcc_checking_assert (!insn || !NEXT_INSN (insn));
111
kono
parents: 67
diff changeset
441 get_current_sequence ()->last = insn;
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
442 }
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
443
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
444 /* Return a number larger than any instruction's uid in this function. */
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
445
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
446 static inline int
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
447 get_max_uid (void)
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
448 {
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
449 return crtl->emit.x_cur_insn_uid;
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
450 }
111
kono
parents: 67
diff changeset
451
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
452 extern bool valid_for_const_vector_p (machine_mode, rtx);
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
453 extern rtx gen_const_vec_duplicate (machine_mode, rtx);
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
454 extern rtx gen_vec_duplicate (machine_mode, rtx);
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
455
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
456 extern rtx gen_const_vec_series (machine_mode, rtx, rtx);
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
457 extern rtx gen_vec_series (machine_mode, rtx, rtx);
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
458
111
kono
parents: 67
diff changeset
459 extern void set_decl_incoming_rtl (tree, rtx, bool);
kono
parents: 67
diff changeset
460
kono
parents: 67
diff changeset
461 /* Return a memory reference like MEMREF, but with its mode changed
kono
parents: 67
diff changeset
462 to MODE and its address changed to ADDR.
kono
parents: 67
diff changeset
463 (VOIDmode means don't change the mode.
kono
parents: 67
diff changeset
464 NULL for ADDR means don't change the address.) */
kono
parents: 67
diff changeset
465 extern rtx change_address (rtx, machine_mode, rtx);
kono
parents: 67
diff changeset
466
kono
parents: 67
diff changeset
467 /* Return a memory reference like MEMREF, but with its mode changed
kono
parents: 67
diff changeset
468 to MODE and its address offset by OFFSET bytes. */
kono
parents: 67
diff changeset
469 #define adjust_address(MEMREF, MODE, OFFSET) \
kono
parents: 67
diff changeset
470 adjust_address_1 (MEMREF, MODE, OFFSET, 1, 1, 0, 0)
kono
parents: 67
diff changeset
471
kono
parents: 67
diff changeset
472 /* Likewise, but the reference is not required to be valid. */
kono
parents: 67
diff changeset
473 #define adjust_address_nv(MEMREF, MODE, OFFSET) \
kono
parents: 67
diff changeset
474 adjust_address_1 (MEMREF, MODE, OFFSET, 0, 1, 0, 0)
kono
parents: 67
diff changeset
475
kono
parents: 67
diff changeset
476 /* Return a memory reference like MEMREF, but with its mode changed
kono
parents: 67
diff changeset
477 to MODE and its address offset by OFFSET bytes. Assume that it's
kono
parents: 67
diff changeset
478 for a bitfield and conservatively drop the underlying object if we
kono
parents: 67
diff changeset
479 cannot be sure to stay within its bounds. */
kono
parents: 67
diff changeset
480 #define adjust_bitfield_address(MEMREF, MODE, OFFSET) \
kono
parents: 67
diff changeset
481 adjust_address_1 (MEMREF, MODE, OFFSET, 1, 1, 1, 0)
kono
parents: 67
diff changeset
482
kono
parents: 67
diff changeset
483 /* As for adjust_bitfield_address, but specify that the width of
kono
parents: 67
diff changeset
484 BLKmode accesses is SIZE bytes. */
kono
parents: 67
diff changeset
485 #define adjust_bitfield_address_size(MEMREF, MODE, OFFSET, SIZE) \
kono
parents: 67
diff changeset
486 adjust_address_1 (MEMREF, MODE, OFFSET, 1, 1, 1, SIZE)
kono
parents: 67
diff changeset
487
kono
parents: 67
diff changeset
488 /* Likewise, but the reference is not required to be valid. */
kono
parents: 67
diff changeset
489 #define adjust_bitfield_address_nv(MEMREF, MODE, OFFSET) \
kono
parents: 67
diff changeset
490 adjust_address_1 (MEMREF, MODE, OFFSET, 0, 1, 1, 0)
kono
parents: 67
diff changeset
491
kono
parents: 67
diff changeset
492 /* Return a memory reference like MEMREF, but with its mode changed
kono
parents: 67
diff changeset
493 to MODE and its address changed to ADDR, which is assumed to be
kono
parents: 67
diff changeset
494 increased by OFFSET bytes from MEMREF. */
kono
parents: 67
diff changeset
495 #define adjust_automodify_address(MEMREF, MODE, ADDR, OFFSET) \
kono
parents: 67
diff changeset
496 adjust_automodify_address_1 (MEMREF, MODE, ADDR, OFFSET, 1)
kono
parents: 67
diff changeset
497
kono
parents: 67
diff changeset
498 /* Likewise, but the reference is not required to be valid. */
kono
parents: 67
diff changeset
499 #define adjust_automodify_address_nv(MEMREF, MODE, ADDR, OFFSET) \
kono
parents: 67
diff changeset
500 adjust_automodify_address_1 (MEMREF, MODE, ADDR, OFFSET, 0)
kono
parents: 67
diff changeset
501
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
502 extern rtx adjust_address_1 (rtx, machine_mode, poly_int64, int, int,
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
503 int, poly_int64);
111
kono
parents: 67
diff changeset
504 extern rtx adjust_automodify_address_1 (rtx, machine_mode, rtx,
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
505 poly_int64, int);
111
kono
parents: 67
diff changeset
506
kono
parents: 67
diff changeset
507 /* Return a memory reference like MEMREF, but whose address is changed by
kono
parents: 67
diff changeset
508 adding OFFSET, an RTX, to it. POW2 is the highest power of two factor
kono
parents: 67
diff changeset
509 known to be in OFFSET (possibly 1). */
kono
parents: 67
diff changeset
510 extern rtx offset_address (rtx, rtx, unsigned HOST_WIDE_INT);
kono
parents: 67
diff changeset
511
kono
parents: 67
diff changeset
512 /* Given REF, a MEM, and T, either the type of X or the expression
kono
parents: 67
diff changeset
513 corresponding to REF, set the memory attributes. OBJECTP is nonzero
kono
parents: 67
diff changeset
514 if we are making a new object of this type. */
kono
parents: 67
diff changeset
515 extern void set_mem_attributes (rtx, tree, int);
kono
parents: 67
diff changeset
516
kono
parents: 67
diff changeset
517 /* Similar, except that BITPOS has not yet been applied to REF, so if
kono
parents: 67
diff changeset
518 we alter MEM_OFFSET according to T then we should subtract BITPOS
kono
parents: 67
diff changeset
519 expecting that it'll be added back in later. */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
520 extern void set_mem_attributes_minus_bitpos (rtx, tree, int, poly_int64);
111
kono
parents: 67
diff changeset
521
kono
parents: 67
diff changeset
522 /* Return OFFSET if XEXP (MEM, 0) - OFFSET is known to be ALIGN
kono
parents: 67
diff changeset
523 bits aligned for 0 <= OFFSET < ALIGN / BITS_PER_UNIT, or
kono
parents: 67
diff changeset
524 -1 if not known. */
kono
parents: 67
diff changeset
525 extern int get_mem_align_offset (rtx, unsigned int);
kono
parents: 67
diff changeset
526
kono
parents: 67
diff changeset
527 /* Return a memory reference like MEMREF, but with its mode widened to
kono
parents: 67
diff changeset
528 MODE and adjusted by OFFSET. */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
529 extern rtx widen_memory_access (rtx, machine_mode, poly_int64);
111
kono
parents: 67
diff changeset
530
kono
parents: 67
diff changeset
531 extern void maybe_set_max_label_num (rtx_code_label *x);
kono
parents: 67
diff changeset
532
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
533 #endif /* GCC_EMIT_RTL_H */