summaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2006-11-27 12:41:51 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2006-11-27 12:41:51 +0000
commit2505a3f233da445e15c2a5d6bdb82c7a6dd6a2d4 (patch)
tree9ec10231876edbe86522e49ba924fa140768debf /gcc/target.h
parent9fca6f972d71fb1b9bacdc99478b21faeb0db384 (diff)
downloadgcc-2505a3f233da445e15c2a5d6bdb82c7a6dd6a2d4.tar.gz
target.h (struct gcc_target): Add builtin_vectorized_function target hook.
2006-11-27 Richard Guenther <rguenther@suse.de> Zdenek Dvorak <dvorakz@suse.cz> * target.h (struct gcc_target): Add builtin_vectorized_function target hook. * target-def.h (TARGET_VECTORIZE): Likewise. * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Document new target hook. * targhooks.h (default_builtin_vectorized_function): Declare. * targhooks.c (default_builtin_vectorized_function): Define. * tree-vectorizer.h (stmt_vec_info_type): Add call_vec_info_type. (vectorizable_call): Declare. * tree-vect-analyze.c (vect_analyze_operations): Call vectorizable_call. * tree-vect-transform.c (vectorizable_function): New static function. (build_vectorized_function_call): Likewise. (vectorizable_call): New function. (vect_transform_stmt): Handle vectorizable calls. Co-Authored-By: Zdenek Dvorak <dvorakz@suse.cz> From-SVN: r119249
Diffstat (limited to 'gcc/target.h')
-rw-r--r--gcc/target.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h
index 82eaccdd551..1147142f2cf 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -370,6 +370,10 @@ struct gcc_target
function. */
tree (* builtin_mask_for_load) (void);
+ /* Returns a code for builtin that realizes vectorized version of
+ function, or NULL_TREE if not available. */
+ tree (* builtin_vectorized_function) (unsigned, tree);
+
/* Target builtin that implements vector widening multiplication.
builtin_mul_widen_eve computes the element-by-element products
for the even elements, and builtin_mul_widen_odd computes the