GCC Middle and Back End API Reference
ranger_cache Class Reference

#include <gimple-range-cache.h>

Inheritance diagram for ranger_cache:
Collaboration diagram for ranger_cache:

Public Member Functions

 ranger_cache (int not_executable_flag, bool use_imm_uses)
 
 ~ranger_cache ()
 
bool range_of_expr (vrange &r, tree name, gimple *stmt) final override
 
bool range_on_edge (vrange &r, edge e, tree expr) final override
 
bool block_range (vrange &r, basic_block bb, tree name, bool calc=true)
 
bool get_global_range (vrange &r, tree name) const
 
bool get_global_range (vrange &r, tree name, bool &current_p)
 
void set_global_range (tree name, const vrange &r, bool changed=true)
 
range_queryconst_query ()
 
void propagate_updated_value (tree name, basic_block bb)
 
void register_inferred_value (const vrange &r, tree name, basic_block bb)
 
void apply_inferred_ranges (gimple *s)
 
void dump_bb (FILE *f, basic_block bb)
 
virtual void dump (FILE *f) override
 
virtual tree value_of_expr (tree expr, gimple *=NULL)
 
virtual tree value_on_edge (edge, tree expr)
 
virtual tree value_of_stmt (gimple *, tree name=NULL)
 
virtual tree value_on_entry (basic_block, tree expr)
 
virtual tree value_on_exit (basic_block, tree expr)
 
virtual bool range_of_stmt (vrange &r, gimple *, tree name=NULL)
 
virtual bool range_on_entry (vrange &r, basic_block bb, tree expr)
 
virtual bool range_on_exit (vrange &r, basic_block bb, tree expr)
 
class relation_oraclerelation () const
 
void create_relation_oracle (bool do_trans_p=true)
 
void destroy_relation_oracle ()
 
class infer_range_oracleinfer_oracle () const
 
void create_infer_oracle (bool do_search=TRUE)
 
void destroy_infer_oracle ()
 
class gimple_outgoing_rangegori () const
 
class gori_mapgori_ssa () const
 
void create_gori (int not_executable_flag=0, int sw_max_edges=INT_MAX)
 
void destroy_gori ()
 

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_oraclem_relation
 
infer_range_oraclem_infer
 
gimple_outgoing_rangem_gori
 
gori_mapm_map
 
bool m_shared_copy_p
 

Private Types

enum  rfd_mode { RFD_NONE , RFD_READ_ONLY , RFD_FILL }
 

Private Member Functions

void fill_block_cache (tree name, basic_block bb, basic_block def_bb)
 
void propagate_cache (tree name)
 
bool range_from_dom (vrange &r, tree name, basic_block bb, enum rfd_mode)
 
void resolve_dom (vrange &r, tree name, basic_block bb)
 
void range_of_def (vrange &r, tree name, basic_block bb=NULL)
 
void entry_range (vrange &r, tree expr, basic_block bb, enum rfd_mode)
 
void exit_range (vrange &r, tree expr, basic_block bb, enum rfd_mode)
 
bool edge_range (vrange &r, edge e, tree name, enum rfd_mode)
 

Private Attributes

ssa_cache m_globals
 
block_range_cache m_on_entry
 
class temporal_cachem_temporal
 
vec< basic_blockm_workback
 
class update_listm_update
 

Member Enumeration Documentation

◆ rfd_mode

enum ranger_cache::rfd_mode
private
Enumerator
RFD_NONE 
RFD_READ_ONLY 
RFD_FILL 

Constructor & Destructor Documentation

◆ ranger_cache()

◆ ~ranger_cache()

Member Function Documentation

◆ apply_inferred_ranges()

◆ block_range()

◆ const_query()

range_query & ranger_cache::const_query ( )
inline

References m_globals.

Referenced by gimple_ranger::const_query().

◆ create_gori()

void range_query::create_gori ( int not_executable_flag = 0,
int sw_max_edges = INT_MAX )
inherited

◆ create_infer_oracle()

void range_query::create_infer_oracle ( bool do_search = TRUE)
inherited

◆ create_relation_oracle()

void range_query::create_relation_oracle ( bool do_trans_p = true)
inherited

◆ destroy_gori()

void range_query::destroy_gori ( )
inherited

◆ destroy_infer_oracle()

void range_query::destroy_infer_oracle ( )
inherited

◆ destroy_relation_oracle()

void range_query::destroy_relation_oracle ( )
inherited

◆ dump()

void ranger_cache::dump ( FILE * f)
overridevirtual

Reimplemented from range_query.

References ssa_cache::dump(), and m_globals.

Referenced by gimple_ranger::dump().

◆ dump_bb()

◆ edge_range()

◆ entry_range()

void ranger_cache::entry_range ( vrange & r,
tree expr,
basic_block bb,
enum rfd_mode mode )
private

◆ exit_range()

void ranger_cache::exit_range ( vrange & r,
tree expr,
basic_block bb,
enum rfd_mode mode )
private

◆ fill_block_cache()

◆ get_arith_expr_range()

bool range_query::get_arith_expr_range ( vrange & r,
tree expr,
gimple * stmt )
protectedinherited

◆ get_global_range() [1/2]

◆ get_global_range() [2/2]

◆ get_tree_range()

◆ gori()

◆ gori_ssa()

◆ infer_oracle()

◆ invoke_range_of_expr()

bool range_query::invoke_range_of_expr ( vrange & v,
tree expr,
gimple * stmt,
basic_block bbentry,
basic_block bbexit )
protectedinherited

◆ propagate_cache()

◆ propagate_updated_value()

◆ range_from_dom()

◆ range_of_def()

◆ range_of_expr()

bool ranger_cache::range_of_expr ( vrange & r,
tree name,
gimple * stmt )
finaloverridevirtual

◆ range_of_stmt()

bool range_query::range_of_stmt ( vrange & r,
gimple * stmt,
tree name = NULL )
virtualinherited

◆ range_on_edge()

bool ranger_cache::range_on_edge ( vrange & r,
edge e,
tree expr )
finaloverridevirtual

◆ range_on_entry()

◆ range_on_exit()

bool range_query::range_on_exit ( vrange & r,
basic_block bb,
tree expr )
virtualinherited

◆ register_inferred_value()

◆ relation()

◆ resolve_dom()

◆ set_global_range()

◆ share_query()

◆ value_of_expr()

tree range_query::value_of_expr ( tree expr,
gimple * stmt = NULL )
virtualinherited

◆ value_of_stmt()

◆ value_on_edge()

◆ value_on_entry()

tree range_query::value_on_entry ( basic_block bb,
tree expr )
virtualinherited

◆ value_on_exit()

tree range_query::value_on_exit ( basic_block bb,
tree expr )
virtualinherited

Field Documentation

◆ m_globals

ssa_cache ranger_cache::m_globals
private

◆ m_gori

◆ m_infer

◆ m_map

◆ m_on_entry

◆ m_relation

◆ m_shared_copy_p

bool range_query::m_shared_copy_p
protectedinherited

◆ m_temporal

class temporal_cache* ranger_cache::m_temporal
private

◆ m_update

class update_list* ranger_cache::m_update
private

◆ m_workback

vec<basic_block> ranger_cache::m_workback
private

The documentation for this class was generated from the following files: