Make targetm.get_mask_mode return an opt_mode
authorRichard Sandiford <richard.sandiford@linaro.org>
Tue, 5 Sep 2017 19:57:47 +0000 (19:57 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 5 Sep 2017 19:57:47 +0000 (19:57 +0000)
commit3981fbb65a43dff3a81ebc32c94d6f86bb4f9783
tree8affdf594e34f746a57a31d85951478c8b5be805
parent9da15d4097fa2fde5c2a5f1681db8fd04488a563
Make targetm.get_mask_mode return an opt_mode

...for consistency with mode_for_vector.

2017-09-05  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
* target.def (get_mask_mode): Change return type to opt_mode.
Expand commentary.
* doc/tm.texi: Regenerate.
* targhooks.h (default_get_mask_mode): Return an opt_mode.
* targhooks.c (default_get_mask_mode): Likewise.
* config/i386/i386.c (ix86_get_mask_mode): Likewise.
* optabs-query.c (can_vec_mask_load_store_p): Update use of
targetm.get_mask_mode.
* tree.c (build_truth_vector_type): Likewise.

From-SVN: r251731
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/doc/tm.texi
gcc/optabs-query.c
gcc/target.def
gcc/targhooks.c
gcc/targhooks.h
gcc/tree.c