GCC Middle and Back End API Reference
|
#include <gimple-range-cache.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) |
Protected Attributes | |
bitmap | active_p |
vec< vrange_storage * > | m_tab |
vrange_allocator * | m_range_allocator |
relation_oracle * | m_oracle |
|
inline |
References active_p, BITMAP_ALLOC, and NULL.
|
inline |
References active_p, and BITMAP_FREE.
|
virtual |
Reimplemented from ssa_cache.
References active_p, and bitmap_clear().
Referenced by path_range_query::reset_path().
Reimplemented from ssa_cache.
References active_p, bitmap_clear_bit(), and SSA_NAME_VERSION.
Referenced by path_range_query::compute_ranges_in_block().
Reimplemented from range_query.
References ssa_cache::get_range(), ggc_alloc(), gimple_range_ssa_p(), num_ssa_names, print_generic_expr(), r, ssa_name, TDF_NONE, and TREE_TYPE.
Referenced by path_range_query::dump(), ranger_cache::dump(), and dom_ranger::~dom_ranger().
|
inline |
References active_p, and bitmap_empty_p().
Reimplemented from ssa_cache.
References active_p, bitmap_bit_p, ssa_cache::get_range(), r, and SSA_NAME_VERSION.
Referenced by assume_query::assume_range_p(), assume_query::calculate_phi(), dom_ranger::edge_range(), path_range_query::get_cache(), and assume_query::range_of_expr().
|
protectedinherited |
References BINARY_CLASS_P, COMPARISON_CLASS_P, drop_tree_overflow(), expr, range_op_handler::fold_range(), ggc_alloc(), gimple_range_global(), gimple_range_ssa_p(), range_query::invoke_range_of_expr(), r, real_isnan(), real_isneg(), REAL_VALUE_TYPE, frange::set(), frange::set_nan(), 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, and UNARY_CLASS_P.
Referenced by assume_query::calculate_phi(), assume_query::range_of_expr(), global_range_query::range_of_expr(), dom_ranger::range_of_expr(), ssa_cache::range_of_expr(), gimple_ranger::range_of_expr(), ranger_cache::range_of_expr(), gimple_ranger::range_of_stmt(), ranger_cache::range_on_edge(), dom_ranger::range_on_edge(), gimple_ranger::range_on_edge(), gimple_ranger::range_on_entry(), and gimple_ranger::range_on_exit().
Reimplemented from ssa_cache.
References active_p, bitmap_bit_p, and SSA_NAME_VERSION.
Referenced by dom_ranger::edge_range().
|
protectedinherited |
References gcc_checking_assert, ggc_alloc(), r, range_query::range_of_expr(), range_query::range_on_entry(), and range_query::range_on_exit().
Referenced by range_query::get_tree_range().
Reimplemented from ssa_cache.
References active_p, bitmap_set_bit, vrange_allocator::clone(), gcc_checking_assert, ssa_cache::m_range_allocator, ssa_cache::m_tab, ssa_cache::merge_range(), num_ssa_names, r, and SSA_NAME_VERSION.
Referenced by assume_query::calculate_op().
|
inlineinherited |
|
inherited |
References get_range(), ggc_alloc(), gimple_bb(), range_query::m_oracle, relation_oracle::query_relation(), range_query::range_of_expr(), TREE_CODE, TREE_TYPE, and VREL_VARYING.
Referenced by fur_stmt::query_relation(), and fold_using_range::range_of_phi().
Implements range_query.
References cfun, ssa_cache::get_range(), range_query::get_tree_range(), gimple_range_global(), gimple_range_ssa_p(), and r.
Referenced by dom_ranger::range_in_bb(), dom_ranger::range_of_expr(), and dom_ranger::range_of_stmt().
Reimplemented in path_range_query, gimple_ranger, and dom_ranger.
References gcc_checking_assert, gimple_get_lhs(), r, and range_query::range_of_expr().
Referenced by simplify_using_ranges::fold_cond(), and range_query::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 ranger_cache, dom_ranger, and gimple_ranger.
References r, and range_query::range_of_expr().
Referenced by fur_edge::get_operand(), fur_source::get_phi_operand(), fur_edge::get_phi_operand(), phi_analyzer::process_phi(), range_query::query_relation(), and range_query::value_on_edge().
|
virtualinherited |
Reimplemented in gimple_ranger.
References r, and range_query::range_of_expr().
Referenced by range_query::invoke_range_of_expr(), and range_query::value_on_entry().
|
virtualinherited |
Reimplemented in gimple_ranger.
References r, and range_query::range_of_expr().
Referenced by range_query::invoke_range_of_expr(), and range_query::value_on_exit().
Reimplemented from ssa_cache.
References active_p, bitmap_set_bit, vrange_allocator::clone(), gcc_checking_assert, ssa_cache::m_range_allocator, ssa_cache::m_tab, num_ssa_names, r, ssa_cache::set_range(), and SSA_NAME_VERSION.
Referenced by path_range_query::adjust_for_non_null_uses(), assume_query::assume_query(), assume_query::calculate_phi(), path_range_query::compute_ranges_in_block(), path_range_query::compute_ranges_in_phis(), and path_range_query::internal_range_of_expr().
Reimplemented in substitute_and_fold_engine, copy_folder, rvrp_folder, fvrp_folder, and ccp_folder.
References NULL_TREE, r, range_query::range_of_expr(), Value_Range::supports_type_p(), and TREE_TYPE.
Referenced by rvrp_folder::value_of_expr(), and fvrp_folder::value_of_expr().
Reimplemented in substitute_and_fold_engine, rvrp_folder, and fvrp_folder.
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 rvrp_folder::value_of_stmt(), and fvrp_folder::value_of_stmt().
Reimplemented in rvrp_folder, fvrp_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 rvrp_folder::value_on_edge(), and fvrp_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.
|
protected |
Referenced by clear(), clear_range(), empty_p(), get_range(), has_range(), merge_range(), set_range(), ssa_lazy_cache(), and ~ssa_lazy_cache().
|
protectedinherited |
Referenced by ranger_cache::dump_bb(), ranger_cache::fill_block_cache(), path_range_query::get_path_oracle(), gimple_ranger::gimple_ranger(), path_range_query::maybe_register_phi_relation(), range_query::oracle(), path_range_query::path_range_query(), path_range_query::path_range_query(), range_query::query_relation(), range_query::query_relation(), range_query::range_query(), ranger_cache::ranger_cache(), path_range_query::~path_range_query(), and ranger_cache::~ranger_cache().
|
protectedinherited |
Referenced by ssa_cache::merge_range(), merge_range(), ssa_cache::set_range(), set_range(), ssa_cache::ssa_cache(), and ssa_cache::~ssa_cache().
|
protectedinherited |