diff options
author | Richard Guenther <rguenther@suse.de> | 2007-02-05 21:38:53 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2007-02-05 21:38:53 +0000 |
commit | b95becfc098b8853f95c5302657c0b46ff575cb3 (patch) | |
tree | acd2d1f47d5813e7f9565319ed7b57c1c8a10607 /gcc/doc/tm.texi | |
parent | d6df67efcd64255f685a4556c20690f56315dad0 (diff) | |
download | gcc-b95becfc098b8853f95c5302657c0b46ff575cb3.zip gcc-b95becfc098b8853f95c5302657c0b46ff575cb3.tar.gz gcc-b95becfc098b8853f95c5302657c0b46ff575cb3.tar.bz2 |
tree-vectorizer.h (vectorizable_function): Add argument type argument, change return type.
2007-02-05 Richard Guenther <rguenther@suse.de>
* tree-vectorizer.h (vectorizable_function): Add argument type
argument, change return type.
* tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
* tree-vect-transform.c (vectorizable_function): Handle extra
argument, return vectorized function decl.
(build_vectorized_function_call): Remove.
(vectorizable_call): Handle calls with result and argument types
differing. Handle loop vectorization factor correctly.
* targhooks.c (default_builtin_vectorized_function): Adjust for
extra argument.
* targhooks.h (default_builtin_vectorized_function): Likewise.
* target.h (builtin_vectorized_function): Add argument type
argument.
* config/i386/i386.c (ix86_builtin_vectorized_function): Handle
extra argument, allow vectorizing of lrintf.
* doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
documentation of target hook.
* gcc.target/i386/vectorize3.c: New testcase.
From-SVN: r121617
Diffstat (limited to 'gcc/doc/tm.texi')
-rw-r--r-- | gcc/doc/tm.texi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index c9f6cb8..ebb3f2c 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -5384,11 +5384,12 @@ preserved (e.g. used only by a reduction computation). Otherwise, the @code{widen_mult_hi/lo} idioms will be used. @end deftypefn -@deftypefn {Target Hook} tree TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION (enum built_in_function @var{code}, tree @var{vec_type}) +@deftypefn {Target Hook} tree TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION (enum built_in_function @var{code}, tree @var{vec_type_out}, tree @var{vec_type_in}) This hook should return the decl of a function that implements the vectorized variant of the builtin function with builtin function code @var{code} or @code{NULL_TREE} if such a function is not available. The return type of -the vectorized function shall be of vector type @var{vec_type}. +the vectorized function shall be of vector type @var{vec_type_out} and the +argument types should be @var{vec_type_in}. @end deftypefn @node Anchored Addresses |