GCC Middle and Back End API Reference
|
#include <gimple-range.h>
Data Fields | |
auto_edge_flag | non_executable_edge_flag |
Protected Member Functions | |
bool | fold_range_internal (vrange &r, gimple *s, tree name) |
void | prefill_name (vrange &r, tree name) |
void | prefill_stmt_dependencies (tree ssa) |
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 | |
ranger_cache | m_cache |
range_tracer | tracer |
basic_block | current_bb |
vec< tree > | m_stmt_list |
relation_oracle * | m_relation |
infer_range_oracle * | m_infer |
gimple_outgoing_range * | m_gori |
gori_map * | m_map |
bool | m_shared_copy_p |
Friends | |
class | path_range_query |
Header file for the GIMPLE range interface. Copyright (C) 2019-2024 Free Software Foundation, Inc. Contributed by Andrew MacLeod <amacleod@redhat.com> and Aldy Hernandez <aldyh@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/>.
gimple_ranger::~gimple_ranger | ( | ) |
References m_stmt_list.
range_query & gimple_ranger::const_query | ( | ) |
References ranger_cache::const_query(), and m_cache.
Referenced by execute_ranger_vrp().
|
inherited |
References default_gori, gcc_checking_assert, range_query::m_gori, range_query::m_map, and NULL.
Referenced by ranger_cache::ranger_cache().
References default_infer_oracle, gcc_checking_assert, and range_query::m_infer.
Referenced by ranger_cache::ranger_cache().
References CDI_DOMINATORS, default_relation_oracle, dom_info_available_p(), gcc_checking_assert, global_ranges, and range_query::m_relation.
Referenced by execute_fast_vrp(), and ranger_cache::ranger_cache().
void gimple_ranger::debug | ( | ) |
References dump().
|
inherited |
References default_gori, range_query::m_gori, range_query::m_map, and NULL.
Referenced by range_query::~range_query().
|
inherited |
References default_infer_oracle, and range_query::m_infer.
Referenced by range_query::~range_query(), and ranger_cache::~ranger_cache().
|
inherited |
References default_relation_oracle, and range_query::m_relation.
Referenced by execute_fast_vrp(), range_query::~range_query(), and ranger_cache::~ranger_cache().
|
overridevirtual |
Reimplemented from range_query.
References cfun, ranger_cache::dump(), dump_bb(), FOR_EACH_BB_FN, and m_cache.
Referenced by debug(), dump_ranger(), and execute_ranger_vrp().
void gimple_ranger::dump_bb | ( | FILE * | f, |
basic_block | bb ) |
References ranger_cache::block_range(), value_range::dump(), dump_bb(), ranger_cache::dump_bb(), FOR_EACH_EDGE, ranger_cache::get_global_range(), gimple_bb(), gimple_range_ssa_p(), range_query::gori(), basic_block_def::index, m_cache, num_ssa_names, print_generic_expr(), ranger_cache::range_on_edge(), ssa_name, SSA_NAME_DEF_STMT, basic_block_def::succs, TDF_NONE, TDF_SLIM, TREE_TYPE, and value_range::varying_p().
Referenced by dump(), dump_bb(), and dump_ranger().
void gimple_ranger::export_global_ranges | ( | ) |
References dump_file, ranger_cache::get_global_range(), gimple_range_ssa_p(), m_cache, num_ssa_names, r, set_range_info(), ssa_name, SSA_NAME_IN_FREE_LIST, and TREE_TYPE.
References fold_using_range::fold_stmt(), and r.
Referenced by prefill_stmt_dependencies(), and range_of_stmt().
bool gimple_ranger::fold_stmt | ( | gimple_stmt_iterator * | gsi, |
tree(* | valueize )(tree) ) |
References current_bb, fold_stmt(), gimple_bb(), gsi_stmt(), and NULL.
Referenced by fold_stmt(), and rvrp_folder::fold_stmt().
|
protectedinherited |
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(), range_query::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(), range_of_expr(), global_range_query::range_of_expr(), ranger_cache::range_of_expr(), ssa_cache::range_of_expr(), dom_ranger::range_of_stmt(), range_of_stmt(), dom_ranger::range_on_edge(), range_on_edge(), ranger_cache::range_on_edge(), range_on_entry(), and range_on_exit().
|
inlineinherited |
References range_query::m_gori.
Referenced by ranger_cache::block_range(), path_range_query::compute_ranges_in_block(), dump_bb(), ranger_cache::edge_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().
|
inlineinherited |
References range_query::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(), range_of_stmt(), ranger_cache::ranger_cache(), ranger_cache::register_inferred_value(), 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().
|
inlineinherited |
References range_query::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(), range_on_edge(), and register_transitive_inferred_ranges().
|
protectedinherited |
References gcc_checking_assert, r, range_query::range_of_expr(), range_query::range_on_entry(), and range_query::range_on_exit().
Referenced by range_query::get_tree_range().
References ranger_cache::get_global_range(), gimple_range_ssa_p(), is_a(), m_cache, m_stmt_list, r, SSA_NAME_DEF_STMT, and gimple_range_op_handler::supported_p().
Referenced by prefill_stmt_dependencies().
|
protected |
References changed, dump_file, dyn_cast(), fold_range_internal(), gcc_checking_assert, ranger_cache::get_global_range(), gimple_bb(), gimple_phi_arg_def(), gimple_phi_num_args(), gimple_phi_result(), range_tracer::header(), value_range::intersect(), is_a(), m_cache, m_stmt_list, NULL_TREE, gimple_range_op_handler::operand1(), gimple_range_op_handler::operand2(), prefill_name(), range_tracer::print(), print_generic_expr(), print_gimple_stmt(), r, ranger_cache::set_global_range(), SSA_NAME_DEF_STMT, SSA_NAME_IS_DEFAULT_DEF, gimple_range_op_handler::supported_p(), TDF_SLIM, tracer, range_tracer::trailer(), and TREE_TYPE.
Referenced by range_of_stmt().
Implements range_query.
References ranger_cache::block_range(), current_bb, dump_file, ranger_cache::get_global_range(), range_query::get_tree_range(), gimple_bb(), gimple_get_lhs(), gimple_range_ssa_p(), range_tracer::header(), basic_block_def::index, is_gimple_debug(), m_cache, range_tracer::print(), print_generic_expr(), print_gimple_stmt(), r, ranger_cache::range_of_expr(), range_of_stmt(), range_on_entry(), SSA_NAME_DEF_STMT, TDF_SLIM, tracer, range_tracer::trailer(), and TREE_TYPE.
Referenced by execute_ranger_vrp(), range_on_exit(), register_transitive_inferred_ranges(), path_range_query::ssa_range_in_phi(), and vect_recog_divmod_pattern().
Reimplemented from range_query.
References changed, dump_file, exp(), fold_range_internal(), FOR_EACH_GORI_EXPORT_NAME, ranger_cache::get_global_range(), range_query::get_tree_range(), gimple_bb(), gimple_get_lhs(), gimple_range_ssa_p(), range_query::gori_ssa(), range_tracer::header(), is_a(), m_cache, NULL, NULL_TREE, prefill_stmt_dependencies(), print_generic_expr(), print_gimple_stmt(), ranger_cache::propagate_updated_value(), r, ranger_cache::set_global_range(), TDF_SLIM, tracer, range_tracer::trailer(), and TREE_TYPE.
Referenced by debug_seed_ranger(), range_of_expr(), range_on_entry(), and register_inferred_ranges().
Reimplemented from range_query.
References dump_file, gcc_checking_assert, range_query::get_tree_range(), gimple_range_ssa_p(), range_tracer::header(), range_query::infer_oracle(), m_cache, infer_range_oracle::maybe_adjust_range(), non_executable_edge_flag, NULL, print_generic_expr(), r, range_compatible_p(), ranger_cache::range_on_edge(), range_on_exit(), TDF_SLIM, tracer, range_tracer::trailer(), and TREE_TYPE.
Referenced by dom_opt_dom_walker::set_global_ranges_from_unreachable_edges(), and path_range_query::ssa_range_in_phi().
|
overridevirtual |
Reimplemented from range_query.
References ranger_cache::block_range(), dump_file, range_query::get_tree_range(), gimple_range_ssa_p(), range_tracer::header(), basic_block_def::index, m_cache, NULL, print_generic_expr(), r, range_of_stmt(), SSA_NAME_DEF_STMT, TDF_SLIM, tracer, range_tracer::trailer(), and TREE_TYPE.
Referenced by range_of_expr(), range_on_exit(), and path_range_query::range_on_path_entry().
|
overridevirtual |
Reimplemented from range_query.
References dump_file, gcc_checking_assert, range_query::get_tree_range(), gimple_bb(), gimple_range_ssa_p(), range_tracer::header(), basic_block_def::index, last_nondebug_stmt(), NULL, print_generic_expr(), r, range_compatible_p(), range_of_expr(), range_on_entry(), SSA_NAME_DEF_STMT, TDF_SLIM, tracer, range_tracer::trailer(), and TREE_TYPE.
Referenced by range_on_edge().
void gimple_ranger::register_inferred_ranges | ( | gimple * | s | ) |
References ranger_cache::apply_inferred_ranges(), gimple_get_lhs(), m_cache, range_of_stmt(), set_range_info(), TREE_TYPE, and value_range::varying_p().
Referenced by rvrp_folder::fold_stmt(), and rvrp_folder::pre_fold_bb().
void gimple_ranger::register_transitive_inferred_ranges | ( | basic_block | bb | ) |
References infer_range_oracle::add_ranges(), range_def_chain::depend1(), range_def_chain::depend2(), dump_file, dump_flags, g, gimple_get_lhs(), gimple_range_ssa_p(), range_query::gori_ssa(), gsi_end_p(), gsi_next(), gsi_start_bb(), gsi_stmt(), basic_block_def::index, range_query::infer_oracle(), m_cache, r, range_of_expr(), ranger_cache::register_inferred_value(), si, TDF_DETAILS, and TREE_TYPE.
Referenced by rvrp_folder::pre_fold_stmt().
|
inlineinherited |
References range_query::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().
|
protectedinherited |
Reimplemented in ccp_folder, copy_folder, fvrp_folder, rvrp_folder, and substitute_and_fold_engine.
References NULL_TREE, r, range_query::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_query::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_query::range_of_expr(), range_query::range_on_edge(), value_range::supports_type_p(), and TREE_TYPE.
Referenced by fvrp_folder::value_on_edge(), and rvrp_folder::value_on_edge().
|
virtualinherited |
References gcc_checking_assert, NULL_TREE, r, range_query::range_on_entry(), value_range::supports_type_p(), and TREE_TYPE.
|
virtualinherited |
References gcc_checking_assert, NULL_TREE, r, range_query::range_on_exit(), value_range::supports_type_p(), and TREE_TYPE.
|
friend |
|
protected |
Referenced by fold_stmt(), and range_of_expr().
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Referenced by range_query::create_relation_oracle(), range_query::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::range_query(), range_query::relation(), range_query::share_query(), and path_range_query::~path_range_query().
|
protectedinherited |
Referenced by range_query::range_query(), range_query::share_query(), and range_query::~range_query().
Referenced by gimple_ranger(), prefill_name(), prefill_stmt_dependencies(), and ~gimple_ranger().
auto_edge_flag gimple_ranger::non_executable_edge_flag |
Referenced by gimple_ranger(), and range_on_edge().
|
protected |
Referenced by gimple_ranger(), prefill_stmt_dependencies(), range_of_expr(), range_of_stmt(), range_on_edge(), range_on_entry(), and range_on_exit().