GCC Middle and Back End API Reference
|
#include <value-query.h>
Protected Member Functions | |
bool | get_tree_range (vrange &v, tree expr, gimple *stmt, basic_block bbentry=NULL, basic_block bbexit=NULL) |
bool | invoke_range_of_expr (vrange &v, tree expr, gimple *stmt, basic_block bbentry, basic_block bbexit) |
bool | get_arith_expr_range (vrange &r, tree expr, gimple *stmt) |
void | share_query (range_query &q) |
Protected Attributes | |
relation_oracle * | m_relation |
infer_range_oracle * | m_infer |
gimple_outgoing_range * | m_gori |
gori_map * | m_map |
bool | m_shared_copy_p |
Support routines for value queries. Copyright (C) 2020-2024 Free Software Foundation, Inc. Contributed by Aldy Hernandez <aldyh@redhat.com> and Andrew Macleod <amacleod@redhat.com>. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>.
range_query::range_query | ( | ) |
References default_gori, default_infer_oracle, default_relation_oracle, m_gori, m_infer, m_map, m_relation, m_shared_copy_p, and NULL.
|
virtual |
References destroy_gori(), destroy_infer_oracle(), destroy_relation_oracle(), and m_shared_copy_p.
void range_query::create_gori | ( | int | not_executable_flag = 0, |
int | sw_max_edges = INT_MAX ) |
References default_gori, gcc_checking_assert, m_gori, m_map, and NULL.
Referenced by ranger_cache::ranger_cache().
void range_query::create_infer_oracle | ( | range_query * | q = NULL, |
bool | do_search = true ) |
References default_infer_oracle, gcc_checking_assert, and m_infer.
Referenced by ranger_cache::ranger_cache().
References CDI_DOMINATORS, default_relation_oracle, dom_info_available_p(), gcc_checking_assert, global_ranges, and m_relation.
Referenced by execute_fast_vrp(), and ranger_cache::ranger_cache().
void range_query::destroy_gori | ( | ) |
References default_gori, m_gori, m_map, and NULL.
Referenced by ~range_query().
void range_query::destroy_infer_oracle | ( | ) |
References default_infer_oracle, and m_infer.
Referenced by ~range_query(), and ranger_cache::~ranger_cache().
void range_query::destroy_relation_oracle | ( | ) |
References default_relation_oracle, and m_relation.
Referenced by execute_fast_vrp(), ~range_query(), and ranger_cache::~ranger_cache().
|
virtual |
Reimplemented in gimple_ranger, path_range_query, ranger_cache, and ssa_cache.
|
protected |
References as_a(), BINARY_CLASS_P, COMPARISON_CLASS_P, drop_tree_overflow(), expr, range_op_handler::fold_range(), get_nonzero_bits(), gimple_range_global(), gimple_range_ssa_p(), invoke_range_of_expr(), POLY_INT_CST_P, r, real_isnan(), real_isneg(), REAL_VALUE_TYPE, frange::set(), frange::set_nan(), value_range::set_varying(), value_range::supports_type_p(), TREE_CODE, TREE_OPERAND, TREE_OVERFLOW_P, TREE_REAL_CST_PTR, tree_single_nonzero_warnv_p(), TREE_TYPE, type(), TYPE_P, TYPE_PRECISION, UNARY_CLASS_P, and wi::zero().
Referenced by dom_ranger::range_of_expr(), gimple_ranger::range_of_expr(), global_range_query::range_of_expr(), ranger_cache::range_of_expr(), ssa_cache::range_of_expr(), dom_ranger::range_of_stmt(), gimple_ranger::range_of_stmt(), dom_ranger::range_on_edge(), gimple_ranger::range_on_edge(), ranger_cache::range_on_edge(), gimple_ranger::range_on_entry(), and gimple_ranger::range_on_exit().
|
inline |
References m_gori.
Referenced by ranger_cache::block_range(), path_range_query::compute_ranges_in_block(), gimple_ranger::dump_bb(), ranger_cache::edge_range(), ranger_cache::entry_range(), evaluate_control_stmt_using_entry_checks(), ranger_cache::fill_block_cache(), fur_source::gori(), gori_on_edge(), ranger_cache::range_from_dom(), and ranger_cache::register_inferred_value().
|
inline |
References m_map.
Referenced by hybrid_jt_simplifier::compute_exit_dependencies(), path_range_query::compute_exit_dependencies(), path_range_query::compute_ranges_in_block(), ranger_cache::dump_bb(), ranger_cache::get_global_range(), fur_source::gori_ssa(), remove_unreachable::handle_early(), gimple_ranger::range_of_stmt(), ranger_cache::ranger_cache(), ranger_cache::register_inferred_value(), gimple_ranger::register_transitive_inferred_ranges(), remove_unreachable::remove_and_update_globals(), ranger_cache::set_global_range(), and dom_opt_dom_walker::set_global_ranges_from_unreachable_edges().
|
inline |
References m_infer.
Referenced by path_range_query::adjust_for_non_null_uses(), ranger_cache::apply_inferred_ranges(), ranger_cache::edge_range(), ranger_cache::fill_block_cache(), path_range_query::range_defined_in_block(), ranger_cache::range_from_dom(), gimple_ranger::range_on_edge(), and gimple_ranger::register_transitive_inferred_ranges().
|
protected |
References gcc_checking_assert, r, range_of_expr(), range_on_entry(), and range_on_exit().
Referenced by get_tree_range().
Implemented in dom_ranger, gimple_ranger, global_range_query, path_range_query, ranger_cache, ssa_cache, and substitute_and_fold_engine.
Referenced by infer_range_manager::add_ranges(), check_for_binary_op_overflow(), compare_nonzero_chars(), strlen_pass::count_nonzero_bytes_addr(), cprop_operand(), determine_block_size(), dump_ssaname_info(), dump_strlen_info(), expand_builtin_strnlen(), simplify_using_ranges::fold_cond_with_ops(), path_range_query::get_cache(), fur_list::get_operand(), fur_source::get_operand(), fur_stmt::get_operand(), get_range(), get_range_strlen_dynamic(), get_ref_base_and_extent(), get_size_range(), array_bounds_checker::get_value_range(), handle_printf_call(), invoke_range_of_expr(), simplify_using_ranges::legacy_fold_cond(), simplify_using_ranges::legacy_fold_cond_overflow(), simplify_using_ranges::op_with_boolean_value_range_p(), range_of_stmt(), range_of_var_in_loop(), range_on_edge(), range_on_entry(), range_on_exit(), remove_unreachable::remove_and_update_globals(), simplify_using_ranges::simplify(), simplify_using_ranges::simplify_bit_ops_using_ranges(), simplify_using_ranges::simplify_casted_compare(), simplify_using_ranges::simplify_compare_using_ranges_1(), simplify_using_ranges::simplify_div_or_mod_using_ranges(), simplify_using_ranges::simplify_float_conversion_using_ranges(), simplify_rotate(), simplify_using_ranges::simplify_switch_using_ranges(), split_at_bb_p(), simplify_using_ranges::two_valued_val_range_p(), value_of_expr(), and value_on_edge().
Reimplemented in dom_ranger, gimple_ranger, and path_range_query.
References gcc_checking_assert, gimple_get_lhs(), r, and range_of_expr().
Referenced by simplify_using_ranges::fold_cond(), and value_of_stmt().
Support routines for value queries. Copyright (C) 2020-2024 Free Software Foundation, Inc. Contributed by Aldy Hernandez <aldyh@redhat.com> and Andrew MacLeod <amacleod@redhat.com>. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>.
Reimplemented in dom_ranger, gimple_ranger, and ranger_cache.
References r, and range_of_expr().
Referenced by fur_edge::get_operand(), fur_edge::get_phi_operand(), fur_source::get_phi_operand(), phi_analyzer::process_phi(), and value_on_edge().
|
virtual |
Reimplemented in gimple_ranger.
References r, and range_of_expr().
Referenced by remove_unreachable::handle_early(), invoke_range_of_expr(), remove_unreachable::remove_and_update_globals(), and value_on_entry().
|
virtual |
Reimplemented in gimple_ranger.
References r, and range_of_expr().
Referenced by invoke_range_of_expr(), and value_on_exit().
|
inline |
References m_relation.
Referenced by path_range_query::compute_ranges(), path_range_query::path_range_query(), path_range_query::path_range_query(), fur_stmt::query_relation(), jt_fur_source::query_relation(), fur_depend::register_relation(), fur_depend::register_relation(), jt_fur_source::register_relation(), and jt_fur_source::register_relation().
|
protected |
References m_gori, m_infer, m_map, m_relation, and m_shared_copy_p.
Referenced by gimple_ranger::gimple_ranger(), path_range_query::path_range_query(), and path_range_query::path_range_query().
Reimplemented in ccp_folder, copy_folder, fvrp_folder, rvrp_folder, and substitute_and_fold_engine.
References NULL_TREE, r, range_of_expr(), value_range::supports_type_p(), and TREE_TYPE.
Referenced by fvrp_folder::value_of_expr(), and rvrp_folder::value_of_expr().
Reimplemented in fvrp_folder, rvrp_folder, and substitute_and_fold_engine.
References gcc_checking_assert, gimple_get_lhs(), NULL_TREE, r, range_of_stmt(), value_range::supports_type_p(), and TREE_TYPE.
Referenced by fvrp_folder::value_of_stmt(), and rvrp_folder::value_of_stmt().
Reimplemented in fvrp_folder, rvrp_folder, and substitute_and_fold_engine.
References NULL_TREE, r, range_of_expr(), range_on_edge(), value_range::supports_type_p(), and TREE_TYPE.
Referenced by fvrp_folder::value_on_edge(), and rvrp_folder::value_on_edge().
|
virtual |
References gcc_checking_assert, NULL_TREE, r, range_on_entry(), value_range::supports_type_p(), and TREE_TYPE.
|
virtual |
References gcc_checking_assert, NULL_TREE, r, range_on_exit(), value_range::supports_type_p(), and TREE_TYPE.
|
protected |
Referenced by create_gori(), destroy_gori(), gori(), range_query(), and share_query().
|
protected |
Referenced by create_infer_oracle(), destroy_infer_oracle(), infer_oracle(), range_query(), and share_query().
|
protected |
Referenced by create_gori(), destroy_gori(), gori_ssa(), range_query(), and share_query().
|
protected |
Referenced by create_relation_oracle(), destroy_relation_oracle(), ranger_cache::dump_bb(), ranger_cache::fill_block_cache(), path_range_query::get_path_oracle(), path_range_query::maybe_register_phi_relation(), path_range_query::path_range_query(), path_range_query::path_range_query(), range_query(), relation(), share_query(), and path_range_query::~path_range_query().
|
protected |
Referenced by range_query(), share_query(), and ~range_query().