]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/brig/ChangeLog
Daily bump.
[thirdparty/gcc.git] / gcc / brig / ChangeLog
1 2020-08-03 Martin Jambor <mjambor@suse.cz>
2
3 * brigfrontend/brig-util.h (hsa_type_packed_p): Declared.
4 * brigfrontend/brig-util.cc (hsa_type_packed_p): Moved here from
5 removed gcc/hsa-common.c.
6 * brigfrontend/hsa-brig-format.h: New file.
7
8 2020-01-01 Jakub Jelinek <jakub@redhat.com>
9
10 Update copyright years.
11
12 2019-10-04 Joseph Myers <joseph@codesourcery.com>
13
14 * brig-lang.c (flag_isoc2x): New variable.
15
16 2019-08-23 Jakub Jelinek <jakub@redhat.com>
17
18 PR middle-end/91283
19 * brig-lang.c (brig_langhook_post_options): Set flag_excess_precision
20 instead of flag_excess_precision_cmdline.
21
22 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23
24 * brig-lang.c (brig_build_c_type_nodes): Accept "__intN__"
25 format of "__intN" types for SIZE_TYPE.
26
27 2019-05-16 Martin Sebor <msebor@redhat.com>
28
29 * brigfrontend/brig-control-handler.cc
30 (brig_directive_control_handler::operator): Remove trailing newline
31 from a diagnostic.
32 * brigfrontend/brig-module-handler.cc
33 (brig_directive_module_handler::operator): Remove a duplicated space
34 from a diagnostic.
35
36 2019-01-01 Jakub Jelinek <jakub@redhat.com>
37
38 Update copyright years.
39
40 2018-10-17 David Malcolm <dmalcolm@redhat.com>
41
42 * Make-lang.in (selftest-brig): New.
43
44 2018-07-20 Martin Sebor <msebor@redhat.com>
45
46 PR middle-end/82063
47 * brig-lang.c (brig_langhook_handle_option): Change function
48 argument to HOST_WIDE_INT.
49
50 2018-07-04 Martin Jambor <mjambor@suse.cz>
51
52 PR hsa/86371
53 * Make-lang.in (BRIGINCLUDES): Remove erroneous include path in $HOME.
54
55 2018-06-28 Martin Liska <mliska@suse.cz>
56
57 * brigspec.c: Add missing header file inclusion.
58
59 2018-06-08 David Malcolm <dmalcolm@redhat.com>
60
61 * brigfrontend/brig-to-generic.cc
62 (brig_to_generic::write_globals): Use TDF_NONE rather than 0.
63 (dump_function): Likewise.
64
65 2018-05-18 Richard Sandiford <richard.sandiford@linaro.org>
66
67 * brigfrontend/brig-function.cc
68 (brig_function::get_builtin_for_hsa_opcode): Use BUILT_IN_FMA
69 for BRIG_OPCODE_FMA.
70 (brig_function::get_tree_code_for_hsa_opcode): Treat BUILT_IN_FMA
71 as a call.
72
73 2018-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
74
75 * brigfrontend/brig-basic-inst-handler.cc: Fix handling of NOPs.
76
77 2018-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
78
79 Add flag -fassume-phsa that is on by default. If -fno-assume-phsa
80 is given, these optimizations are disabled. With this flag, gccbrig
81 can generate GENERIC that assumes we are targeting a phsa-runtime
82 based implementation, which allows us to expose the work-item context
83 accesses to retrieve WI IDs etc. which helps optimizers.
84 First optimization that takes advantage of this is to get rid of
85 the setworkitemid calls whenever we have non-inlined calls that
86 use IDs internally. Other optimizations added in this commit:
87 - expand absoluteid to similar level of simplicity as workitemid.
88 At the moment absoluteid is the best indexing ID to end up with
89 WG vectorization.
90 - propagate ID variables closer to their uses. This is mainly
91 to avoid known useless casts, which confuse at least scalar
92 evolution analysis.
93 - use signed long long for storing IDs. Unsigned integers have
94 defined wraparound semantics, which confuse at least scalar
95 evolution analysis, leading to unvectorizable WI loops.
96 - also refactor some BRIG function generation helpers to brig_function.
97 - no point in having the wi-loop as a for-loop. It's really
98 a do...while and SCEV can analyze it just fine still.
99 - add consts to ptrs etc. in BRIG builtin defs.
100 Improves optimization opportunities.
101 - add qualifiers to generated function parameters.
102 Const and restrict on the hidden local/private pointers,
103 the arg buffer and the context pointer help some optimizations.
104 * brigfrontend/brig-basic-inst-handler.cc: See above.
105 * brigfrontend/brig-branch-inst-handler.cc: See above.
106 * brigfrontend/brig-cmp-inst-handler.cc: See above.
107 * brigfrontend/brig-code-entry-handler.cc: See above.
108 * brigfrontend/brig-code-entry-handler.h: See above.
109 * brigfrontend/brig-control-handler.cc: See above.
110 * brigfrontend/brig-cvt-inst-handler.cc: See above.
111 * brigfrontend/brig-function-handler.cc: See above.
112 * brigfrontend/brig-function.cc: See above.
113 * brigfrontend/brig-function.h: See above.
114 * brigfrontend/brig-label-handler.cc: See above.
115 * brigfrontend/brig-lane-inst-handler.cc: See above.
116 * brigfrontend/brig-mem-inst-handler.cc: See above.
117 * brigfrontend/phsa.h: See above.
118 * lang.opt: See above.
119
120 2018-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
121
122 * brigfrontend/brig-function-handler.cc: Skip multiple forward
123 declarations of the same function.
124
125 2018-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
126
127 * brig-lang.c: Do not allow optimizations based on known C
128 builtins.
129
130 2018-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
131
132 * brig-lang.c: Allow controlling strict aliasing from
133 cmd line.
134
135 2018-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
136
137 * brigfrontend/brig-code-entry-handler.cc: The modulo in
138 ID computation should not be needed.
139
140 2018-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
141
142 * brig-lang.c: Add support for whole program
143 optimizations by marking the kernels externally visible.
144 * brigfrontend/brig-branch-inst-handler.cc: See above.
145 * brigfrontend/brig-function-handler.cc: See above.
146 * brigfrontend/brig-function.cc: See above.
147 * brigfrontend/brig-to-generic.cc: See above.
148 * brigfrontend/brig-to-generic.h: See above.
149 * brigfrontend/brig-variable-handler.h: See above.
150
151 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
152 Alan Hayward <alan.hayward@arm.com>
153 David Sherwood <david.sherwood@arm.com>
154
155 * brigfrontend/brig-to-generic.cc (get_unsigned_int_type): Handle
156 polynomial TYPE_VECTOR_SUBPARTS.
157 * brigfrontend/brig-util.h (gccbrig_type_vector_subparts): Likewise.
158
159 2018-01-03 Jakub Jelinek <jakub@redhat.com>
160
161 Update copyright years.
162
163 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
164 Alan Hayward <alan.hayward@arm.com>
165 David Sherwood <david.sherwood@arm.com>
166
167 * brigfrontend/brig-util.h (gccbrig_type_vector_subparts): New
168 function.
169 * brigfrontend/brig-basic-inst-handler.cc
170 (brig_basic_inst_handler::build_shuffle): Use it instead of
171 TYPE_VECTOR_SUBPARTS.
172 (brig_basic_inst_handler::build_unpack): Likewise.
173 (brig_basic_inst_handler::build_pack): Likewise.
174 (brig_basic_inst_handler::build_unpack_lo_or_hi): Likewise.
175 (brig_basic_inst_handler::operator ()): Likewise.
176 (brig_basic_inst_handler::build_lower_element_broadcast): Likewise.
177 * brigfrontend/brig-code-entry-handler.cc
178 (brig_code_entry_handler::get_tree_cst_for_hsa_operand): Likewise.
179 (brig_code_entry_handler::get_comparison_result_type): Likewise.
180 (brig_code_entry_handler::expand_or_call_builtin): Likewise.
181
182 2017-12-15 Jakub Jelinek <jakub@redhat.com>
183
184 * brig-lang.c (brig_attribute_table): Swap affects_type_identity
185 and handler fields, adjust comments.
186
187 2017-12-08 Jakub Jelinek <jakub@redhat.com>
188
189 * brig-lang.c (brig_attribute_table): Fix up comment.
190
191 2017-11-28 Jakub Jelinek <jakub@redhat.com>
192
193 * brigfrontend/brig-branch-inst-handler.cc
194 (brig_branch_inst_handler::operator): Build SWITCH_EXPR using build2
195 instead of build3.
196
197 2017-11-17 Henry Linjamäki <henry.linjamaki@parmance.com>
198
199 * brigfrontend/brig-util.cc: Fix sprintf format string type mismatch
200 on 32b machines.
201
202 2017-11-16 Henry Linjamäki <henry.linjamaki@parmance.com>
203
204 Change internal representation of HSA registers. Instead
205 representing HSA's untyped registers as unsigned int the gccbrig
206 analyzes brig code and builds the register variables as a type
207 used in tree expressions at most. This gives better chance to
208 optimize CONVERT_VIEW_EXPRs away.
209 * brigfrontend/brig-code-entry-handler.cc: Add analysis method for
210 register type usage. Handle any-typed register variables.
211 * brigfrontend/brig-code-entry-handler.h: New declarations for the
212 above.
213 * brigfrontend/brig-copy-move-inst-handler.cc: Handle any-typed
214 register variables.
215 * brigfrontend/brig-cvt-inst-handler.cc: Likewise.
216 * brigfrontend/brig-function.cc: Build register variables as a
217 type based on results of analysis phase.
218 * brigfrontend/brig-function.h: Move HSA register count defines to
219 brig-utils.h.
220 * brigfrontend/brig-to-generic.cc: New analysis handler. Analyze
221 HSA register usage.
222 * brigfrontend/brig-to-generic.h: New declarations.
223 * brigfrontend/brig-util.cc: New utility functions.
224 * brigfrontend/brig-util.h: New declarations for the above.
225
226 2017-11-16 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
227
228 * gccbrig.texi: Added some documentation.
229
230 2017-10-31 Henry Linjamäki <henry.linjamaki@parmance.com>
231
232 * brig-lang.c (brig_langhook_type_for_mode): Fix PR 82771.
233
234 2017-10-23 Richard Sandiford <richard.sandiford@linaro.org>
235
236 * brig-lang.c (brig_langhook_type_for_mode): Use scalar_int_mode
237 and scalar_float_mode.
238
239 2017-10-09 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
240
241 * brigfrontend/brig-to-generic.cc: Support BRIG_KIND_NONE
242 directives. These directives are legal everywhere. They
243 can be used to patch away BRIG entries at the binary level.
244 Also add extra error detection for zeroed regions: make sure
245 the byteCount field is never zero.
246 * brigfrontend/phsa.h: Added a new error prefix for
247 errors which are due to corrupted BRIG modules.
248
249 2017-10-09 Henry Linjamäki <henry.linjamaki@parmance.com>
250
251 * brigfrontend/brig-branch-inst-handler.cc: The call code
252 still failed a few test cases. Now all PRM cases pass again.
253
254 2017-10-03 Henry Linjamäki <henry.linjamaki@parmance.com>
255
256 * brigfrontend/brig-branch-inst-handler.cc: Fix (more) crash with
257 calls with more than 4 args. It missed a reference which is required
258 because vector expansion can move the object to another location.
259
260 2017-09-29 Henry Linjamäki <henry.linjamaki@parmance.com>
261
262 * brigfrontend/brig-branch-inst-handler.cc: Fix crash with
263 calls with more than 4 args. Also fix a misexecution issue
264 with kernels that have both unexpanded ID functions and
265 calls to subfunctions.
266
267 2017-09-28 Henry Linjamäki <henry.linjamaki@parmance.com>
268
269 * brig-lang.c: Added function attributes and their handlers.
270 Make BRIGFE 3-level optimize by default.
271
272 2017-09-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
273
274 * brig-lang.c: Improved support for function and module scope
275 group segment variables. PRM specs defines function and module
276 scope group segment variables as an experimental feature. However,
277 PRM test suite uses and hcc relies on them. In addition, hcc
278 assumes certain group variable layout in its dynamic group segment
279 allocation code. We cannot have global group memory offsets if we
280 want to both have kernel-specific group segment size and multiple
281 kernels calling the same functions that use function scope group memory
282 variables. Now group segment is handled by separate book keeping of
283 module scope and function (kernel) offsets. Each function has a "frame"
284 in the group segment offset to which is given as an argument.
285 * brigfrontend/brig-branch-inst-handler.cc: See above.
286 * brigfrontend/brig-code-entry-handler.cc: See above.
287 * brigfrontend/brig-fbarrier-handler.cc: See above.
288 * brigfrontend/brig-function-handler.cc: See above.
289 * brigfrontend/brig-function.cc: See above.
290 * brigfrontend/brig-function.h: See above.
291 * brigfrontend/brig-to-generic.cc: See above.
292 * brigfrontend/brig-to-generic.h: See above.
293 * brigfrontend/brig-util.cc: See above.
294 * brigfrontend/brig-util.h: See above.
295 * brigfrontend/brig-variable-handler.cc: See above.
296
297 2017-09-25 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
298
299 * brigfrontend/brig-to-generic.cc: Ensure per WI copies of
300 private variables are aligned too.
301
302 2017-09-17 Thomas Schwinge <thomas@codesourcery.com>
303
304 * Make-lang.in (GO_TEXI_FILES): Rename to...
305 (BRIG_TEXI_FILES): ... this.
306 (doc/gccbrig.info, doc/gccbrig.dvi, doc/gccbrig.pdf, brig.info)
307 (brig.srcinfo, brig.man, brig.srcman, brig.install-man)
308 ($(DESTDIR)$(man1dir)/$(GCCBRIG_INSTALL_NAME)$(man1ext)):
309 Uncomment/enable targets.
310 (gccbrig.pod): New target.
311 * gccbrig.texi: New file.
312
313 2017-08-04 Henry Linjamäki <henry.linjamaki@parmance.com>
314
315 Fix PR 81713
316 * brigfrontend/brig-basic-inst-handler.cc: replace build_int_cst with
317 bitsize_int in building BIT_FIELD_REF.
318 * brigfrontend/brig-code-entry-handler.cc: likewise.
319
320 2017-07-05 Richard Sandiford <richard.sandiford@linaro.org>
321 Alan Hayward <alan.hayward@arm.com>
322 David Sherwood <david.sherwood@arm.com>
323
324 * brig-c.h (brig_type_for_mode): Remove "enum" before "machine_mode".
325 * brig-lang.c (brig_langhook_type_for_mode): Likewise.
326
327 2017-07-04 Jakub Jelinek <jakub@redhat.com>
328
329 * brigfrontend/brig-function.cc: Include profile-count.h.
330 * brigfrontend/brig-to-generic.cc: Likewise.
331
332 2017-05-18 Thomas Schwinge <thomas@codesourcery.com>
333
334 * brigfrontend/brig-to-generic.h (class brig_to_generic): Use
335 "dump_flags_t" for "m_dump_flags" member.
336
337 2017-05-13 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
338
339 * brigfrontend/brig-code-entry-handler.cc
340 (brig_code_entry_handler::build_address_operand): Fix
341 an assertion when doing an 'lda' of a private array
342 offset.
343
344 2017-05-03 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
345
346 * brigfrontend/brig-code-entry-handler.cc
347 (brig_code_entry_handler::build_address_operand): Fix a bug
348 with reg+offset addressing on 32b segments. In large mode,
349 the offset is treated as 32bits unless it's global, readonly or
350 kernarg address space.
351
352 2016-02-01 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
353
354 * brigfrontend/brig-code-entry-handler.cc: fix address
355 expressions which refer only to offset 0, but nothing else.
356 * brigfrontend/brig-lane-inst-handler.cc: fix
357 activelanepermute_b64 HSAIL instruction.
358 * brigfrontend/brig-to-generic.cc: remove useless c_str()
359 call. Add missing va_end (). Fix PR79250.
360
361 2017-01-30 Jakub Jelinek <jakub@redhat.com>
362
363 * brigfrontend/brig-code-entry-handler.cc
364 (brig_code_entry_handler::get_tree_cst_for_hsa_operand): For %lu
365 cast size_t arguments to unsigned long.
366
367 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
368
369 * config-lang.in: Removed stale target-libbrig reference.
370
371 2017-01-26 Jakub Jelinek <jakub@redhat.com>
372
373 Update copyright years.
374
375 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
376 Martin Jambor <mjambor@suse.cz>
377
378 * Make-lang.in: New file.
379 * brig-builtins.h: Likewise.
380 * brig-c.h: Likewise.
381 * brig-lang.c: Likewise.
382 * brigspec.c: Likewise.
383 * config-lang.in: Likewise.
384 * lang-specs.h: Likewise.
385 * lang.opt: Likewise.
386 * brigfrontend/brig-arg-block-handler.cc: Likewise.
387 * brigfrontend/brig-atomic-inst-handler.cc: Likewise.
388 * brigfrontend/brig-basic-inst-handler.cc: Likewise.
389 * brigfrontend/brig-branch-inst-handler.cc: Likewise.
390 * brigfrontend/brig-cmp-inst-handler.cc: Likewise.
391 * brigfrontend/brig-code-entry-handler.cc: Likewise.
392 * brigfrontend/brig-code-entry-handler.h: Likewise.
393 * brigfrontend/brig-comment-handler.cc: Likewise.
394 * brigfrontend/brig-control-handler.cc: Likewise.
395 * brigfrontend/brig-copy-move-inst-handler.cc: Likewise.
396 * brigfrontend/brig-cvt-inst-handler.cc: Likewise.
397 * brigfrontend/brig-fbarrier-handler.cc: Likewise.
398 * brigfrontend/brig-function-handler.cc: Likewise.
399 * brigfrontend/brig-function.cc: Likewise.
400 * brigfrontend/brig-function.h: Likewise.
401 * brigfrontend/brig-inst-mod-handler.cc: Likewise.
402 * brigfrontend/brig-label-handler.cc: Likewise.
403 * brigfrontend/brig-lane-inst-handler.cc: Likewise.
404 * brigfrontend/brig-machine.c: Likewise.
405 * brigfrontend/brig-machine.h: Likewise.
406 * brigfrontend/brig-mem-inst-handler.cc: Likewise.
407 * brigfrontend/brig-module-handler.cc: Likewise.
408 * brigfrontend/brig-queue-inst-handler.cc: Likewise.
409 * brigfrontend/brig-seg-inst-handler.cc: Likewise.
410 * brigfrontend/brig-signal-inst-handler.cc: Likewise.
411 * brigfrontend/brig-to-generic.cc: Likewise.
412 * brigfrontend/brig-to-generic.h: Likewise.
413 * brigfrontend/brig-util.cc: Likewise.
414 * brigfrontend/brig-util.h: Likewise.
415 * brigfrontend/brig-variable-handler.cc: Likewise.
416 * brigfrontend/phsa.h: Likewise.