diff options
author | Richard Guenther <rguenther@suse.de> | 2010-10-07 14:34:44 +0000 |
---|---|---|
committer | Richard Guenther <rguenther@suse.de> | 2010-10-07 14:34:44 +0000 |
commit | 07088f2df5755481fa597e2d8df8fd2cf65a3135 (patch) | |
tree | e369542c279196e8b7be20440bc887cf9eed16f3 /gcc/targhooks.c | |
parent | 5dd444f0d7252b7425f1203ea47cf2fc45711c3b (diff) |
2010-10-07 Richard Guenther <rguenther@suse.de>
* target.def (units_per_simd_word): Rename to ...
(preferred_simd_mode): ... this. Return mode instead of size.
* targhooks.c (default_units_per_simd_word): Rename to ...
(default_preferred_simd_mode): ... this. Return word_mode.
* targhooks.h (default_preferred_simd_mode): Declare.
* config/arm/arm.c (arm_units_per_simd_word): Rename to ...
(arm_preferred_simd_mode): ... this. Re-implement.
* config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
(ix86_preferred_simd_mode): ... this. Re-implement.
* config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
(sparc_preferred_simd_mode): ... this. Re-implement.
* config/mips/mips.c (mips_units_per_simd_word): Rename to ...
(mips_preferred_simd_mode): ... this. Re-implement.
* config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
(rs6000_preferred_simd_mode): ... this. Re-implement.
* tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
* doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
(TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
* doc/tm.texi: Update.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@165114 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/targhooks.c')
-rw-r--r-- | gcc/targhooks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/targhooks.c b/gcc/targhooks.c index 5a36f0eadfc..0a65b2acc92 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -979,10 +979,10 @@ default_builtin_support_vector_misalignment (enum machine_mode mode, /* By default, only attempt to parallelize bitwise operations, and possibly adds/subtracts using bit-twiddling. */ -unsigned int -default_units_per_simd_word (enum machine_mode mode ATTRIBUTE_UNUSED) +enum machine_mode +default_preferred_simd_mode (enum machine_mode mode ATTRIBUTE_UNUSED) { - return UNITS_PER_WORD; + return word_mode; } /* Determine whether or not a pointer mode is valid. Assume defaults |