aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.h
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2019-05-20 10:33:54 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2019-05-20 10:33:54 +0000
commitebd733a78ccf5792067e94852c6c81a5f9aa0020 (patch)
tree1879ede8a51660683068c0a909702bb2649889bb /gcc/fold-const.h
parentf63445e56c265757ebd50dc12fcd01773341b49f (diff)
downloadgcc-ebd733a78ccf5792067e94852c6c81a5f9aa0020.zip
gcc-ebd733a78ccf5792067e94852c6c81a5f9aa0020.tar.gz
gcc-ebd733a78ccf5792067e94852c6c81a5f9aa0020.tar.bz2
gimple-match-head.c: Include vec-perm-indices.h.
2019-05-20 Richard Biener <rguenther@suse.de> * gimple-match-head.c: Include vec-perm-indices.h. * generic-match-head.c: Likewise. * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h is included. * fold-const.c (fold_vec_perm): Export. (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR... (match.pd): ...here. From-SVN: r271404
Diffstat (limited to 'gcc/fold-const.h')
-rw-r--r--gcc/fold-const.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/fold-const.h b/gcc/fold-const.h
index 049fee9..c4b7cbf 100644
--- a/gcc/fold-const.h
+++ b/gcc/fold-const.h
@@ -100,6 +100,9 @@ extern tree fold_bit_and_mask (tree, tree, enum tree_code,
tree, enum tree_code, tree, tree,
tree, enum tree_code, tree, tree, tree *);
extern tree fold_read_from_constant_string (tree);
+#if GCC_VEC_PERN_INDICES_H
+extern tree fold_vec_perm (tree, tree, tree, const vec_perm_indices &);
+#endif
extern bool wide_int_binop (wide_int &res, enum tree_code,
const wide_int &arg1, const wide_int &arg2,
signop, wi::overflow_type *);