diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-08-30 11:20:47 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2017-08-30 11:20:47 +0000 |
commit | 79d22165ea45e89283ccf147d65cbf66548838da (patch) | |
tree | 812a87db01df4c4e3e81d00d580cdff5c4ba3814 /gcc/machmode.h | |
parent | 005ba29c18d3f9a2c9a3dd40c6dee0b87ff504c5 (diff) | |
download | gcc-79d22165ea45e89283ccf147d65cbf66548838da.zip gcc-79d22165ea45e89283ccf147d65cbf66548838da.tar.gz gcc-79d22165ea45e89283ccf147d65cbf66548838da.tar.bz2 |
[74/77] Various small scalar_mode changes
This patch uses scalar_mode in a few miscellaneous places:
- Previous patches mean mode_to_vector can take a scalar_mode without
further changes.
- Implicit promotion is limited to scalar types (affects promote_mode
and sdbout_parms)
2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
Alan Hayward <alan.hayward@arm.com>
David Sherwood <david.sherwood@arm.com>
gcc/
* machmode.h (mode_for_vector): Take a scalar_mode instead
of a machine_mode.
* stor-layout.c (mode_for_vector): Likewise.
* explow.c (promote_mode): Use as_a <scalar_mode>.
* sdbout.c (sdbout_parms): Use is_a <scalar_mode>.
Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r251525
Diffstat (limited to 'gcc/machmode.h')
-rw-r--r-- | gcc/machmode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/machmode.h b/gcc/machmode.h index 5d84a2e..b3e79ca 100644 --- a/gcc/machmode.h +++ b/gcc/machmode.h @@ -650,7 +650,7 @@ extern machine_mode bitwise_mode_for_mode (machine_mode); /* Return a mode that is suitable for representing a vector, or BLKmode on failure. */ -extern machine_mode mode_for_vector (machine_mode, unsigned); +extern machine_mode mode_for_vector (scalar_mode, unsigned); /* A class for iterating through possible bitfield modes. */ class bit_field_mode_iterator |