diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-14 17:02:10 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-14 17:02:10 +0000 |
commit | 2101edf25a1a9267864cbba246b5aa5a99f7f2a2 (patch) | |
tree | 234df070889197d6478e55b7ed00545077288920 /gcc/doc | |
parent | 70fbcd6d73266a946403aeb71fedad9b97374065 (diff) | |
download | gcc-2101edf25a1a9267864cbba246b5aa5a99f7f2a2.tar.gz |
Turn UNITS_PER_SIMD_WORD into a target hook.
2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
* defaults.h (UNITS_PER_SIMD_WORD): Removed.
* config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
* config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
* config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
* config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
* config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
* target.def: Add units_per_simd_word to vectorize.
* targhooks.c (default_units_per_simd_word): New.
* targhooks.h (default_units_per_simd_word): Likewise.
* config/arm/arm.c (arm_units_per_simd_word): Likewise.
(TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
* config/mips/mips.c (mips_units_per_simd_word): Likewise.
(TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
* config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
(TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
* config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
(TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
* tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
* tree-vect-stmts.c (get_vectype_for_scalar_type): Replace
UNITS_PER_SIMD_WORD with targetm.vectorize.units_per_simd_word.
* system.h (UNITS_PER_SIMD_WORD): Poisoned.
* config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
* config/i386/i386.c (ix86_units_per_simd_word): Make it
static.
(TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
* doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
* doc/tm.texi: Regenerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164285 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/tm.texi | 14 | ||||
-rw-r--r-- | gcc/doc/tm.texi.in | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 91fbaf7a893..8e66da509df 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -995,13 +995,6 @@ Minimum number of units in a word. If this is undefined, the default is smallest value that @code{UNITS_PER_WORD} can have at run-time. @end defmac -@defmac UNITS_PER_SIMD_WORD (@var{mode}) -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 transformations even in absence of -specialized @acronym{SIMD} hardware. -@end defmac - @defmac POINTER_SIZE Width of a pointer, in bits. You must specify a value no wider than the width of @code{Pmode}. If it is not equal to the width of @code{Pmode}, @@ -5765,6 +5758,13 @@ 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 +transformations even in absence of specialized @acronym{SIMD} hardware. +@end deftypefn + @node Anchored Addresses @section Anchored Addresses @cindex anchored addresses diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index a180a56c9ab..d25ead1bd8f 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -995,13 +995,6 @@ Minimum number of units in a word. If this is undefined, the default is smallest value that @code{UNITS_PER_WORD} can have at run-time. @end defmac -@defmac UNITS_PER_SIMD_WORD (@var{mode}) -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 transformations even in absence of -specialized @acronym{SIMD} hardware. -@end defmac - @defmac POINTER_SIZE Width of a pointer, in bits. You must specify a value no wider than the width of @code{Pmode}. If it is not equal to the width of @code{Pmode}, @@ -5765,6 +5758,13 @@ 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 +transformations even in absence of specialized @acronym{SIMD} hardware. +@end deftypefn + @node Anchored Addresses @section Anchored Addresses @cindex anchored addresses |