plugin-nvptx.c (struct targ_fn_descriptor): Move later.
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 20 Jul 2015 16:17:57 +0000 (16:17 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 20 Jul 2015 16:17:57 +0000 (16:17 +0000)
commitf3e9a059a74680325960aa3e6ebc629773c9e1f8
treed943e685a9d726c7ca9ffc74b7209156415e10fc
parentdd5bc4becd7763fe34c80c944dd1597f02bbcd62
plugin-nvptx.c (struct targ_fn_descriptor): Move later.

* plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
(struct ptx_image_data): Move earlier, add fns field.
(struct ptx_device): Add images and image_lock fields.
(ptx_images, ptx_image_lock): Delete.
(nvptx_open_device): Initialize images and image_lock fields.
(nvptx_close_device): Destroy image_lock.
(GOMP_OFFLOAD_load_image): Register image to device-specific fields.
(GOMP_OFFLOAD_unload_image): Unregister image from device-specific
fields.

From-SVN: r226004
libgomp/ChangeLog
libgomp/plugin/plugin-nvptx.c