gcc/libgomp/plugin
Tobias Burnus 50be486dff nvptx: libgomp+mkoffload.cc: Prepare for reverse offload fn lookup
Add support to nvptx for reverse lookup of function name to prepare for
'omp target device(ancestor:1)'.

gcc/ChangeLog:

	* config/nvptx/mkoffload.cc (struct id_map): Add 'dim' member.
	(record_id): Store func name without quotes, store dim separately.
	(process): For GOMP_REQUIRES_REVERSE_OFFLOAD, check that -march is
	at least sm_35, create '$offload_func_table' global array and init
	with reverse-offload function addresses.
	* config/nvptx/nvptx.cc (write_fn_proto_1, write_fn_proto): New
	force_public attribute to force .visible.
	(nvptx_declare_function_name): For "omp target
	device_ancestor_nohost" attribut, force .visible/TREE_PUBLIC.

libgomp/ChangeLog:

	* plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
	function address table '$offload_func_table' if rev_fn_table
	is not NULL.
2022-09-09 17:58:02 +02:00
..
configfrag.ac libgomp nvptx plugin: Remove '--with-cuda-driver=[...]' etc. configuration option 2022-06-10 17:08:57 +02:00
cuda-lib.def Add OpenACC 2.6 `acc_get_property' support 2019-12-22 19:54:09 +00:00
Makefrag.am libgomp nvptx plugin: Remove '--with-cuda-driver=[...]' etc. configuration option 2022-06-10 17:08:57 +02:00
plugin-gcn.c GCN: libgomp+mkoffload.cc: Prepare for reverse offload fn lookup 2022-09-09 17:43:12 +02:00
plugin-nvptx.c nvptx: libgomp+mkoffload.cc: Prepare for reverse offload fn lookup 2022-09-09 17:58:02 +02:00