22#ifndef GCC_GIMPLE_FOLD_H
23#define GCC_GIMPLE_FOLD_H
51 unsigned HOST_WIDE_INT * =
NULL);
55 bool *can_refer =
NULL);
57 unsigned HOST_WIDE_INT,
58 bool *can_refer =
NULL);
81template<
class ...Args>
86 static_assert (
sizeof...(ops) > 0 &&
sizeof...(ops) <= 3,
87 "Number of operands must be from one to three");
90 loc, code,
type, ops...);
92template<
class ...Args>
96 static_assert (
sizeof...(ops) > 0 &&
sizeof...(ops) <= 3,
97 "Number of operands must be from one to three");
115template<
class ...Args>
120 static_assert (
sizeof...(args) < 4,
121 "Number of arguments must be less than four");
124 loc, fn,
type, args...);
126template<
class ...Args>
130 static_assert (
sizeof...(args) < 4,
131 "Number of arguments must be less than four");
147template<
class ...Args>
152 static_assert (
sizeof...(ops) < 4,
153 "Number of operands must be less than four");
156 loc, code,
type, ops...);
158template<
class ...Args>
163 static_assert (
sizeof...(ops) < 4,
164 "Number of operands must be less than four");
247 unsigned HOST_WIDE_INT);
254 loc,
type, old_size, align);
258 unsigned HOST_WIDE_INT align)
Definition tree-vector-builder.h:29
class bitmap_head * bitmap
Definition coretypes.h:51
union tree_node * tree
Definition coretypes.h:97
combined_fn
Definition genmatch.cc:1010
tree_code
Definition genmatch.cc:992
bool fold_stmt_inplace(gimple_stmt_iterator *)
Definition gimple-fold.cc:6827
tree get_symbol_constant_value(tree)
Definition gimple-fold.cc:285
void gsi_replace_with_seq_vops(gimple_stmt_iterator *, gimple_seq)
Definition gimple-fold.cc:595
tree gimple_convert_to_ptrofftype(gimple_stmt_iterator *, bool, enum gsi_iterator_update, location_t, tree)
bool update_gimple_call(gimple_stmt_iterator *, tree, int,...)
Definition gimple-fold.cc:685
bool arith_code_with_undefined_signed_overflow(tree_code)
Definition gimple-fold.cc:10245
void rewrite_to_defined_overflow(gimple_stmt_iterator *)
Definition gimple-fold.cc:10319
tree gimple_convert(gimple_stmt_iterator *, bool, enum gsi_iterator_update, location_t, tree, tree)
bool gimple_fold_builtin_snprintf(gimple_stmt_iterator *)
Definition gimple-fold.cc:3768
tree maybe_fold_and_comparisons(tree, enum tree_code, tree, tree, enum tree_code, tree, tree, basic_block=nullptr)
Definition gimple-fold.cc:8616
tree gimple_simplify(enum tree_code, tree, tree, gimple_seq *, tree(*)(tree))
Definition gimple-match-exports.cc:572
tree fold_ctor_reference(tree, tree, const poly_uint64 &, const poly_uint64 &, tree, unsigned HOST_WIDE_INT *=NULL)
Definition gimple-fold.cc:9709
tree gimple_fold_stmt_to_constant(gimple *, tree(*)(tree))
Definition gimple-fold.cc:9301
tree follow_single_use_edges(tree)
Definition gimple-fold.cc:6783
tree gimple_build_vector(gimple_stmt_iterator *, bool, enum gsi_iterator_update, location_t, tree_vector_builder *)
bool gimple_fold_builtin_sprintf(gimple_stmt_iterator *)
Definition gimple-fold.cc:3638
bool gimple_stmt_nonnegative_warnv_p(gimple *, bool *, int=0)
Definition gimple-fold.cc:10856
tree maybe_fold_or_comparisons(tree, enum tree_code, tree, tree, enum tree_code, tree, tree, basic_block=nullptr)
Definition gimple-fold.cc:8968
tree gimple_get_virt_method_for_vtable(HOST_WIDE_INT, tree, unsigned HOST_WIDE_INT, bool *can_refer=NULL)
Definition gimple-fold.cc:9987
void gimplify_and_update_call_from_tree(gimple_stmt_iterator *, tree)
Definition gimple-fold.cc:738
tree gimple_build_vector_from_val(gimple_stmt_iterator *, bool, enum gsi_iterator_update, location_t, tree, tree)
tree gimple_build_round_up(gimple_stmt_iterator *, bool, enum gsi_iterator_update, location_t, tree, tree, unsigned HOST_WIDE_INT)
tree gimple_fold_stmt_to_constant_1(gimple *, tree(*)(tree), tree(*)(tree)=no_follow_ssa_edges)
Definition gimple-fold.cc:8999
tree create_tmp_reg_or_ssa_name(tree, gimple *stmt=NULL)
Definition gimple-fold.cc:199
tree tree_vec_extract(gimple_stmt_iterator *, tree, tree, tree, tree)
Definition tree-vect-generic.cc:136
bool gimple_stmt_integer_valued_real_p(gimple *, int=0)
Definition gimple-fold.cc:10957
tree gimple_build(gimple_stmt_iterator *, bool, enum gsi_iterator_update, location_t, enum tree_code, tree, tree)
bool get_range_strlen(tree, c_strlen_data *, unsigned eltsize)
Definition gimple-fold.cc:2114
tree fold_const_aggregate_ref_1(tree, tree(*)(tree))
Definition gimple-fold.cc:9809
bool fold_stmt(gimple_stmt_iterator *, bitmap=nullptr)
Definition gimple-fold.cc:6807
tree canonicalize_constructor_val(tree, tree)
Definition gimple-fold.cc:212
tree follow_all_ssa_edges(tree)
Definition gimple-fold.cc:6794
tree gimple_get_virt_method_for_binfo(HOST_WIDE_INT, tree, bool *can_refer=NULL)
Definition gimple-fold.cc:10099
void replace_call_with_value(gimple_stmt_iterator *, tree)
Definition gimple-fold.cc:818
bool optimize_atomic_compare_exchange_p(gimple *)
Definition gimple-fold.cc:5531
tree no_follow_ssa_edges(tree)
Definition gimple-fold.cc:6775
void fold_builtin_atomic_compare_exchange(gimple_stmt_iterator *)
Definition gimple-fold.cc:5601
tree fold_const_aggregate_ref(tree)
Definition gimple-fold.cc:9975
tree gimple_fold_indirect_ref(tree)
Definition gimple-fold.cc:10126
gimple_stmt_iterator gsi_last(gimple_seq &seq)
Definition gimple-iterator.h:148
gsi_iterator_update
Definition gimple-iterator.h:52
@ GSI_CONTINUE_LINKING
Definition gimple-iterator.h:56
Definition basic-block.h:117
Definition gimple-iterator.h:26
Definition gengtype.h:252
#define NULL
Definition system.h:50