Home
last modified time | relevance | path

Searched refs:PLUS_EXPR (Results 1 – 25 of 184) sorted by relevance

12345678

/openbsd-src/gnu/gcc/gcc/
H A Dtree-ssa-address.c272 addr_off = fold_build2 (PLUS_EXPR, sizetype, addr_off, act_elem); in tree_mem_ref_addr()
280 addr_off = fold_build2 (PLUS_EXPR, sizetype, addr_off, offset); in tree_mem_ref_addr()
289 addr = fold_build2 (PLUS_EXPR, type, addr_base, addr); in tree_mem_ref_addr()
441 parts->base = fold_build2 (PLUS_EXPR, type, in add_to_parts()
491 mult_elt = fold_build2 (PLUS_EXPR, sizetype, mult_elt, elt); in most_expensive_mult_to_index()
608 fold_build2 (PLUS_EXPR, addr_type, in create_mem_ref()
634 fold_build2 (PLUS_EXPR, atype, in create_mem_ref()
655 fold_build2 (PLUS_EXPR, atype, in create_mem_ref()
719 addr.offset = fold_binary_to_constant (PLUS_EXPR, sizetype, in maybe_fold_tmr()
741 addr.offset = fold_binary_to_constant (PLUS_EXPR, sizetype, in maybe_fold_tmr()
H A Dc-omp.c185 case PLUS_EXPR: in check_omp_for_incr_expr()
188 return fold_build2 (PLUS_EXPR, TREE_TYPE (exp), t, TREE_OPERAND (exp, 1)); in check_omp_for_incr_expr()
191 return fold_build2 (PLUS_EXPR, TREE_TYPE (exp), TREE_OPERAND (exp, 0), t); in check_omp_for_incr_expr()
338 if (TREE_CODE (TREE_OPERAND (incr, 1)) == PLUS_EXPR in c_finish_omp_for()
351 t = build2 (PLUS_EXPR, TREE_TYPE (decl), decl, t); in c_finish_omp_for()
H A Dstor-layout.c553 return size_binop (PLUS_EXPR, bitpos, in bit_from_pos()
562 return size_binop (PLUS_EXPR, offset, in byte_from_pos()
594 = size_binop (PLUS_EXPR, *poffset, in normalize_offset()
921 = size_binop (PLUS_EXPR, rli->offset, in place_field()
1055 = size_binop (PLUS_EXPR, rli->bitpos, in place_field()
1080 = size_binop (PLUS_EXPR, rli->bitpos, in place_field()
1193 = size_binop (PLUS_EXPR, rli->offset, in place_field()
1198 = size_binop (PLUS_EXPR, rli->offset, DECL_SIZE_UNIT (field)); in place_field()
1204 rli->bitpos = size_binop (PLUS_EXPR, rli->bitpos, DECL_SIZE (field)); in place_field()
1212 rli->bitpos = size_binop (PLUS_EXPR, rli->bitpos, in place_field()
[all …]
H A Dtree-mudflap.c667 fold_build2 (PLUS_EXPR, integer_type_node, in mf_build_check_statement_for()
824 addr = fold_build2 (PLUS_EXPR, ptr_type_node, in mf_xform_derefs_1()
832 fold_build2 (PLUS_EXPR, mf_uintptr_type, in mf_xform_derefs_1()
843 fold_build2 (PLUS_EXPR, ptr_type_node, base, size), in mf_xform_derefs_1()
851 fold_build2 (PLUS_EXPR, ptr_type_node, base, size), in mf_xform_derefs_1()
875 size = size_binop (PLUS_EXPR, size, rem); in mf_xform_derefs_1()
881 addr = fold_build2 (PLUS_EXPR, ptr_type_node, addr, ofs); in mf_xform_derefs_1()
885 fold_build2 (PLUS_EXPR, ptr_type_node, base, size), in mf_xform_derefs_1()
H A Dfold-const.c1088 case PLUS_EXPR: in negate_expr_p()
1183 return fold_build2 (PLUS_EXPR, type, TREE_OPERAND (t, 0), in fold_negate_expr()
1217 case PLUS_EXPR: in fold_negate_expr()
1417 && ((code == PLUS_EXPR && TREE_CODE (in) == MINUS_EXPR) in split_tree()
1418 || (code == MINUS_EXPR && TREE_CODE (in) == PLUS_EXPR)))) in split_tree()
1489 if (code == PLUS_EXPR) in associate_trees()
1572 case PLUS_EXPR: in int_const_binop()
1729 case PLUS_EXPR: in const_binop()
1810 case PLUS_EXPR: in const_binop()
1821 imag = const_binop (PLUS_EXPR, in const_binop()
[all …]
H A Dtree-ssa-loop-niter.c242 fold_build2 (PLUS_EXPR, type, in number_of_iterations_lt_to_ne()
252 bound = fold_build2 (PLUS_EXPR, type, in number_of_iterations_lt_to_ne()
273 *delta = fold_build2 (PLUS_EXPR, niter_type, *delta, mod); in number_of_iterations_lt_to_ne()
330 bound = fold_build2 (PLUS_EXPR, type, in assert_no_overflow_lt()
367 bound = fold_build2 (PLUS_EXPR, type, in assert_loop_rolls_lt()
380 diff = fold_build2 (PLUS_EXPR, type, in assert_loop_rolls_lt()
385 bound = fold_build2 (PLUS_EXPR, type, in assert_loop_rolls_lt()
487 delta = fold_build2 (PLUS_EXPR, niter_type, delta, s); in number_of_iterations_lt()
527 iv1->base = fold_build2 (PLUS_EXPR, type, in number_of_iterations_le()
765 && !((TREE_CODE (e) == PLUS_EXPR in expand_simple_operations()
[all …]
H A Dtree-complex.c234 case PLUS_EXPR: in init_dont_simulate_again()
293 case PLUS_EXPR: in complex_visit_stmt()
997 ri = gimplify_build2 (bsi, PLUS_EXPR, inner_type, t3, t4); in expand_complex_multiplication()
1022 div = gimplify_build2 (bsi, PLUS_EXPR, inner_type, t1, t2); in expand_complex_div_straight()
1026 t3 = gimplify_build2 (bsi, PLUS_EXPR, inner_type, t1, t2); in expand_complex_div_straight()
1112 div = gimplify_build2 (bsi, PLUS_EXPR, inner_type, t1, bi); in expand_complex_div_wide()
1115 tr = gimplify_build2 (bsi, PLUS_EXPR, inner_type, t1, ai); in expand_complex_div_wide()
1151 div = gimplify_build2 (bsi, PLUS_EXPR, inner_type, t1, br); in expand_complex_div_wide()
1154 tr = gimplify_build2 (bsi, PLUS_EXPR, inner_type, t1, ar); in expand_complex_div_wide()
1363 case PLUS_EXPR: in expand_complex_operations_1()
[all …]
H A Dtree-ssa-reassoc.c499 if (opcode != PLUS_EXPR || TREE_CODE (curr->op) != SSA_NAME) in eliminate_plus_minus_pair()
710 case PLUS_EXPR: in eliminate_using_constants()
1038 && TREE_CODE (TREE_OPERAND (negatedef, 1)) == PLUS_EXPR)
1078 && is_reassociable_op (SSA_NAME_DEF_STMT (binlhs), PLUS_EXPR)) in should_break_up_subtract()
1082 && is_reassociable_op (SSA_NAME_DEF_STMT (binrhs), PLUS_EXPR)) in should_break_up_subtract()
1087 && TREE_CODE (TREE_OPERAND (immusestmt, 1)) == PLUS_EXPR) in should_break_up_subtract()
1106 TREE_SET_CODE (TREE_OPERAND (stmt, 1), PLUS_EXPR); in break_up_subtract()
1217 && TREE_CODE (TREE_OPERAND (user, 1)) == PLUS_EXPR) in repropagate_negates()
H A Dtree-chrec.c70 case PLUS_EXPR: in chrec_fold_poly_cst()
116 if (code == PLUS_EXPR) in chrec_fold_plus_poly_poly()
133 if (code == PLUS_EXPR) in chrec_fold_plus_poly_poly()
145 if (code == PLUS_EXPR) in chrec_fold_plus_poly_poly()
270 if (code == PLUS_EXPR) in chrec_fold_plus_1()
286 if (code == PLUS_EXPR) in chrec_fold_plus_1()
334 return chrec_fold_plus_1 (PLUS_EXPR, type, op0, op1); in chrec_fold_plus()
H A Dtree-object-size.c92 enum tree_code code = PLUS_EXPR; in compute_object_offset()
106 off = size_binop (PLUS_EXPR, DECL_FIELD_OFFSET (t), in compute_object_offset()
568 gcc_assert (TREE_CODE (value) == PLUS_EXPR); in plus_expr_object_size()
711 else if (TREE_CODE (rhs) == PLUS_EXPR) in collect_object_sizes_for()
835 else if (TREE_CODE (rhs) == PLUS_EXPR) in check_for_plus_in_loops_1()
911 if (TREE_CODE (rhs) == PLUS_EXPR) in check_for_plus_in_loops()
H A Dtree-dfa.c905 bit_offset = size_binop (PLUS_EXPR, bit_offset, in get_ref_base_and_extent()
920 bit_offset = size_binop (PLUS_EXPR, in get_ref_base_and_extent()
922 bit_offset = size_binop (PLUS_EXPR, bit_offset, in get_ref_base_and_extent()
960 bit_offset = size_binop (PLUS_EXPR, bit_offset, index); in get_ref_base_and_extent()
993 bit_offset = size_binop (PLUS_EXPR, bit_offset, in get_ref_base_and_extent()
H A Dtree-vrp.c670 if (TREE_CODE (expr) == PLUS_EXPR in valid_value_p()
705 || TREE_CODE (val1) == PLUS_EXPR in compare_values_warnv()
708 || TREE_CODE (val2) == PLUS_EXPR in compare_values_warnv()
735 code1 = code1 == MINUS_EXPR ? PLUS_EXPR : MINUS_EXPR; in compare_values_warnv()
757 code2 = code2 == MINUS_EXPR ? PLUS_EXPR : MINUS_EXPR; in compare_values_warnv()
781 if (code2 == PLUS_EXPR) in compare_values_warnv()
788 else if (code1 == PLUS_EXPR) in compare_values_warnv()
793 else if (code2 == PLUS_EXPR) in compare_values_warnv()
805 else if (code2 == PLUS_EXPR) in compare_values_warnv()
1216 min = fold_build2 (PLUS_EXPR, type, min, one); in extract_range_from_assert()
[all …]
H A Dtree-stdarg.c174 if (TREE_CODE (rhs) == PLUS_EXPR in va_list_counter_bump()
232 if (TREE_CODE (rhs) == PLUS_EXPR in va_list_counter_bump()
450 if ((TREE_CODE (rhs) == PLUS_EXPR in check_va_list_escapes()
558 if ((TREE_CODE (rhs) == PLUS_EXPR in check_all_va_list_escapes()
H A Dtree-ssa-forwprop.c217 if (TREE_CODE (def_rhs) == PLUS_EXPR in forward_propagate_into_cond_1()
245 new_code = (TREE_CODE (def_rhs) == PLUS_EXPR in forward_propagate_into_cond_1()
246 ? MINUS_EXPR : PLUS_EXPR); in forward_propagate_into_cond_1()
748 if (TREE_CODE (rhs) != PLUS_EXPR) in forward_propagate_addr_expr_1()
H A Dtree-ssa-loop-ivopts.c866 case PLUS_EXPR: in determine_base_object()
875 return (code == PLUS_EXPR in determine_base_object()
1415 *dta->step_p = fold_build2 (PLUS_EXPR, sizetype, *dta->step_p, step); in idx_find_step()
1561 step = fold_build2 (PLUS_EXPR, type, step, astep); in find_interesting_uses_address()
1813 case PLUS_EXPR: in strip_offset_1()
1821 *offset = (code == PLUS_EXPR ? off0 + off1 : off0 - off1); in strip_offset_1()
1830 if (code == PLUS_EXPR) in strip_offset_1()
2597 case PLUS_EXPR: in constant_multiple_of()
2748 comb->rest = fold_build2 (PLUS_EXPR, comb->type, comb->rest, elt); in aff_combination_add_elt()
2821 case PLUS_EXPR: in tree_to_aff_combination()
[all …]
H A Dtree-scalar-evolution.c1079 case PLUS_EXPR: in follow_ssa_edge_in_rhs()
1101 PLUS_EXPR, rhs1, at_stmt); in follow_ssa_edge_in_rhs()
1113 PLUS_EXPR, rhs0, at_stmt); in follow_ssa_edge_in_rhs()
1134 PLUS_EXPR, rhs1, at_stmt); in follow_ssa_edge_in_rhs()
1152 PLUS_EXPR, rhs0, at_stmt); in follow_ssa_edge_in_rhs()
1630 case PLUS_EXPR: in interpret_rhs_modify_expr()
1829 if (code == PLUS_EXPR in fold_used_pointer()
1840 else if (code == PLUS_EXPR && pointer_offset_p (op0)) in fold_used_pointer()
1854 if (code == PLUS_EXPR) in fold_used_pointer()
2244 case PLUS_EXPR: in instantiate_parameters_1()
H A Domp-low.c176 fd->n2 = fold_build2 (PLUS_EXPR, TREE_TYPE (fd->n2), fd->n2, in extract_omp_for_data()
196 case PLUS_EXPR: in extract_omp_for_data()
1541 case PLUS_EXPR: in omp_reduction_init()
1940 code = PLUS_EXPR; in lower_reduction_clauses()
2692 t = build2 (PLUS_EXPR, type, fd->v, fd->step); in expand_omp_for_generic()
2831 t = fold_build2 (PLUS_EXPR, type, fd->step, t); in expand_omp_for_static_nochunk()
2832 t = fold_build2 (PLUS_EXPR, type, t, fd->n2); in expand_omp_for_static_nochunk()
2846 t = build2 (PLUS_EXPR, type, q, t); in expand_omp_for_static_nochunk()
2852 t = build2 (PLUS_EXPR, type, s0, q); in expand_omp_for_static_nochunk()
2871 t = build2 (PLUS_EXPR, type, t, fd->n1); in expand_omp_for_static_nochunk()
[all …]
H A Dtree-vect-generic.c162 if (code == PLUS_EXPR) in do_plus_minus()
215 i += delta, index = int_const_binop (PLUS_EXPR, index, part_width, 0)) in expand_vector_piecewise()
302 case PLUS_EXPR: in expand_vector_operation()
/openbsd-src/gnu/usr.bin/gcc/gcc/cp/
H A Doperators.def39 this would be PLUS_EXPR. Because there are no tree codes for
41 `operator +' will also have PLUS_EXPR as its CODE.
106 DEF_SIMPLE_OPERATOR ("+", PLUS_EXPR, "pl", 2)
138 DEF_ASSN_OPERATOR ("+=", PLUS_EXPR, "pL", 2)
H A Dmethod.c479 t = fold (build (PLUS_EXPR, TREE_TYPE (a), a, t));
497 t = build (PLUS_EXPR, TREE_TYPE (t), t, vcall_offset);
501 t = fold (build (PLUS_EXPR,
575 build_base_path (PLUS_EXPR, parm,
589 build_base_path (PLUS_EXPR, parm,
673 converted_parm = build_base_path (PLUS_EXPR, parm, binfo, 1);
/openbsd-src/gnu/gcc/gcc/cp/
H A Doperators.def39 this would be PLUS_EXPR. Because there are no tree codes for
41 `operator +' will also have PLUS_EXPR as its CODE.
108 DEF_SIMPLE_OPERATOR ("+", PLUS_EXPR, "pl", 2)
137 DEF_ASSN_OPERATOR ("+=", PLUS_EXPR, "pL", 2)
H A Dmethod.c226 ptr = fold_build2 (PLUS_EXPR, TREE_TYPE (ptr), ptr, in thunk_adjust()
244 vtable = build2 (PLUS_EXPR, TREE_TYPE (vtable), vtable, virtual_offset); in thunk_adjust()
248 ptr = fold_build2 (PLUS_EXPR, TREE_TYPE (ptr), ptr, vtable); in thunk_adjust()
253 ptr = fold_build2 (PLUS_EXPR, TREE_TYPE (ptr), ptr, in thunk_adjust()
570 build_base_path (PLUS_EXPR, parm, in do_build_copy_constructor()
584 build_base_path (PLUS_EXPR, parm, in do_build_copy_constructor()
666 converted_parm = build_base_path (PLUS_EXPR, parm, base_binfo, 1); in do_build_assign_ref()
H A Dexpr.c65 cst = size_binop (PLUS_EXPR, cst, byte_position (member)); in cplus_expand_constant()
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dfold-const.c925 && ((code == PLUS_EXPR && TREE_CODE (in) == MINUS_EXPR)
926 || (code == MINUS_EXPR && TREE_CODE (in) == PLUS_EXPR))))
1000 if (code == PLUS_EXPR)
1085 case PLUS_EXPR:
1278 case PLUS_EXPR:
1280 const_binop (PLUS_EXPR, r1, r2, notrunc),
1281 const_binop (PLUS_EXPR, i1, i2, notrunc));
1298 const_binop (PLUS_EXPR,
1309 = const_binop (PLUS_EXPR,
1318 const_binop (PLUS_EXPR,
[all …]
H A Dstor-layout.c561 return size_binop (PLUS_EXPR, bitpos,
570 return size_binop (PLUS_EXPR, offset,
625 = size_binop (PLUS_EXPR, *poffset,
936 = size_binop (PLUS_EXPR, rli->offset,
1080 rli->bitpos = size_binop (PLUS_EXPR,
1102 rli->bitpos = size_binop (PLUS_EXPR,
1218 = size_binop (PLUS_EXPR, rli->offset,
1223 = size_binop (PLUS_EXPR, rli->offset, DECL_SIZE_UNIT (field));
1229 rli->bitpos = size_binop (PLUS_EXPR, rli->bitpos, DECL_SIZE (field));
1264 = size_binop (PLUS_EXPR, unpadded_size_unit, size_one_node);
[all …]

12345678