From 2505a3f233da445e15c2a5d6bdb82c7a6dd6a2d4 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Mon, 27 Nov 2006 12:41:51 +0000 Subject: target.h (struct gcc_target): Add builtin_vectorized_function target hook. 2006-11-27 Richard Guenther Zdenek Dvorak * 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 From-SVN: r119249 --- gcc/targhooks.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/targhooks.h') diff --git a/gcc/targhooks.h b/gcc/targhooks.h index f6d50dd..5f63dd7 100644 --- a/gcc/targhooks.h +++ b/gcc/targhooks.h @@ -57,6 +57,8 @@ extern const char * default_invalid_within_doloop (rtx); extern bool default_narrow_bitfield (void); +extern tree default_builtin_vectorized_function (enum built_in_function, tree); + /* These are here, and not in hooks.[ch], because not all users of hooks.h include tm.h, and thus we don't have CUMULATIVE_ARGS. */ -- cgit v1.1