]> git.ipfire.org Git - thirdparty/gcc.git/commit
[nvptx] Add nvptx_mach_vector_length, nvptx_mach_max_workers
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Jan 2019 15:08:36 +0000 (15:08 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Jan 2019 15:08:36 +0000 (15:08 +0000)
commitcbd24bbd1bde5cb0d6523e83e1309033c0381038
tree48bb70600a1e76eff608fa85c6316541c9992bf0
parent5e050f1064d1a43f64713446616ee2271ff479a6
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267558 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/nvptx/nvptx.c
gcc/config/nvptx/nvptx.h