]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/nvptx/nvptx.c
[nvptx] Add nvptx_mach_vector_length, nvptx_mach_max_workers
authorTom de Vries <tdevries@suse.de>
Thu, 3 Jan 2019 15:08:36 +0000 (15:08 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 3 Jan 2019 15:08:36 +0000 (15:08 +0000)
commit0d06e8c794f37ded34e902ead35e7c70c3b112d1
tree48bb70600a1e76eff608fa85c6316541c9992bf0
parent2498a6abcc83bcad1d33249f9a15b32daade2595
[nvptx] Add nvptx_mach_vector_length, nvptx_mach_max_workers

The vector length and maximum number of workers are known compile-time.  Make
these easily available during code generation via new functions.

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

* config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
(init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
function.
* config/nvptx/nvptx.h (struct machine_function): Add axis_dims.

From-SVN: r267558
gcc/ChangeLog
gcc/config/nvptx/nvptx.c
gcc/config/nvptx/nvptx.h