libgomp/gcn: Prepare for reverse-offload callback handling
authorTobias Burnus <tobias@codesourcery.com>
Sat, 19 Nov 2022 09:36:27 +0000 (10:36 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Sat, 19 Nov 2022 09:36:27 +0000 (10:36 +0100)
commit8c05d8cd4300f74bf2698f0a6b96464b5be571be
tree0073b1875ad14dbadafb0c083eb34434c3ad0ff3
parentb1115dbfea4d6df51d608cece7416d658d2e2822
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.
libgomp/config/gcn/libgomp-gcn.h [new file with mode: 0644]
libgomp/config/gcn/target.c
libgomp/plugin/plugin-gcn.c