aboutsummaryrefslogtreecommitdiff
path: root/gcc/machmode.h
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-10-07 14:36:38 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-10-07 14:36:38 +0000
commitbb67d9c7cef80c80e817cafdd9ee2001cb29c9f7 (patch)
tree2b9ac40e2ddfd76e458ab91dc73fbb371682b0f1 /gcc/machmode.h
parent767f865fb828fba54459911661d15289e1a42930 (diff)
downloadgcc-bb67d9c7cef80c80e817cafdd9ee2001cb29c9f7.zip
gcc-bb67d9c7cef80c80e817cafdd9ee2001cb29c9f7.tar.gz
gcc-bb67d9c7cef80c80e817cafdd9ee2001cb29c9f7.tar.bz2
machmode.h (mode_for_vector): Declare.
2010-10-07 Richard Guenther <rguenther@suse.de> * machmode.h (mode_for_vector): Declare. * stor-layout.c (mode_for_vector): New function, split out from ... (layout_type): ... here. * tree-vectorizer.h (current_vector_size): Declare. * tree-vect-stmts.c (perm_mask_for_reverse): Check if the mask vector type is available. (get_vectype_for_scalar_type): Rename to ... (get_vectype_for_scalar_type_and_size): ... this. Get a vector size argument. (get_vectype_for_scalar_type): New wrapper around get_vectype_for_scalar_type_and_size using current_vector_size. (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size. * tree-vect-loop.c (vect_analyze_loop_2): Split out core part of vect_analyze_loop here. (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3. * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size to autodetect. * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix V8SF to V8SI conversion builtin. From-SVN: r165116
Diffstat (limited to 'gcc/machmode.h')
-rw-r--r--gcc/machmode.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/machmode.h b/gcc/machmode.h
index 936a36e..3ab7a81 100644
--- a/gcc/machmode.h
+++ b/gcc/machmode.h
@@ -241,6 +241,11 @@ extern enum machine_mode smallest_mode_for_size (unsigned int,
extern enum machine_mode int_mode_for_mode (enum machine_mode);
+/* Return a mode that is suitable for representing a vector,
+ or BLKmode on failure. */
+
+extern enum machine_mode mode_for_vector (enum machine_mode, unsigned);
+
/* Find the best mode to use to access a bit field. */
extern enum machine_mode get_best_mode (int, int, unsigned int,