r267558 - in /trunk/gcc: ChangeLog config/nvptx...

vries@gcc.gnu.org vries@gcc.gnu.org
Thu Jan 3 15:08:00 GMT 2019


Author: vries
Date: Thu Jan  3 15:08:36 2019
New Revision: 267558

URL: https://gcc.gnu.org/viewcvs?rev=267558&root=gcc&view=rev
Log:
[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.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/nvptx/nvptx.c
    trunk/gcc/config/nvptx/nvptx.h



More information about the Gcc-cvs mailing list