GCC Middle and Back End API Reference
prange_storage Class Reference

#include <value-range-storage.h>

Inheritance diagram for prange_storage:
Collaboration diagram for prange_storage:

Public Member Functions

void set_prange (const prange &r)
void get_prange (prange &r, tree type) const
bool equal_p (const prange &r) const
bool fits_p (const prange &r) const
bool undefined_p () const
irange_bitmask get_bitmask (tree type) const
bool nonnull_p (tree type) const
void set_nonnull (tree type)
void dump () const
void get_vrange (vrange &r, tree type) const
void set_vrange (const vrange &r)
bool fits_p (const vrange &r) const
bool equal_p (const vrange &r) const
class irange_storage * dyn_irange ()
const irange_storage * dyn_irange () const
class prange_storage * dyn_prange ()
const prange_storage * dyn_prange () const
class frange_storage * dyn_frange ()
const frange_storage * dyn_frange () const

Static Public Member Functions

static prange_storage * alloc (vrange_internal_alloc &, const prange &, bool shared_p=true)
static vrange_storage * alloc (vrange_internal_alloc &, const vrange &, bool shared_p=true)

Data Fields

struct pt_solution * pt
enum value_range_discriminator m_discriminator: 4

Private Member Functions

 DISABLE_COPY_AND_ASSIGN (prange_storage)
 prange_storage (const prange &r)
wide_int get_word (unsigned i, tree) const
template<typename T>
void set_word (unsigned i, const T &x, tree)

Static Private Member Functions

static enum prange_kind prange_format (const prange &r, unsigned &num_words)

Private Attributes

enum prange_kind m_kind: 4
unsigned int m_has_bitmask: 1
unsigned int m_known_p: 1
tree m_addr
trailing_wide_ints< PRANGE_STORAGE_NINTS > m_trailing_ints

Friends

void gt_ggc_mx_vrange_storage (void *)
void gt_pch_nx_vrange_storage (void *)
void gt_pch_p_14vrange_storage (void *, void *, gt_pointer_operator, void *)

Constructor & Destructor Documentation

◆ prange_storage()

Member Function Documentation

◆ alloc() [1/2]

◆ alloc() [2/2]

vrange_storage * vrange_storage::alloc ( vrange_internal_alloc & allocator,
const vrange & r,
bool shared_p = true )
staticinherited

◆ DISABLE_COPY_AND_ASSIGN()

prange_storage::DISABLE_COPY_AND_ASSIGN ( prange_storage )
private

References prange_format(), prange_storage(), and r.

◆ dump()

void prange_storage::dump ( ) const

◆ dyn_frange() [1/2]

frange_storage * vrange_storage::dyn_frange ( )
inlineinherited

References m_discriminator, NULL, and VR_FRANGE.

Referenced by equal_p(), fits_p(), get_vrange(), and set_vrange().

◆ dyn_frange() [2/2]

const frange_storage * vrange_storage::dyn_frange ( ) const
inlineinherited

References m_discriminator, NULL, and VR_FRANGE.

◆ dyn_irange() [1/2]

irange_storage * vrange_storage::dyn_irange ( )
inlineinherited

References m_discriminator, NULL, and VR_IRANGE.

Referenced by equal_p(), fits_p(), get_vrange(), and set_vrange().

◆ dyn_irange() [2/2]

const irange_storage * vrange_storage::dyn_irange ( ) const
inlineinherited

References m_discriminator, NULL, and VR_IRANGE.

◆ dyn_prange() [1/2]

prange_storage * vrange_storage::dyn_prange ( )
inlineinherited

◆ dyn_prange() [2/2]

const prange_storage * vrange_storage::dyn_prange ( ) const
inlineinherited

References m_discriminator, NULL, and VR_PRANGE.

◆ equal_p() [1/2]

◆ equal_p() [2/2]

bool vrange_storage::equal_p ( const vrange & r) const
inherited

◆ fits_p() [1/2]

bool prange_storage::fits_p ( const prange & r) const

◆ fits_p() [2/2]

◆ get_bitmask()

◆ get_prange()

◆ get_vrange()

◆ get_word()

wide_int prange_storage::get_word ( unsigned i,
tree  ) const
inlineprivate

◆ nonnull_p()

bool prange_storage::nonnull_p ( tree type) const
inline

◆ prange_format()

enum prange_kind prange_storage::prange_format ( const prange & r,
unsigned & num_words )
staticprivate

◆ set_nonnull()

◆ set_prange()

◆ set_vrange()

◆ set_word()

template<typename T>
void prange_storage::set_word ( unsigned i,
const T & x,
tree  )
inlineprivate

References i, and m_trailing_ints.

Referenced by set_nonnull(), and set_prange().

◆ undefined_p()

bool prange_storage::undefined_p ( ) const
inline

References m_kind, and PR_UNDEFINED.

◆ gt_ggc_mx_vrange_storage

void gt_ggc_mx_vrange_storage ( void * )
friend

◆ gt_pch_nx_vrange_storage

void gt_pch_nx_vrange_storage ( void * )
friend

◆ gt_pch_p_14vrange_storage

void gt_pch_p_14vrange_storage ( void * ,
void * ,
gt_pointer_operator ,
void *  )
friend

Field Documentation

◆ m_addr

tree prange_storage::m_addr
private

Referenced by alloc(), equal_p(), get_prange(), and set_prange().

◆ m_discriminator

enum value_range_discriminator vrange_storage::m_discriminator
inherited

◆ m_has_bitmask

unsigned int prange_storage::m_has_bitmask
private

◆ m_kind

enum prange_kind prange_storage::m_kind
private

◆ m_known_p

unsigned int prange_storage::m_known_p
private

Referenced by equal_p(), get_prange(), and set_prange().

◆ m_trailing_ints

trailing_wide_ints<PRANGE_STORAGE_NINTS> prange_storage::m_trailing_ints
private

◆ pt

struct pt_solution* prange_storage::pt

Referenced by prange_storage(), and set_pt_solution().


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