annotate gcc/emit-rtl.h @ 131:84e7813d76e9

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