poly_int: mode query functions
authorRichard Sandiford <richard.sandiford@linaro.org>
Sat, 16 Dec 2017 14:26:43 +0000 (14:26 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sat, 16 Dec 2017 14:26:43 +0000 (14:26 +0000)
commitb4d43553e9353de4fefb3a1fde1277eeb1bad7be
tree9ffc3f135f0fea7660029282f6928e0c8b706973
parentb4ddce3663ce151423f81c9e2a206df3081d1071
poly_int: mode query functions

This patch changes the bit size and vector count arguments to the
machmode.h functions from unsigned int to poly_uint64.

2017-12-16  Richard Sandiford  <richard.sandiford@linaro.org>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

gcc/
* machmode.h (mode_for_size, int_mode_for_size, float_mode_for_size)
(smallest_mode_for_size, smallest_int_mode_for_size): Take the mode
size as a poly_uint64.
(mode_for_vector, mode_for_int_vector): Take the number of vector
elements as a poly_uint64.
* stor-layout.c (mode_for_size, smallest_mode_for_size): Take the mode
size as a poly_uint64.
(mode_for_vector, mode_for_int_vector): Take the number of vector
elements as a poly_uint64.

Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r255747
gcc/ChangeLog
gcc/machmode.h
gcc/stor-layout.c