aboutsummaryrefslogtreecommitdiff
path: root/gcc/optabs-query.h
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2018-01-02 18:25:45 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2018-01-02 18:25:45 +0000
commit3ea109a3479cdbbe8a47bf60b2d2d69072a1d51b (patch)
tree97ee41fba95472080036586c5de1b5d4ed707397 /gcc/optabs-query.h
parenta1d6c05238093d4de85dc18f825ba4f5e3a5746c (diff)
downloadgcc-3ea109a3479cdbbe8a47bf60b2d2d69072a1d51b.zip
gcc-3ea109a3479cdbbe8a47bf60b2d2d69072a1d51b.tar.gz
gcc-3ea109a3479cdbbe8a47bf60b2d2d69072a1d51b.tar.bz2
The vec_perm code falls back to doing byte-level permutes if element-level permutes aren't supported.
qimode_for_vec_perm The vec_perm code falls back to doing byte-level permutes if element-level permutes aren't supported. There were two copies of the code to calculate the mode, and later patches add another, so this patch splits it out into a helper function. 2018-01-02 Richard Sandiford <richard.sandiford@linaro.org> gcc/ * optabs-query.h (qimode_for_vec_perm): Declare. * optabs-query.c (can_vec_perm_p): Split out qimode search to... (qimode_for_vec_perm): ...this new function. * optabs.c (expand_vec_perm): Use qimode_for_vec_perm. From-SVN: r256089
Diffstat (limited to 'gcc/optabs-query.h')
-rw-r--r--gcc/optabs-query.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/optabs-query.h b/gcc/optabs-query.h
index 2701e25..ce0c401 100644
--- a/gcc/optabs-query.h
+++ b/gcc/optabs-query.h
@@ -174,6 +174,7 @@ enum insn_code can_extend_p (machine_mode, machine_mode, int);
enum insn_code can_float_p (machine_mode, machine_mode, int);
enum insn_code can_fix_p (machine_mode, machine_mode, int, bool *);
bool can_conditionally_move_p (machine_mode mode);
+opt_machine_mode qimode_for_vec_perm (machine_mode);
bool can_vec_perm_p (machine_mode, bool, vec_perm_indices *);
/* Find a widening optab even if it doesn't widen as much as we want. */
#define find_widening_optab_handler(A, B, C) \