GCC Middle and Back End API Reference
irange_bitmask Class Reference

#include <value-range.h>

Collaboration diagram for irange_bitmask:

Public Member Functions

 irange_bitmask ()
 
 irange_bitmask (unsigned prec)
 
 irange_bitmask (const wide_int &value, const wide_int &mask)
 
wide_int value () const
 
wide_int mask () const
 
void set_unknown (unsigned prec)
 
bool unknown_p () const
 
unsigned get_precision () const
 
bool union_ (const irange_bitmask &src)
 
bool intersect (const irange_bitmask &src)
 
bool operator== (const irange_bitmask &src) const
 
bool operator!= (const irange_bitmask &src) const
 
void verify_mask () const
 
void dump (FILE *) const
 
bool member_p (const wide_int &val) const
 
void adjust_range (irange &r) const
 
wide_int get_nonzero_bits () const
 
void set_nonzero_bits (const wide_int &bits)
 

Private Attributes

wide_int m_value
 
wide_int m_mask
 

Constructor & Destructor Documentation

◆ irange_bitmask() [1/3]

irange_bitmask::irange_bitmask ( )
inline

◆ irange_bitmask() [2/3]

irange_bitmask::irange_bitmask ( unsigned prec)
inline

References set_unknown().

◆ irange_bitmask() [3/3]

irange_bitmask::irange_bitmask ( const wide_int & value,
const wide_int & mask )
inline

Member Function Documentation

◆ adjust_range()

◆ dump()

◆ get_nonzero_bits()

wide_int irange_bitmask::get_nonzero_bits ( ) const
inline

◆ get_precision()

unsigned irange_bitmask::get_precision ( ) const
inline

◆ intersect()

◆ mask()

◆ member_p()

bool irange_bitmask::member_p ( const wide_int & val) const
inline

◆ operator!=()

bool irange_bitmask::operator!= ( const irange_bitmask & src) const
inline

◆ operator==()

bool irange_bitmask::operator== ( const irange_bitmask & src) const
inline

References ggc_alloc(), m_mask, m_value, and unknown_p().

◆ set_nonzero_bits()

void irange_bitmask::set_nonzero_bits ( const wide_int & bits)
inline

◆ set_unknown()

◆ union_()

bool irange_bitmask::union_ ( const irange_bitmask & src)
inline

References ggc_alloc(), m_mask, m_value, and verify_mask().

Referenced by irange::union_bitmask().

◆ unknown_p()

◆ value()

◆ verify_mask()

Field Documentation

◆ m_mask

◆ m_value


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