GCC Middle and Back End API Reference
|
#include <region-model.h>
Public Types | |
typedef hash_map< const region *, const svalue * > | hash_map_t |
typedef hash_map_t::iterator | iterator |
Public Member Functions | |
region_to_value_map () | |
region_to_value_map (const region_to_value_map &other) | |
region_to_value_map & | operator= (const region_to_value_map &other) |
bool | operator== (const region_to_value_map &other) const |
bool | operator!= (const region_to_value_map &other) const |
iterator | begin () const |
iterator | end () const |
const svalue *const * | get (const region *reg) const |
void | put (const region *reg, const svalue *sval) |
void | remove (const region *reg) |
bool | is_empty () const |
void | dump_to_pp (pretty_printer *pp, bool simple, bool multiline) const |
void | dump (bool simple) const |
std::unique_ptr< json::object > | to_json () const |
std::unique_ptr< text_art::tree_widget > | make_dump_widget (const text_art::dump_widget_info &dwi) const |
bool | can_merge_with_p (const region_to_value_map &other, region_to_value_map *out) const |
void | purge_state_involving (const svalue *sval) |
Private Attributes | |
hash_map_t | m_hash_map |
A mapping from region to svalue for use when tracking state.
hash_map<const region *, const svalue *> ana::region_to_value_map::hash_map_t |
hash_map_t::iterator ana::region_to_value_map::iterator |
|
inline |
|
inline |
|
inline |
References hash_map< KeyId, Value, Traits >::begin(), and m_hash_map.
bool ana::region_to_value_map::can_merge_with_p | ( | const region_to_value_map & | other, |
region_to_value_map * | out ) const |
void ana::region_to_value_map::dump | ( | bool | simple | ) | const |
void ana::region_to_value_map::dump_to_pp | ( | pretty_printer * | pp, |
bool | simple, | ||
bool | multiline ) const |
|
inline |
References hash_map< KeyId, Value, Traits >::end(), and m_hash_map.
References get(), and m_hash_map.
Referenced by get().
|
inline |
References hash_map< KeyId, Value, Traits >::is_empty(), and m_hash_map.
std::unique_ptr< text_art::tree_widget > ana::region_to_value_map::make_dump_widget | ( | const text_art::dump_widget_info & | dwi | ) | const |
|
inline |
region_to_value_map & ana::region_to_value_map::operator= | ( | const region_to_value_map & | other | ) |
bool ana::region_to_value_map::operator== | ( | const region_to_value_map & | other | ) | const |
void ana::region_to_value_map::purge_state_involving | ( | const svalue * | sval | ) |
References m_hash_map, and hash_map< KeyId, Value, Traits >::put().
|
inline |
References m_hash_map, and hash_map< KeyId, Value, Traits >::remove().
std::unique_ptr< json::object > ana::region_to_value_map::to_json | ( | ) | const |
|
private |