[nvptx] Factor out populate_offload_attrs
authorTom de Vries <tdevries@suse.de>
Thu, 3 Jan 2019 15:08:25 +0000 (15:08 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 3 Jan 2019 15:08:25 +0000 (15:08 +0000)
commit2498a6abcc83bcad1d33249f9a15b32daade2595
treea02974b3531102b38cb1fd6946dd9484cf4ec424
parent4b1716079db6646bd77967bb383d2da1e375694f
[nvptx] Factor out populate_offload_attrs

Factor out populate_offload_attrs from nvptx_reorg.

2019-01-03  Tom de Vries  <tdevries@suse.de>

* config/nvptx/nvptx.c (struct offload_attrs): New.
(populate_offload_attrs): New function.  Factor mask extraction out of
nvptx_reorg.  Add extraction of dimensions.
(nvptx_reorg): Use populate_offload_attrs.

From-SVN: r267557
gcc/ChangeLog
gcc/config/nvptx/nvptx.c