C-Breeze
C Compiler Infrastructure

[ Project home page]
Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Bits Class Reference

#include <bits.h>

List of all members.

Public Member Functions

void reset_all (void)
void set_all (void)
 Bits (int nn)
 Bits (Bits &other)
 ~Bits (void)
Bits & operator= (Bits &rhs)
int size (void)
void set (int pos, bool val)
void set (int pos)
void copy (Bits *b)
void reset (int pos)
bool value (int pos)
void And (Bits *other)
void Or (Bits *other)
void Not (void)
void Difference (Bits *other)
Bits * clone (void)

Private Attributes

unsigned int * ints
int n
int nints

Friends

bool operator== (Bits &a, Bits &b)
bool operator!= (Bits &a, Bits &b)
ostream & operator<< (ostream &out, Bits &a)


Constructor & Destructor Documentation

Bits::Bits int    nn [inline]
 

Definition at line 58 of file bits.h.

References BITS_PER_INT, and reset_all().

Referenced by clone().

Bits::Bits Bits &    other [inline]
 

Definition at line 66 of file bits.h.

References copy(), n, and nints.

Bits::~Bits void    [inline]
 

Definition at line 74 of file bits.h.


Member Function Documentation

void Bits::And Bits *    other [inline]
 

Definition at line 121 of file bits.h.

References ints.

Referenced by defFlowVal::Difference(), declSetFlowVal::Difference(), copyFlowVal::Difference(), Difference(), defFlowVal::Intersect(), and copyFlowVal::Intersect().

Bits* Bits::clone void    [inline]
 

Definition at line 156 of file bits.h.

References Bits(), and ints.

Referenced by LivenessWalker::at_basicblock(), defFlowVal::clone(), declSetFlowVal::clone(), and copyFlowVal::clone().

void Bits::copy Bits *    b [inline]
 

Definition at line 105 of file bits.h.

References ints.

Referenced by LivenessWalker::at_proc(), Bits(), defFlowVal::copy(), declSetFlowVal::copy(), copyFlowVal::copy(), defFlowVal::Difference(), declSetFlowVal::Difference(), copyFlowVal::Difference(), Difference(), and operator=().

void Bits::Difference Bits *    other [inline]
 

Definition at line 136 of file bits.h.

References And(), copy(), and Not().

Referenced by LivenessWalker::at_basicblock(), and LivenessWalker::at_proc().

void Bits::Not void    [inline]
 

Definition at line 131 of file bits.h.

Referenced by defFlowVal::Difference(), declSetFlowVal::Difference(), copyFlowVal::Difference(), and Difference().

Bits& Bits::operator= Bits &    rhs [inline]
 

Definition at line 78 of file bits.h.

References copy(), n, and nints.

void Bits::Or Bits *    other [inline]
 

Definition at line 126 of file bits.h.

References ints.

Referenced by LivenessWalker::at_basicblock(), defFlowVal::Union(), declSetFlowVal::Union(), and copyFlowVal::Union().

void Bits::reset int    pos [inline]
 

Definition at line 109 of file bits.h.

References set().

void Bits::reset_all void    [inline]
 

Definition at line 49 of file bits.h.

Referenced by Bits(), defFlowVal::to_top(), declSetFlowVal::to_top(), and copyFlowVal::to_top().

void Bits::set int    pos [inline]
 

Definition at line 101 of file bits.h.

References set().

void Bits::set int    pos,
bool    val
[inline]
 

Definition at line 91 of file bits.h.

References BITS_PER_INT.

Referenced by defFlowVal::insert(), declSetFlowVal::insert(), copyFlowVal::insert(), defFlowVal::remove(), copyFlowVal::remove(), reset(), set(), and set_all().

void Bits::set_all void    [inline]
 

Definition at line 53 of file bits.h.

References set().

Referenced by copyFlowVal::to_bottom().

int Bits::size void    [inline]
 

Definition at line 89 of file bits.h.

Referenced by LivenessWalker::bits2decls().

bool Bits::value int    pos [inline]
 

Definition at line 113 of file bits.h.

References BITS_PER_INT.

Referenced by LivenessWalker::bits2decls(), defFlowVal::diff(), declSetFlowVal::diff(), copyFlowVal::diff(), defFlowVal::in(), declSetFlowVal::in(), and copyFlowVal::in().


Friends And Related Function Documentation

bool operator!= Bits &    a,
Bits &    b
[friend]
 

Definition at line 152 of file bits.h.

ostream& operator<< ostream &    out,
Bits &    a
[friend]
 

Definition at line 162 of file bits.h.

bool operator== Bits &    a,
Bits &    b
[friend]
 

Definition at line 143 of file bits.h.


Member Data Documentation

unsigned int* Bits::ints [private]
 

Definition at line 45 of file bits.h.

Referenced by And(), clone(), copy(), and Or().

int Bits::n [private]
 

Definition at line 46 of file bits.h.

Referenced by Bits(), and operator=().

int Bits::nints [private]
 

Definition at line 46 of file bits.h.

Referenced by Bits(), and operator=().


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

Generated on August 27, 2003
Back to the C-Breeze home page