diff options
author | matz <matz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-25 13:33:54 +0000 |
---|---|---|
committer | matz <matz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-25 13:33:54 +0000 |
commit | 2c02962cf935ac329a5069f6721839c3c1a3d331 (patch) | |
tree | 21065dda4814644807909923e74947363f96ca60 /gcc/optabs.h | |
parent | 588e1cc345332f6d464f2de3aa43692535094ab5 (diff) | |
download | gcc-2c02962cf935ac329a5069f6721839c3c1a3d331.tar.gz |
* expr.h (struct separate_ops, sepops): New type for passing
around an exploded simple expression.
* optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
Use this structure instead of expression tree.
(get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
expression, only its type.
(expand_vec_cond_expr): Take type and individual operands instead
of full expression.
* optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
expand_vec_shift_expr): Change prototype accordingly.
* tree-vect-stmts.c (vectorizable_condition): Change call of
expand_vec_cond_expr_p to pass only type.
* expr.c (do_store_flags): Change prototype and implementation
to take an exploded expression.
(expand_expr_real_1): New local ops initialized with details
of the full expression. Use it instead of full
expression in calls to do_store_flags, expand_vec_cond_expr,
expand_widen_pattern_expr and expand_vec_shift_expr.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151079 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.h')
-rw-r--r-- | gcc/optabs.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/optabs.h b/gcc/optabs.h index 2cb8f676f3e..af3ea66de87 100644 --- a/gcc/optabs.h +++ b/gcc/optabs.h @@ -670,7 +670,7 @@ extern enum insn_code sync_lock_release[NUM_MACHINE_MODES]; /* Define functions given in optabs.c. */ -extern rtx expand_widen_pattern_expr (tree exp, rtx op0, rtx op1, rtx wide_op, +extern rtx expand_widen_pattern_expr (sepops ops, rtx op0, rtx op1, rtx wide_op, rtx target, int unsignedp); extern rtx expand_ternary_op (enum machine_mode mode, optab ternary_optab, @@ -772,10 +772,9 @@ extern bool expand_sfix_optab (rtx, rtx, convert_optab); bool expand_vec_cond_expr_p (tree, enum machine_mode); /* Generate code for VEC_COND_EXPR. */ -extern rtx expand_vec_cond_expr (tree, rtx); - +extern rtx expand_vec_cond_expr (tree, tree, tree, tree, rtx); /* Generate code for VEC_LSHIFT_EXPR and VEC_RSHIFT_EXPR. */ -extern rtx expand_vec_shift_expr (tree, rtx); +extern rtx expand_vec_shift_expr (sepops, rtx); #define optab_handler(optab,mode) (&(optab)->handlers[(int) (mode)]) #define convert_optab_handler(optab,mode,mode2) \ |