From b24d851fa7cad44fd130f4386f28062d6c395bb1 Mon Sep 17 00:00:00 2001 From: rguenth Date: Thu, 7 Oct 2010 14:34:44 +0000 Subject: 2010-10-07 Richard Guenther * 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: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165114 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/doc/tm.texi | 8 ++++---- gcc/doc/tm.texi.in | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'gcc/doc') diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index c686cbc99db..afa1971695e 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -5743,10 +5743,10 @@ the elements in the vectors should be of type @var{type}. @var{is_packed} parameter is true if the memory access is defined in a packed struct. @end deftypefn -@deftypefn {Target Hook} {unsigned int} TARGET_VECTORIZE_UNITS_PER_SIMD_WORD (enum machine_mode @var{mode}) -This hook should return th number of units in the vectors that the -vectorizer can produce for scalar mode @var{mode}. The default is -equal to @code{UNITS_PER_WORD}, because the vectorizer can do some +@deftypefn {Target Hook} {enum machine_mode} TARGET_VECTORIZE_PREFERRED_SIMD_MODE (enum machine_mode @var{mode}) +This hook should return the preferred mode for vectorizing scalar +mode @var{mode}. The default is +equal to @code{word_mode}, because the vectorizer can do some transformations even in absence of specialized @acronym{SIMD} hardware. @end deftypefn diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index 4c43fd535e8..8489027e41b 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -5741,10 +5741,10 @@ the elements in the vectors should be of type @var{type}. @var{is_packed} parameter is true if the memory access is defined in a packed struct. @end deftypefn -@hook TARGET_VECTORIZE_UNITS_PER_SIMD_WORD -This hook should return th number of units in the vectors that the -vectorizer can produce for scalar mode @var{mode}. The default is -equal to @code{UNITS_PER_WORD}, because the vectorizer can do some +@hook TARGET_VECTORIZE_PREFERRED_SIMD_MODE +This hook should return the preferred mode for vectorizing scalar +mode @var{mode}. The default is +equal to @code{word_mode}, because the vectorizer can do some transformations even in absence of specialized @acronym{SIMD} hardware. @end deftypefn -- cgit v1.2.1