GCC Middle and Back End API Reference
ana::one_way_id_map< T > Class Template Reference

#include <region-model.h>

Collaboration diagram for ana::one_way_id_map< T >:

Public Member Functions

 one_way_id_map (int num_ids)
 
void put (T src, T dst)
 
T get_dst_for_src (T src) const
 
void dump_to_pp (pretty_printer *pp) const
 
void dump () const
 
void update (T *) const
 

Private Attributes

auto_vec< Tm_src_to_dst
 

Constructor & Destructor Documentation

◆ one_way_id_map()

template<typename T >
ana::one_way_id_map< T >::one_way_id_map ( int num_svalues)
inline
class one_way_id_map.   
one_way_id_map's ctor, which populates the map with dummy null values.   

References ggc_alloc(), i, and ana::one_way_id_map< T >::m_src_to_dst.

Member Function Documentation

◆ dump()

template<typename T >
DEBUG_FUNCTION void ana::one_way_id_map< T >::dump ( ) const
inline
Dump this map to stderr.   

References pretty_printer::buffer, ggc_alloc(), pp_flush(), and output_buffer::stream.

◆ dump_to_pp()

template<typename T >
void ana::one_way_id_map< T >::dump_to_pp ( pretty_printer * pp) const
inline
Dump this map to PP.   

References FOR_EACH_VEC_ELT, i, pp_newline(), and pp_string().

◆ get_dst_for_src()

template<typename T >
T ana::one_way_id_map< T >::get_dst_for_src ( T src) const
inline
Get the new value for SRC within the map.   

◆ put()

template<typename T >
void ana::one_way_id_map< T >::put ( T src,
T dst )
inline
Record that SRC is to be mapped to DST.   

◆ update()

template<typename T >
void ana::one_way_id_map< T >::update ( T * id) const
inline
Update *ID from the old value to its new value in this map.   

Field Documentation

◆ m_src_to_dst

template<typename T >
auto_vec<T> ana::one_way_id_map< T >::m_src_to_dst
private

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