diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2018-01-03 07:14:43 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2018-01-03 07:14:43 +0000 |
commit | 87133c45a06aa9c04cb6bc13b3b0733ec43efcec (patch) | |
tree | e981b33300b133082b80265cf8e61e5559203fa6 /gcc/targhooks.h | |
parent | 9d2f08ab97bea3c299cce96a0760904501e002dd (diff) | |
download | gcc-87133c45a06aa9c04cb6bc13b3b0733ec43efcec.zip gcc-87133c45a06aa9c04cb6bc13b3b0733ec43efcec.tar.gz gcc-87133c45a06aa9c04cb6bc13b3b0733ec43efcec.tar.bz2 |
poly_int: get_mask_mode
This patch makes TARGET_GET_MASK_MODE take polynomial nunits and
vector_size arguments. The gcc_assert in default_get_mask_mode
is now handled by the exact_div call in vector_element_size.
2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
Alan Hayward <alan.hayward@arm.com>
David Sherwood <david.sherwood@arm.com>
gcc/
* target.def (get_mask_mode): Take the number of units and length
as poly_uint64s rather than unsigned ints.
* targhooks.h (default_get_mask_mode): Update accordingly.
* targhooks.c (default_get_mask_mode): Likewise.
* config/i386/i386.c (ix86_get_mask_mode): Likewise.
* doc/tm.texi: Regenerate.
Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r256130
Diffstat (limited to 'gcc/targhooks.h')
-rw-r--r-- | gcc/targhooks.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/targhooks.h b/gcc/targhooks.h index e753e58..2535c96 100644 --- a/gcc/targhooks.h +++ b/gcc/targhooks.h @@ -109,7 +109,7 @@ default_builtin_support_vector_misalignment (machine_mode mode, int, bool); extern machine_mode default_preferred_simd_mode (scalar_mode mode); extern unsigned int default_autovectorize_vector_sizes (void); -extern opt_machine_mode default_get_mask_mode (unsigned, unsigned); +extern opt_machine_mode default_get_mask_mode (poly_uint64, poly_uint64); extern void *default_init_cost (struct loop *); extern unsigned default_add_stmt_cost (void *, int, enum vect_cost_for_stmt, struct _stmt_vec_info *, int, |