annotate gcc/expr.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 /* Definitions for code generation pass of GNU compiler.
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 Copyright (C) 1987-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_EXPR_H
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 #define GCC_EXPR_H
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 /* This is the 4th arg to `expand_expr'.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 EXPAND_STACK_PARM means we are possibly expanding a call param onto
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 the stack.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 EXPAND_SUM means it is ok to return a PLUS rtx or MULT rtx.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 EXPAND_INITIALIZER is similar but also record any labels on forced_labels.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 EXPAND_CONST_ADDRESS means it is ok to return a MEM whose address
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 is a constant that is not a legitimate address.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 EXPAND_WRITE means we are only going to write to the resulting rtx.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 EXPAND_MEMORY means we are interested in a memory result, even if
111
kono
parents: 67
diff changeset
32 the memory is constant and we could have propagated a constant value,
kono
parents: 67
diff changeset
33 or the memory is unaligned on a STRICT_ALIGNMENT target. */
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 enum expand_modifier {EXPAND_NORMAL = 0, EXPAND_STACK_PARM, EXPAND_SUM,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 EXPAND_CONST_ADDRESS, EXPAND_INITIALIZER, EXPAND_WRITE,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36 EXPAND_MEMORY};
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
37
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 /* Prevent the compiler from deferring stack pops. See
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 inhibit_defer_pop for more information. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
40 #define NO_DEFER_POP (inhibit_defer_pop += 1)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
41
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 /* Allow the compiler to defer stack pops. See inhibit_defer_pop for
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
43 more information. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
44 #define OK_DEFER_POP (inhibit_defer_pop -= 1)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
45
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
46 /* This structure is used to pass around information about exploded
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
47 unary, binary and trinary expressions between expand_expr_real_1 and
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
48 friends. */
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
49 typedef struct separate_ops
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
50 {
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
51 enum tree_code code;
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
52 location_t location;
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
53 tree type;
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
54 tree op0, op1, op2;
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
55 } *sepops;
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
56
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
57 /* This is run during target initialization to set up which modes can be
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
58 used directly in memory and to initialize the block move optab. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
59 extern void init_expr_target (void);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
60
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
61 /* This is run at the start of compiling a function. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
62 extern void init_expr (void);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
63
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
64 /* Emit some rtl insns to move data between rtx's, converting machine modes.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
65 Both modes must be floating or both fixed. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
66 extern void convert_move (rtx, rtx, int);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
67
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
68 /* Convert an rtx to specified machine mode and return the result. */
111
kono
parents: 67
diff changeset
69 extern rtx convert_to_mode (machine_mode, rtx, int);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
70
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
71 /* Convert an rtx to MODE from OLDMODE and return the result. */
111
kono
parents: 67
diff changeset
72 extern rtx convert_modes (machine_mode, machine_mode, rtx, int);
kono
parents: 67
diff changeset
73
kono
parents: 67
diff changeset
74 /* Expand a call to memcpy or memmove or memcmp, and return the result. */
kono
parents: 67
diff changeset
75 extern rtx emit_block_op_via_libcall (enum built_in_function, rtx, rtx, rtx,
kono
parents: 67
diff changeset
76 bool);
kono
parents: 67
diff changeset
77
kono
parents: 67
diff changeset
78 static inline rtx
kono
parents: 67
diff changeset
79 emit_block_copy_via_libcall (rtx dst, rtx src, rtx size, bool tailcall = false)
kono
parents: 67
diff changeset
80 {
kono
parents: 67
diff changeset
81 return emit_block_op_via_libcall (BUILT_IN_MEMCPY, dst, src, size, tailcall);
kono
parents: 67
diff changeset
82 }
kono
parents: 67
diff changeset
83
kono
parents: 67
diff changeset
84 static inline rtx
kono
parents: 67
diff changeset
85 emit_block_move_via_libcall (rtx dst, rtx src, rtx size, bool tailcall = false)
kono
parents: 67
diff changeset
86 {
kono
parents: 67
diff changeset
87 return emit_block_op_via_libcall (BUILT_IN_MEMMOVE, dst, src, size, tailcall);
kono
parents: 67
diff changeset
88 }
kono
parents: 67
diff changeset
89
kono
parents: 67
diff changeset
90 static inline rtx
kono
parents: 67
diff changeset
91 emit_block_comp_via_libcall (rtx dst, rtx src, rtx size, bool tailcall = false)
kono
parents: 67
diff changeset
92 {
kono
parents: 67
diff changeset
93 return emit_block_op_via_libcall (BUILT_IN_MEMCMP, dst, src, size, tailcall);
kono
parents: 67
diff changeset
94 }
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
95
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
96 /* Emit code to move a block Y to a block X. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
97 enum block_op_methods
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
98 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
99 BLOCK_OP_NORMAL,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
100 BLOCK_OP_NO_LIBCALL,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
101 BLOCK_OP_CALL_PARM,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
102 /* Like BLOCK_OP_NORMAL, but the libcall can be tail call optimized. */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
103 BLOCK_OP_TAILCALL,
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
104 /* Like BLOCK_OP_NO_LIBCALL, but instead of emitting a libcall return
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
105 pc_rtx to indicate nothing has been emitted and let the caller handle
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
106 it. */
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
107 BLOCK_OP_NO_LIBCALL_RET
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
108 };
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
109
111
kono
parents: 67
diff changeset
110 typedef rtx (*by_pieces_constfn) (void *, HOST_WIDE_INT, scalar_int_mode);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
111
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
112 extern rtx emit_block_move (rtx, rtx, rtx, enum block_op_methods);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
113 extern rtx emit_block_move_hints (rtx, rtx, rtx, enum block_op_methods,
111
kono
parents: 67
diff changeset
114 unsigned int, HOST_WIDE_INT,
kono
parents: 67
diff changeset
115 unsigned HOST_WIDE_INT,
kono
parents: 67
diff changeset
116 unsigned HOST_WIDE_INT,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
117 unsigned HOST_WIDE_INT,
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
118 bool bail_out_libcall = false,
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
119 bool *is_move_done = NULL,
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
120 bool might_overlap = false);
111
kono
parents: 67
diff changeset
121 extern rtx emit_block_cmp_hints (rtx, rtx, rtx, tree, rtx, bool,
kono
parents: 67
diff changeset
122 by_pieces_constfn, void *);
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
123 extern bool emit_storent_insn (rtx to, rtx from);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
124
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
125 /* Copy all or part of a value X into registers starting at REGNO.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
126 The number of registers to be filled is NREGS. */
111
kono
parents: 67
diff changeset
127 extern void move_block_to_reg (int, rtx, int, machine_mode);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
128
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
129 /* Copy all or part of a BLKmode value X out of registers starting at REGNO.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
130 The number of registers to be filled is NREGS. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
131 extern void move_block_from_reg (int, rtx, int);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
132
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
133 /* Generate a non-consecutive group of registers represented by a PARALLEL. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
134 extern rtx gen_group_rtx (rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
135
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
136 /* Load a BLKmode value into non-consecutive registers represented by a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
137 PARALLEL. */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
138 extern void emit_group_load (rtx, rtx, tree, poly_int64);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
139
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
140 /* Similarly, but load into new temporaries. */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
141 extern rtx emit_group_load_into_temps (rtx, rtx, tree, poly_int64);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
142
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
143 /* Move a non-consecutive group of registers represented by a PARALLEL into
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
144 a non-consecutive group of registers represented by a PARALLEL. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
145 extern void emit_group_move (rtx, rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
146
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
147 /* Move a group of registers represented by a PARALLEL into pseudos. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
148 extern rtx emit_group_move_into_temps (rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
149
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
150 /* Store a BLKmode value from non-consecutive registers represented by a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
151 PARALLEL. */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
152 extern void emit_group_store (rtx, rtx, tree, poly_int64);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
153
111
kono
parents: 67
diff changeset
154 extern rtx maybe_emit_group_store (rtx, tree);
kono
parents: 67
diff changeset
155
kono
parents: 67
diff changeset
156 /* Mark REG as holding a parameter for the next CALL_INSN.
kono
parents: 67
diff changeset
157 Mode is TYPE_MODE of the non-promoted parameter, or VOIDmode. */
kono
parents: 67
diff changeset
158 extern void use_reg_mode (rtx *, rtx, machine_mode);
kono
parents: 67
diff changeset
159 extern void clobber_reg_mode (rtx *, rtx, machine_mode);
kono
parents: 67
diff changeset
160
kono
parents: 67
diff changeset
161 extern rtx copy_blkmode_to_reg (machine_mode, tree);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
162
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
163 /* Mark REG as holding a parameter for the next CALL_INSN. */
111
kono
parents: 67
diff changeset
164 static inline void
kono
parents: 67
diff changeset
165 use_reg (rtx *fusage, rtx reg)
kono
parents: 67
diff changeset
166 {
kono
parents: 67
diff changeset
167 use_reg_mode (fusage, reg, VOIDmode);
kono
parents: 67
diff changeset
168 }
kono
parents: 67
diff changeset
169
kono
parents: 67
diff changeset
170 /* Mark REG as clobbered by the call with FUSAGE as CALL_INSN_FUNCTION_USAGE. */
kono
parents: 67
diff changeset
171 static inline void
kono
parents: 67
diff changeset
172 clobber_reg (rtx *fusage, rtx reg)
kono
parents: 67
diff changeset
173 {
kono
parents: 67
diff changeset
174 clobber_reg_mode (fusage, reg, VOIDmode);
kono
parents: 67
diff changeset
175 }
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
176
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
177 /* Mark NREGS consecutive regs, starting at REGNO, as holding parameters
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
178 for the next CALL_INSN. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
179 extern void use_regs (rtx *, int, int);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
180
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
181 /* Mark a PARALLEL as holding a parameter for the next CALL_INSN. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
182 extern void use_group_regs (rtx *, rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
183
111
kono
parents: 67
diff changeset
184 #ifdef GCC_INSN_CODES_H
kono
parents: 67
diff changeset
185 extern rtx expand_cmpstrn_or_cmpmem (insn_code, rtx, rtx, rtx, tree, rtx,
kono
parents: 67
diff changeset
186 HOST_WIDE_INT);
kono
parents: 67
diff changeset
187 #endif
kono
parents: 67
diff changeset
188
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
189 /* Write zeros through the storage of OBJECT.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
190 If OBJECT has BLKmode, SIZE is its length in bytes. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
191 extern rtx clear_storage (rtx, rtx, enum block_op_methods);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
192 extern rtx clear_storage_hints (rtx, rtx, enum block_op_methods,
111
kono
parents: 67
diff changeset
193 unsigned int, HOST_WIDE_INT,
kono
parents: 67
diff changeset
194 unsigned HOST_WIDE_INT,
kono
parents: 67
diff changeset
195 unsigned HOST_WIDE_INT,
kono
parents: 67
diff changeset
196 unsigned HOST_WIDE_INT);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
197 /* The same, but always output an library call. */
111
kono
parents: 67
diff changeset
198 extern rtx set_storage_via_libcall (rtx, rtx, rtx, bool = false);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
199
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
200 /* Expand a setmem pattern; return true if successful. */
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
201 extern bool set_storage_via_setmem (rtx, rtx, rtx, unsigned int,
111
kono
parents: 67
diff changeset
202 unsigned int, HOST_WIDE_INT,
kono
parents: 67
diff changeset
203 unsigned HOST_WIDE_INT,
kono
parents: 67
diff changeset
204 unsigned HOST_WIDE_INT,
kono
parents: 67
diff changeset
205 unsigned HOST_WIDE_INT);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
206
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
207 /* Return nonzero if it is desirable to store LEN bytes generated by
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
208 CONSTFUN with several move instructions by store_by_pieces
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
209 function. CONSTFUNDATA is a pointer which will be passed as argument
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
210 in every CONSTFUN call.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
211 ALIGN is maximum alignment we can assume.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
212 MEMSETP is true if this is a real memset/bzero, not a copy
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
213 of a const string. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
214 extern int can_store_by_pieces (unsigned HOST_WIDE_INT,
111
kono
parents: 67
diff changeset
215 by_pieces_constfn,
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
216 void *, unsigned int, bool);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
217
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
218 /* Generate several move instructions to store LEN bytes generated by
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
219 CONSTFUN to block TO. (A MEM rtx with BLKmode). CONSTFUNDATA is a
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
220 pointer which will be passed as argument in every CONSTFUN call.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
221 ALIGN is maximum alignment we can assume.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
222 MEMSETP is true if this is a real memset/bzero, not a copy.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
223 Returns TO + LEN. */
111
kono
parents: 67
diff changeset
224 extern rtx store_by_pieces (rtx, unsigned HOST_WIDE_INT, by_pieces_constfn,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
225 void *, unsigned int, bool, memop_ret);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
226
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
227 /* Emit insns to set X from Y. */
111
kono
parents: 67
diff changeset
228 extern rtx_insn *emit_move_insn (rtx, rtx);
kono
parents: 67
diff changeset
229 extern rtx_insn *gen_move_insn (rtx, rtx);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
230
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
231 /* Emit insns to set X from Y, with no frills. */
111
kono
parents: 67
diff changeset
232 extern rtx_insn *emit_move_insn_1 (rtx, rtx);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
233
111
kono
parents: 67
diff changeset
234 extern rtx_insn *emit_move_complex_push (machine_mode, rtx, rtx);
kono
parents: 67
diff changeset
235 extern rtx_insn *emit_move_complex_parts (rtx, rtx);
kono
parents: 67
diff changeset
236 extern rtx read_complex_part (rtx, bool);
kono
parents: 67
diff changeset
237 extern void write_complex_part (rtx, rtx, bool);
kono
parents: 67
diff changeset
238 extern rtx read_complex_part (rtx, bool);
kono
parents: 67
diff changeset
239 extern rtx emit_move_resolve_push (machine_mode, rtx);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
240
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
241 /* Push a block of length SIZE (perhaps variable)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
242 and return an rtx to address the beginning of the block. */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
243 extern rtx push_block (rtx, poly_int64, int);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
244
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
245 /* Generate code to push something onto the stack, given its mode and type. */
111
kono
parents: 67
diff changeset
246 extern bool emit_push_insn (rtx, machine_mode, tree, rtx, unsigned int,
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
247 int, rtx, poly_int64, rtx, rtx, int, rtx, bool);
111
kono
parents: 67
diff changeset
248
kono
parents: 67
diff changeset
249 /* Extract the accessible bit-range from a COMPONENT_REF. */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
250 extern void get_bit_range (poly_uint64_pod *, poly_uint64_pod *, tree,
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
251 poly_int64_pod *, tree *);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
252
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
253 /* Expand an assignment that stores the value of FROM into TO. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
254 extern void expand_assignment (tree, tree, bool);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
255
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
256 /* Generate code for computing expression EXP,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
257 and storing the value into TARGET.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
258 If SUGGEST_REG is nonzero, copy the value through a register
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
259 and return that register, if that is possible. */
111
kono
parents: 67
diff changeset
260 extern rtx store_expr (tree, rtx, int, bool, bool);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
261
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
262 /* Given an rtx that may include add and multiply operations,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
263 generate them as insns and return a pseudo-reg containing the value.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
264 Useful after calling expand_expr with 1 as sum_ok. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
265 extern rtx force_operand (rtx, rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
266
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
267 /* Work horses for expand_expr. */
111
kono
parents: 67
diff changeset
268 extern rtx expand_expr_real (tree, rtx, machine_mode,
kono
parents: 67
diff changeset
269 enum expand_modifier, rtx *, bool);
kono
parents: 67
diff changeset
270 extern rtx expand_expr_real_1 (tree, rtx, machine_mode,
kono
parents: 67
diff changeset
271 enum expand_modifier, rtx *, bool);
kono
parents: 67
diff changeset
272 extern rtx expand_expr_real_2 (sepops, rtx, machine_mode,
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
273 enum expand_modifier);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
274
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
275 /* Generate code for computing expression EXP.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
276 An rtx for the computed value is returned. The value is never null.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
277 In the case of a void EXP, const0_rtx is returned. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
278 static inline rtx
111
kono
parents: 67
diff changeset
279 expand_expr (tree exp, rtx target, machine_mode mode,
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
280 enum expand_modifier modifier)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
281 {
111
kono
parents: 67
diff changeset
282 return expand_expr_real (exp, target, mode, modifier, NULL, false);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
283 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
284
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
285 static inline rtx
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
286 expand_normal (tree exp)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
287 {
111
kono
parents: 67
diff changeset
288 return expand_expr_real (exp, NULL_RTX, VOIDmode, EXPAND_NORMAL, NULL, false);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
289 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
290
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
291
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
292 /* Return the tree node and offset if a given argument corresponds to
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
293 a string constant. */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
294 extern tree string_constant (tree, tree *, tree *, tree *);
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
295
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
296 extern enum tree_code maybe_optimize_mod_cmp (enum tree_code, tree *, tree *);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
297
111
kono
parents: 67
diff changeset
298 /* Two different ways of generating switch statements. */
kono
parents: 67
diff changeset
299 extern int try_casesi (tree, tree, tree, tree, rtx, rtx, rtx, profile_probability);
kono
parents: 67
diff changeset
300 extern int try_tablejump (tree, tree, tree, tree, rtx, rtx, profile_probability);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
301
111
kono
parents: 67
diff changeset
302 extern int safe_from_p (const_rtx, tree, int);
kono
parents: 67
diff changeset
303
kono
parents: 67
diff changeset
304 /* Get the personality libfunc for a function decl. */
kono
parents: 67
diff changeset
305 rtx get_personality_function (tree);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
306
111
kono
parents: 67
diff changeset
307 /* Determine whether the LEN bytes can be moved by using several move
kono
parents: 67
diff changeset
308 instructions. Return nonzero if a call to move_by_pieces should
kono
parents: 67
diff changeset
309 succeed. */
kono
parents: 67
diff changeset
310 extern bool can_move_by_pieces (unsigned HOST_WIDE_INT, unsigned int);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
311
111
kono
parents: 67
diff changeset
312 extern unsigned HOST_WIDE_INT highest_pow2_factor (const_tree);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
313
111
kono
parents: 67
diff changeset
314 extern bool categorize_ctor_elements (const_tree, HOST_WIDE_INT *,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
315 HOST_WIDE_INT *, HOST_WIDE_INT *,
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
316 bool *);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
317
111
kono
parents: 67
diff changeset
318 extern void expand_operands (tree, tree, rtx, rtx*, rtx*,
kono
parents: 67
diff changeset
319 enum expand_modifier);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
320
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
321 /* rtl.h and tree.h were included. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
322 /* Return an rtx for the size in bytes of the value of an expr. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
323 extern rtx expr_size (tree);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
324
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
325 #endif /* GCC_EXPR_H */