]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgomp/gcn: Prepare for reverse-offload callback handling
authorTobias Burnus <tobias@codesourcery.com>
Sat, 19 Nov 2022 17:06:04 +0000 (18:06 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Sat, 19 Nov 2022 17:06:04 +0000 (18:06 +0100)
commit27aad787b4e5a598c00b3eb946f81873063cc319
treee8a9a90d118059d7d7540fe03a36335613d0ec66
parent1e2e86107cf033161c0a2abfdcc2c757648ec939
libgomp/gcn: Prepare for reverse-offload callback handling

libgomp/ChangeLog:

* config/gcn/libgomp-gcn.h: New file; contains
struct output, declared previously in plugin-gcn.c.
* config/gcn/target.c: Include it.
(GOMP_ADDITIONAL_ICVS): Declare as extern var.
(GOMP_target_ext): Handle reverse offload.
* plugin/plugin-gcn.c: Include libgomp-gcn.h.
(struct kernargs): Replace struct def by the one
from libgomp-gcn.h for output_data.
(process_reverse_offload): New.
(console_output): Call it.

(cherry picked from commit 8c05d8cd4300f74bf2698f0a6b96464b5be571be)
libgomp/ChangeLog.omp
libgomp/config/gcn/libgomp-gcn.h [new file with mode: 0644]
libgomp/config/gcn/target.c
libgomp/plugin/plugin-gcn.c